configure
changeset 9278 8900afb78a19
parent 9252 a11e8f6d82d1
child 9315 541f12d1edcd
equal deleted inserted replaced
9277:f0bd40782fc7 9278:8900afb78a19
 21383 
 21383 
 21384         SUMMARY_video="${SUMMARY_video} opengl"
 21384         SUMMARY_video="${SUMMARY_video} opengl"
 21385     fi
 21385     fi
 21386 }
 21386 }
 21387 
 21387 
       
 21388 CheckEmscriptenGLES()
       
 21389 {
       
 21390     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
       
 21391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
       
 21392 $as_echo_n "checking for EGL support... " >&6; }
       
 21393         video_opengl_egl=no
       
 21394         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 21395 /* end confdefs.h.  */
       
 21396 
       
 21397          #include <EGL/egl.h>
       
 21398 
       
 21399 int
       
 21400 main ()
       
 21401 {
       
 21402 
       
 21403 
       
 21404   ;
       
 21405   return 0;
       
 21406 }
       
 21407 _ACEOF
       
 21408 if ac_fn_c_try_compile "$LINENO"; then :
       
 21409 
       
 21410         video_opengl_egl=yes
       
 21411 
       
 21412 fi
       
 21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
       
 21415 $as_echo "$video_opengl_egl" >&6; }
       
 21416         if test x$video_opengl_egl = xyes; then
       
 21417 
       
 21418 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
       
 21419 
       
 21420         fi
       
 21421 
       
 21422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
       
 21423 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
       
 21424         video_opengles_v2=no
       
 21425         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 21426 /* end confdefs.h.  */
       
 21427 
       
 21428          #include <GLES2/gl2.h>
       
 21429          #include <GLES2/gl2ext.h>
       
 21430 
       
 21431 int
       
 21432 main ()
       
 21433 {
       
 21434 
       
 21435 
       
 21436   ;
       
 21437   return 0;
       
 21438 }
       
 21439 _ACEOF
       
 21440 if ac_fn_c_try_compile "$LINENO"; then :
       
 21441 
       
 21442         video_opengles_v2=yes
       
 21443 
       
 21444 fi
       
 21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
       
 21447 $as_echo "$video_opengles_v2" >&6; }
       
 21448         if test x$video_opengles_v2 = xyes; then
       
 21449 
       
 21450 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
       
 21451 
       
 21452 
       
 21453 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
       
 21454 
       
 21455             SUMMARY_video="${SUMMARY_video} opengl_es2"
       
 21456         fi
       
 21457     fi
       
 21458 }
       
 21459 
 21388 CheckInputEvents()
 21460 CheckInputEvents()
 21389 {
 21461 {
 21390             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
 21462             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
 21391 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
 21463 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
 21392         use_input_events=no
 21464         use_input_events=no
 23481 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
 23553 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
 23482 
 23554 
 23483             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
 23555             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
 23484             have_filesystem=yes
 23556             have_filesystem=yes
 23485         fi
 23557         fi
 23486 
 23558         ;;
       
 23559     *-*-emscripten* )
       
 23560         if test x$enable_video = xyes; then
       
 23561 
       
 23562 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
       
 23563 
       
 23564             SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
       
 23565             have_video=yes
       
 23566             SUMMARY_video="${SUMMARY_video} emscripten"
       
 23567         fi
       
 23568 
       
 23569         if test x$enable_audio = xyes; then
       
 23570 
       
 23571 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
       
 23572 
       
 23573             SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
       
 23574             have_audio=yes
       
 23575             SUMMARY_audio="${SUMMARY_audio} emscripten"
       
 23576         fi
       
 23577 
       
 23578         CheckVisibilityHidden
       
 23579         CheckDummyVideo
       
 23580         CheckDiskAudio
       
 23581         CheckDummyAudio
       
 23582         CheckDLOPEN
       
 23583         CheckClockGettime
       
 23584         CheckEmscriptenGLES
       
 23585 
       
 23586          # Set up files for the power library
       
 23587         if test x$enable_power = xyes; then
       
 23588 
       
 23589 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
       
 23590 
       
 23591             SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
       
 23592             have_power=yes
       
 23593         fi
       
 23594 
       
 23595         # Set up files for the power library
       
 23596         if test x$enable_joystick = xyes; then
       
 23597 
       
 23598 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
       
 23599 
       
 23600             SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
       
 23601             have_joystick=yes
       
 23602         fi
       
 23603 
       
 23604         # Set up files for the filesystem library
       
 23605         if test x$enable_filesystem = xyes; then
       
 23606 
       
 23607 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
       
 23608 
       
 23609             SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
       
 23610             have_filesystem=yes
       
 23611         fi
       
 23612         # Set up files for the timer library
       
 23613         if test x$enable_timers = xyes; then
       
 23614 
       
 23615 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
       
 23616 
       
 23617             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
       
 23618             have_timers=yes
       
 23619         fi
 23487         ;;
 23620         ;;
 23488     *)
 23621     *)
 23489         as_fn_error $? "
 23622         as_fn_error $? "
 23490 *** Unsupported host:  Please add to configure.in
 23623 *** Unsupported host:  Please add to configure.in
 23491         " "$LINENO" 5
 23624         " "$LINENO" 5