mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-28 09:19:41 +03:00
7a91a704c5
git-svn-id: svn://kolibrios.org@1806 a494cfbc-eb01-0410-851d-a64ba20cac60
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Simple Automake init
|
|
AC_INIT(pig.c)
|
|
|
|
AC_CANONICAL_HOST
|
|
AC_CANONICAL_TARGET
|
|
|
|
AM_INIT_AUTOMAKE(pig, 1.0)
|
|
|
|
dnl Check for various tools
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
|
|
dnl Check some compiler/platform stuff
|
|
AC_TYPE_SIGNAL
|
|
|
|
dnl-------------------------------------------------------
|
|
dnl Checks for SDL
|
|
dnl-------------------------------------------------------
|
|
SDL_VERSION=1.2.0
|
|
AM_PATH_SDL($SDL_VERSION,:,
|
|
AC_MSG_ERROR([*** SDL version $SDL_VERSION required!])
|
|
)
|
|
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
LIBS="$LIBS $SDL_LIBS"
|
|
|
|
dnl-------------------------------------------------------
|
|
dnl Checks for SDL_image
|
|
dnl-------------------------------------------------------
|
|
AC_CHECK_LIB(SDL_image, IMG_Load,,
|
|
AC_MSG_ERROR([You need the SDL_image library to compile this software.
|
|
Get it at http://www.libsdl.org/projects/SDL_image/]),
|
|
-lSDL
|
|
)
|
|
LIBS="$LIBS -lSDL_image"
|
|
|
|
dnl Get compile and linking flags
|
|
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
|
LIBS="$LIBS $SDL_LIBS"
|
|
|
|
dnl Generate Makefile
|
|
AC_OUTPUT(Makefile)
|