2012-04-21 00:04:34 +00:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
2013-12-20 04:17:32 +00:00
|
|
|
AC_INIT(epple2, 1.2-SNAPSHOT)
|
2013-12-20 23:13:20 +00:00
|
|
|
AC_PREREQ(2.68)
|
2012-04-21 00:04:34 +00:00
|
|
|
|
2013-12-20 04:17:32 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/apple2.cpp])
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2013-12-20 04:17:32 +00:00
|
|
|
AM_INIT_AUTOMAKE
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
2013-02-01 00:12:59 +00:00
|
|
|
|
|
|
|
|
2012-04-21 00:04:34 +00:00
|
|
|
# Checks for libraries.
|
2013-10-08 14:29:28 +00:00
|
|
|
AC_CHECK_LIB([SDL2],[SDL_Init],,[AC_MSG_ERROR([cannot find libsdl])])
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_CHECK_HEADERS([windows.h])
|
|
|
|
AC_CHECK_HEADER([windows.h],[WINDOWS=true].[WINDOWS=])
|
|
|
|
AM_CONDITIONAL([HAVE_WINDOWS],test "$WINDOWS")
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_CHECK_FUNCS([memset sqrt])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile conf/Makefile installer/Makefile])
|
|
|
|
AC_OUTPUT
|