configure
changeset 6188 e82023802002
parent 6116 66f48d6bf735
child 6217 6952b11b7f46
equal deleted inserted replaced
6187:6b1932e5a36b 6188:e82023802002
  1560   --enable-fusionsound-shared
  1560   --enable-fusionsound-shared
  1561                           dynamically load fusionsound audio support
  1561                           dynamically load fusionsound audio support
  1562                           [default=yes]
  1562                           [default=yes]
  1563   --enable-video-dummy    use dummy video driver [default=yes]
  1563   --enable-video-dummy    use dummy video driver [default=yes]
  1564   --enable-video-opengl   include OpenGL support [default=yes]
  1564   --enable-video-opengl   include OpenGL support [default=yes]
       
  1565   --enable-video-opengles include OpenGL ES support [default=yes]
  1565   --enable-input-events   use Linux 2.4 unified input interface
  1566   --enable-input-events   use Linux 2.4 unified input interface
  1566                           [default=yes]
  1567                           [default=yes]
  1567   --enable-input-tslib    use the Touchscreen library for input
  1568   --enable-input-tslib    use the Touchscreen library for input
  1568                           [default=yes]
  1569                           [default=yes]
  1569   --enable-pthreads       use POSIX threads for multi-threading
  1570   --enable-pthreads       use POSIX threads for multi-threading
  3770 if test "${lt_cv_nm_interface+set}" = set; then
  3771 if test "${lt_cv_nm_interface+set}" = set; then
  3771   echo $ECHO_N "(cached) $ECHO_C" >&6
  3772   echo $ECHO_N "(cached) $ECHO_C" >&6
  3772 else
  3773 else
  3773   lt_cv_nm_interface="BSD nm"
  3774   lt_cv_nm_interface="BSD nm"
  3774   echo "int some_variable = 0;" > conftest.$ac_ext
  3775   echo "int some_variable = 0;" > conftest.$ac_ext
  3775   (eval echo "\"\$as_me:3775: $ac_compile\"" >&5)
  3776   (eval echo "\"\$as_me:3776: $ac_compile\"" >&5)
  3776   (eval "$ac_compile" 2>conftest.err)
  3777   (eval "$ac_compile" 2>conftest.err)
  3777   cat conftest.err >&5
  3778   cat conftest.err >&5
  3778   (eval echo "\"\$as_me:3778: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3779   (eval echo "\"\$as_me:3779: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3779   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3780   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3780   cat conftest.err >&5
  3781   cat conftest.err >&5
  3781   (eval echo "\"\$as_me:3781: output\"" >&5)
  3782   (eval echo "\"\$as_me:3782: output\"" >&5)
  3782   cat conftest.out >&5
  3783   cat conftest.out >&5
  3783   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3784   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3784     lt_cv_nm_interface="MS dumpbin"
  3785     lt_cv_nm_interface="MS dumpbin"
  3785   fi
  3786   fi
  3786   rm -f conftest*
  3787   rm -f conftest*
  5003   fi
  5004   fi
  5004   rm -rf conftest*
  5005   rm -rf conftest*
  5005   ;;
  5006   ;;
  5006 *-*-irix6*)
  5007 *-*-irix6*)
  5007   # Find out which ABI we are using.
  5008   # Find out which ABI we are using.
  5008   echo '#line 5008 "configure"' > conftest.$ac_ext
  5009   echo '#line 5009 "configure"' > conftest.$ac_ext
  5009   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5010   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5010   (eval $ac_compile) 2>&5
  5011   (eval $ac_compile) 2>&5
  5011   ac_status=$?
  5012   ac_status=$?
  5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013   (exit $ac_status); }; then
  5014   (exit $ac_status); }; then
  7164    # The option is referenced via a variable to avoid confusing sed.
  7165    # The option is referenced via a variable to avoid confusing sed.
  7165    lt_compile=`echo "$ac_compile" | $SED \
  7166    lt_compile=`echo "$ac_compile" | $SED \
  7166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7168    -e 's:$: $lt_compiler_flag:'`
  7169    -e 's:$: $lt_compiler_flag:'`
  7169    (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
  7170    (eval echo "\"\$as_me:7170: $lt_compile\"" >&5)
  7170    (eval "$lt_compile" 2>conftest.err)
  7171    (eval "$lt_compile" 2>conftest.err)
  7171    ac_status=$?
  7172    ac_status=$?
  7172    cat conftest.err >&5
  7173    cat conftest.err >&5
  7173    echo "$as_me:7173: \$? = $ac_status" >&5
  7174    echo "$as_me:7174: \$? = $ac_status" >&5
  7174    if (exit $ac_status) && test -s "$ac_outfile"; then
  7175    if (exit $ac_status) && test -s "$ac_outfile"; then
  7175      # The compiler can only warn and ignore the option if not recognized
  7176      # The compiler can only warn and ignore the option if not recognized
  7176      # So say no if there are warnings other than the usual output.
  7177      # So say no if there are warnings other than the usual output.
  7177      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7178      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7179      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7503    # The option is referenced via a variable to avoid confusing sed.
  7504    # The option is referenced via a variable to avoid confusing sed.
  7504    lt_compile=`echo "$ac_compile" | $SED \
  7505    lt_compile=`echo "$ac_compile" | $SED \
  7505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7506    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7507    -e 's:$: $lt_compiler_flag:'`
  7508    -e 's:$: $lt_compiler_flag:'`
  7508    (eval echo "\"\$as_me:7508: $lt_compile\"" >&5)
  7509    (eval echo "\"\$as_me:7509: $lt_compile\"" >&5)
  7509    (eval "$lt_compile" 2>conftest.err)
  7510    (eval "$lt_compile" 2>conftest.err)
  7510    ac_status=$?
  7511    ac_status=$?
  7511    cat conftest.err >&5
  7512    cat conftest.err >&5
  7512    echo "$as_me:7512: \$? = $ac_status" >&5
  7513    echo "$as_me:7513: \$? = $ac_status" >&5
  7513    if (exit $ac_status) && test -s "$ac_outfile"; then
  7514    if (exit $ac_status) && test -s "$ac_outfile"; then
  7514      # The compiler can only warn and ignore the option if not recognized
  7515      # The compiler can only warn and ignore the option if not recognized
  7515      # So say no if there are warnings other than the usual output.
  7516      # So say no if there are warnings other than the usual output.
  7516      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7517      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7517      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7518      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7608    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7609    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7609    lt_compile=`echo "$ac_compile" | $SED \
  7610    lt_compile=`echo "$ac_compile" | $SED \
  7610    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7611    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7612    -e 's:$: $lt_compiler_flag:'`
  7613    -e 's:$: $lt_compiler_flag:'`
  7613    (eval echo "\"\$as_me:7613: $lt_compile\"" >&5)
  7614    (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
  7614    (eval "$lt_compile" 2>out/conftest.err)
  7615    (eval "$lt_compile" 2>out/conftest.err)
  7615    ac_status=$?
  7616    ac_status=$?
  7616    cat out/conftest.err >&5
  7617    cat out/conftest.err >&5
  7617    echo "$as_me:7617: \$? = $ac_status" >&5
  7618    echo "$as_me:7618: \$? = $ac_status" >&5
  7618    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7619    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7619    then
  7620    then
  7620      # The compiler can only warn and ignore the option if not recognized
  7621      # The compiler can only warn and ignore the option if not recognized
  7621      # So say no if there are warnings
  7622      # So say no if there are warnings
  7622      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7623      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7663    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7664    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7664    lt_compile=`echo "$ac_compile" | $SED \
  7665    lt_compile=`echo "$ac_compile" | $SED \
  7665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7667    -e 's:$: $lt_compiler_flag:'`
  7668    -e 's:$: $lt_compiler_flag:'`
  7668    (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
  7669    (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
  7669    (eval "$lt_compile" 2>out/conftest.err)
  7670    (eval "$lt_compile" 2>out/conftest.err)
  7670    ac_status=$?
  7671    ac_status=$?
  7671    cat out/conftest.err >&5
  7672    cat out/conftest.err >&5
  7672    echo "$as_me:7672: \$? = $ac_status" >&5
  7673    echo "$as_me:7673: \$? = $ac_status" >&5
  7673    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7674    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7674    then
  7675    then
  7675      # The compiler can only warn and ignore the option if not recognized
  7676      # The compiler can only warn and ignore the option if not recognized
  7676      # So say no if there are warnings
  7677      # So say no if there are warnings
  7677      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7678      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 10421   lt_cv_dlopen_self=cross
 10422   lt_cv_dlopen_self=cross
 10422 else
 10423 else
 10423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10424   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10424   lt_status=$lt_dlunknown
 10425   lt_status=$lt_dlunknown
 10425   cat > conftest.$ac_ext <<_LT_EOF
 10426   cat > conftest.$ac_ext <<_LT_EOF
 10426 #line 10426 "configure"
 10427 #line 10427 "configure"
 10427 #include "confdefs.h"
 10428 #include "confdefs.h"
 10428 
 10429 
 10429 #if HAVE_DLFCN_H
 10430 #if HAVE_DLFCN_H
 10430 #include <dlfcn.h>
 10431 #include <dlfcn.h>
 10431 #endif
 10432 #endif
 10517   lt_cv_dlopen_self_static=cross
 10518   lt_cv_dlopen_self_static=cross
 10518 else
 10519 else
 10519   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10520   lt_status=$lt_dlunknown
 10521   lt_status=$lt_dlunknown
 10521   cat > conftest.$ac_ext <<_LT_EOF
 10522   cat > conftest.$ac_ext <<_LT_EOF
 10522 #line 10522 "configure"
 10523 #line 10523 "configure"
 10523 #include "confdefs.h"
 10524 #include "confdefs.h"
 10524 
 10525 
 10525 #if HAVE_DLFCN_H
 10526 #if HAVE_DLFCN_H
 10526 #include <dlfcn.h>
 10527 #include <dlfcn.h>
 10527 #endif
 10528 #endif
 14199    # The option is referenced via a variable to avoid confusing sed.
 14200    # The option is referenced via a variable to avoid confusing sed.
 14200    lt_compile=`echo "$ac_compile" | $SED \
 14201    lt_compile=`echo "$ac_compile" | $SED \
 14201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14203    -e 's:$: $lt_compiler_flag:'`
 14204    -e 's:$: $lt_compiler_flag:'`
 14204    (eval echo "\"\$as_me:14204: $lt_compile\"" >&5)
 14205    (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
 14205    (eval "$lt_compile" 2>conftest.err)
 14206    (eval "$lt_compile" 2>conftest.err)
 14206    ac_status=$?
 14207    ac_status=$?
 14207    cat conftest.err >&5
 14208    cat conftest.err >&5
 14208    echo "$as_me:14208: \$? = $ac_status" >&5
 14209    echo "$as_me:14209: \$? = $ac_status" >&5
 14209    if (exit $ac_status) && test -s "$ac_outfile"; then
 14210    if (exit $ac_status) && test -s "$ac_outfile"; then
 14210      # The compiler can only warn and ignore the option if not recognized
 14211      # The compiler can only warn and ignore the option if not recognized
 14211      # So say no if there are warnings other than the usual output.
 14212      # So say no if there are warnings other than the usual output.
 14212      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 14213      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 14213      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 14214      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 14298    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14299    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14299    lt_compile=`echo "$ac_compile" | $SED \
 14300    lt_compile=`echo "$ac_compile" | $SED \
 14300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14302    -e 's:$: $lt_compiler_flag:'`
 14303    -e 's:$: $lt_compiler_flag:'`
 14303    (eval echo "\"\$as_me:14303: $lt_compile\"" >&5)
 14304    (eval echo "\"\$as_me:14304: $lt_compile\"" >&5)
 14304    (eval "$lt_compile" 2>out/conftest.err)
 14305    (eval "$lt_compile" 2>out/conftest.err)
 14305    ac_status=$?
 14306    ac_status=$?
 14306    cat out/conftest.err >&5
 14307    cat out/conftest.err >&5
 14307    echo "$as_me:14307: \$? = $ac_status" >&5
 14308    echo "$as_me:14308: \$? = $ac_status" >&5
 14308    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14309    then
 14310    then
 14310      # The compiler can only warn and ignore the option if not recognized
 14311      # The compiler can only warn and ignore the option if not recognized
 14311      # So say no if there are warnings
 14312      # So say no if there are warnings
 14312      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14313      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14350    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14351    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14351    lt_compile=`echo "$ac_compile" | $SED \
 14352    lt_compile=`echo "$ac_compile" | $SED \
 14352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14354    -e 's:$: $lt_compiler_flag:'`
 14355    -e 's:$: $lt_compiler_flag:'`
 14355    (eval echo "\"\$as_me:14355: $lt_compile\"" >&5)
 14356    (eval echo "\"\$as_me:14356: $lt_compile\"" >&5)
 14356    (eval "$lt_compile" 2>out/conftest.err)
 14357    (eval "$lt_compile" 2>out/conftest.err)
 14357    ac_status=$?
 14358    ac_status=$?
 14358    cat out/conftest.err >&5
 14359    cat out/conftest.err >&5
 14359    echo "$as_me:14359: \$? = $ac_status" >&5
 14360    echo "$as_me:14360: \$? = $ac_status" >&5
 14360    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14361    then
 14362    then
 14362      # The compiler can only warn and ignore the option if not recognized
 14363      # The compiler can only warn and ignore the option if not recognized
 14363      # So say no if there are warnings
 14364      # So say no if there are warnings
 14364      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14365      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 23746 
 23747 
 23747 cat >>confdefs.h <<\_ACEOF
 23748 cat >>confdefs.h <<\_ACEOF
 23748 #define SDL_VIDEO_RENDER_OGL 1
 23749 #define SDL_VIDEO_RENDER_OGL 1
 23749 _ACEOF
 23750 _ACEOF
 23750 
 23751 
       
 23752         fi
       
 23753     fi
       
 23754 }
       
 23755 
       
 23756 # Check whether --enable-video-opengles was given.
       
 23757 if test "${enable_video_opengles+set}" = set; then
       
 23758   enableval=$enable_video_opengles;
       
 23759 else
       
 23760   enable_video_opengles=yes
       
 23761 fi
       
 23762 
       
 23763 
       
 23764 CheckOpenGLESX11()
       
 23765 {
       
 23766     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
       
 23767         { echo "$as_me:$LINENO: checking for OpenGL ES (EGL) support" >&5
       
 23768 echo $ECHO_N "checking for OpenGL ES (EGL) support... $ECHO_C" >&6; }
       
 23769         video_opengles=no
       
 23770         cat >conftest.$ac_ext <<_ACEOF
       
 23771 /* confdefs.h.  */
       
 23772 _ACEOF
       
 23773 cat confdefs.h >>conftest.$ac_ext
       
 23774 cat >>conftest.$ac_ext <<_ACEOF
       
 23775 /* end confdefs.h.  */
       
 23776 
       
 23777          #include <EGL/egl.h>
       
 23778 
       
 23779 int
       
 23780 main ()
       
 23781 {
       
 23782 
       
 23783 
       
 23784   ;
       
 23785   return 0;
       
 23786 }
       
 23787 _ACEOF
       
 23788 rm -f conftest.$ac_objext
       
 23789 if { (ac_try="$ac_compile"
       
 23790 case "(($ac_try" in
       
 23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 23792   *) ac_try_echo=$ac_try;;
       
 23793 esac
       
 23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 23795   (eval "$ac_compile") 2>conftest.er1
       
 23796   ac_status=$?
       
 23797   grep -v '^ *+' conftest.er1 >conftest.err
       
 23798   rm -f conftest.er1
       
 23799   cat conftest.err >&5
       
 23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 23801   (exit $ac_status); } && {
       
 23802 	 test -z "$ac_c_werror_flag" ||
       
 23803 	 test ! -s conftest.err
       
 23804        } && test -s conftest.$ac_objext; then
       
 23805 
       
 23806         video_opengles=yes
       
 23807 
       
 23808 else
       
 23809   echo "$as_me: failed program was:" >&5
       
 23810 sed 's/^/| /' conftest.$ac_ext >&5
       
 23811 
       
 23812 
       
 23813 fi
       
 23814 
       
 23815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 23816         { echo "$as_me:$LINENO: result: $video_opengles" >&5
       
 23817 echo "${ECHO_T}$video_opengles" >&6; }
       
 23818         if test x$video_opengles = xyes; then
       
 23819             { echo "$as_me:$LINENO: checking for OpenGL ES v1 headers" >&5
       
 23820 echo $ECHO_N "checking for OpenGL ES v1 headers... $ECHO_C" >&6; }
       
 23821             video_opengles_v1=no
       
 23822             cat >conftest.$ac_ext <<_ACEOF
       
 23823 /* confdefs.h.  */
       
 23824 _ACEOF
       
 23825 cat confdefs.h >>conftest.$ac_ext
       
 23826 cat >>conftest.$ac_ext <<_ACEOF
       
 23827 /* end confdefs.h.  */
       
 23828 
       
 23829              #include <GLES/gl.h>
       
 23830              #include <GLES/glext.h>
       
 23831 
       
 23832 int
       
 23833 main ()
       
 23834 {
       
 23835 
       
 23836 
       
 23837   ;
       
 23838   return 0;
       
 23839 }
       
 23840 _ACEOF
       
 23841 rm -f conftest.$ac_objext
       
 23842 if { (ac_try="$ac_compile"
       
 23843 case "(($ac_try" in
       
 23844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 23845   *) ac_try_echo=$ac_try;;
       
 23846 esac
       
 23847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 23848   (eval "$ac_compile") 2>conftest.er1
       
 23849   ac_status=$?
       
 23850   grep -v '^ *+' conftest.er1 >conftest.err
       
 23851   rm -f conftest.er1
       
 23852   cat conftest.err >&5
       
 23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 23854   (exit $ac_status); } && {
       
 23855 	 test -z "$ac_c_werror_flag" ||
       
 23856 	 test ! -s conftest.err
       
 23857        } && test -s conftest.$ac_objext; then
       
 23858 
       
 23859             video_opengles_v1=yes
       
 23860 
       
 23861 else
       
 23862   echo "$as_me: failed program was:" >&5
       
 23863 sed 's/^/| /' conftest.$ac_ext >&5
       
 23864 
       
 23865 
       
 23866 fi
       
 23867 
       
 23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 23869             { echo "$as_me:$LINENO: result: $video_opengles_v1" >&5
       
 23870 echo "${ECHO_T}$video_opengles_v1" >&6; }
       
 23871             if test x$video_opengles_v1 = xyes; then
       
 23872 
       
 23873 cat >>confdefs.h <<\_ACEOF
       
 23874 #define SDL_VIDEO_OPENGL_ES 1
       
 23875 _ACEOF
       
 23876 
       
 23877 
       
 23878 cat >>confdefs.h <<\_ACEOF
       
 23879 #define SDL_VIDEO_RENDER_OGL_ES 1
       
 23880 _ACEOF
       
 23881 
       
 23882             fi
       
 23883             { echo "$as_me:$LINENO: checking for OpenGL ES v2 headers" >&5
       
 23884 echo $ECHO_N "checking for OpenGL ES v2 headers... $ECHO_C" >&6; }
       
 23885             video_opengles_v2=no
       
 23886             cat >conftest.$ac_ext <<_ACEOF
       
 23887 /* confdefs.h.  */
       
 23888 _ACEOF
       
 23889 cat confdefs.h >>conftest.$ac_ext
       
 23890 cat >>conftest.$ac_ext <<_ACEOF
       
 23891 /* end confdefs.h.  */
       
 23892 
       
 23893              #include <GLES2/gl2.h>
       
 23894              #include <GLES2/gl2ext.h>
       
 23895 
       
 23896 int
       
 23897 main ()
       
 23898 {
       
 23899 
       
 23900 
       
 23901   ;
       
 23902   return 0;
       
 23903 }
       
 23904 _ACEOF
       
 23905 rm -f conftest.$ac_objext
       
 23906 if { (ac_try="$ac_compile"
       
 23907 case "(($ac_try" in
       
 23908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 23909   *) ac_try_echo=$ac_try;;
       
 23910 esac
       
 23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 23912   (eval "$ac_compile") 2>conftest.er1
       
 23913   ac_status=$?
       
 23914   grep -v '^ *+' conftest.er1 >conftest.err
       
 23915   rm -f conftest.er1
       
 23916   cat conftest.err >&5
       
 23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 23918   (exit $ac_status); } && {
       
 23919 	 test -z "$ac_c_werror_flag" ||
       
 23920 	 test ! -s conftest.err
       
 23921        } && test -s conftest.$ac_objext; then
       
 23922 
       
 23923             video_opengles_v2=yes
       
 23924 
       
 23925 else
       
 23926   echo "$as_me: failed program was:" >&5
       
 23927 sed 's/^/| /' conftest.$ac_ext >&5
       
 23928 
       
 23929 
       
 23930 fi
       
 23931 
       
 23932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 23933             { echo "$as_me:$LINENO: result: $video_opengles_v2" >&5
       
 23934 echo "${ECHO_T}$video_opengles_v2" >&6; }
       
 23935             if test x$video_opengles_v2 = xyes; then
       
 23936 
       
 23937 cat >>confdefs.h <<\_ACEOF
       
 23938 #define SDL_VIDEO_OPENGL_ES2 1
       
 23939 _ACEOF
       
 23940 
       
 23941 
       
 23942 cat >>confdefs.h <<\_ACEOF
       
 23943 #define SDL_VIDEO_RENDER_OGL_ES2 1
       
 23944 _ACEOF
       
 23945 
       
 23946             fi
 23751         fi
 23947         fi
 23752     fi
 23948     fi
 23753 }
 23949 }
 23754 
 23950 
 23755 CheckWINDOWSGL()
 23951 CheckWINDOWSGL()
 26998         CheckNAS
 27194         CheckNAS
 26999         CheckX11
 27195         CheckX11
 27000         CheckDirectFB
 27196         CheckDirectFB
 27001         CheckFusionSound
 27197         CheckFusionSound
 27002         CheckOpenGLX11
 27198         CheckOpenGLX11
       
 27199         CheckOpenGLESX11
 27003         CheckInputEvents
 27200         CheckInputEvents
 27004         CheckTslib
 27201         CheckTslib
 27005         CheckUSBHID
 27202         CheckUSBHID
 27006         CheckPTHREAD
 27203         CheckPTHREAD
 27007         CheckClockGettime
 27204         CheckClockGettime