mirror of https://codeberg.org/cage/tinmop/
- added checks for sdl2 libs and headers.
This commit is contained in:
parent
712aa55755
commit
35c66d4679
|
@ -8465,7 +8465,30 @@ if test "x$ac_cv_header_turbojpeg_h" = xyes
|
||||||
then :
|
then :
|
||||||
|
|
||||||
else case e in #(
|
else case e in #(
|
||||||
e) Can not find libturbojpeg0 headers file. ;;
|
e) as_fn_error $? "Can not find libturbojpeg0 headers file." "$LINENO" 5 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS=`sdl2-config --cflags`
|
||||||
|
|
||||||
|
|
||||||
|
ac_fn_c_check_header_compile "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_SDL_h" = xyes
|
||||||
|
then :
|
||||||
|
|
||||||
|
else case e in #(
|
||||||
|
e) as_fn_error $? "Can not find SDL headers file." "$LINENO" 5 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
ac_fn_c_check_header_compile "$LINENO" "SDL_ttf.h" "ac_cv_header_SDL_ttf_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_SDL_ttf_h" = xyes
|
||||||
|
then :
|
||||||
|
|
||||||
|
else case e in #(
|
||||||
|
e) as_fn_error $? "Can not find sdl ttf header file." "$LINENO" 5 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,13 @@ AC_CHECK_LIB([SDL2_ttf], [TTF_Init], [], AC_MSG_ERROR([Can not find libsdl ttf.]
|
||||||
|
|
||||||
dnl check headers
|
dnl check headers
|
||||||
|
|
||||||
AC_CHECK_HEADER([turbojpeg.h], [], [Can not find libturbojpeg0 headers file.], [])
|
AC_CHECK_HEADER([turbojpeg.h], [], AC_MSG_ERROR([Can not find libturbojpeg0 headers file.]), [])
|
||||||
|
|
||||||
|
AC_SUBST([CFLAGS], [`sdl2-config --cflags`])
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([SDL.h], [], AC_MSG_ERROR([Can not find SDL headers file.]), [])
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([SDL_ttf.h], [], AC_MSG_ERROR([Can not find sdl ttf header file.]), [])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
|
AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue