Changeset 4157 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jun 6, 2012 9:37:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r4149 r4157 853 853 ], 854 854 [ 855 SDL_CONFIG="sdl-config"856 855 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then 857 SDL_CONFIG=$with_sdl/bin/sdl-config858 856 AC_MSG_RESULT([Using SDL prefix... $with_sdl]) 857 AC_PATH_PROGS(SDL_CONFIG,sdl-config sdl2-config,,$with_sdl/bin) 858 else 859 AC_PATH_PROGS(SDL_CONFIG, sdl-config sdl2-config) 859 860 fi 860 861 AC_MSG_CHECKING([SDL availability..]) 862 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then 863 AC_SUBST(ac_sdl_cflags) 864 AC_SUBST(ac_sdl_ldflags) 865 ac_sdl_cflags=`$SDL_CONFIG --cflags` 866 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" 867 ac_sdl_ldflags=`$SDL_CONFIG --libs` 868 LIBS="$LIBS $ac_sdl_ldflags" 869 else 861 862 AC_MSG_CHECKING([SDL availability]) 863 if test "x$SDL_CONFIG" = "x"; then 864 AC_MSG_RESULT([not found]) 865 elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then 866 AC_SUBST(ac_sdl_cflags) 867 AC_SUBST(ac_sdl_ldflags) 868 ac_sdl_cflags=`$SDL_CONFIG --cflags` 869 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" 870 ac_sdl_ldflags=`$SDL_CONFIG --libs` 871 LIBS="$LIBS $ac_sdl_ldflags" 872 else 870 873 AC_MSG_RESULT([Unsupported SDL version]) 871 874 fi 872 875 ]) 873 876
Note: See TracChangeset
for help on using the changeset viewer.