|
|
@@ -1,13 +1,13 @@ |
|
|
|
|
|
|
|
AC_INIT(libcaca, 0.99.beta20) |
|
|
|
AC_PREREQ(2.50) |
|
|
|
AC_INIT([libcaca],[0.99.beta20]) |
|
|
|
AC_PREREQ([2.71]) |
|
|
|
AC_CONFIG_AUX_DIR(.auto) |
|
|
|
AC_CANONICAL_SYSTEM |
|
|
|
AC_CANONICAL_TARGET |
|
|
|
AM_INIT_AUTOMAKE([no-define tar-ustar silent-rules subdir-objects]) |
|
|
|
dnl AM_MAINTAINER_MODE |
|
|
|
AM_DEFAULT_VERBOSITY=0 |
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h) |
|
|
|
AC_CONFIG_HEADERS([config.h]) |
|
|
|
|
|
|
|
LT_MAJOR="0" |
|
|
|
LT_MINOR="99" |
|
|
@@ -28,13 +28,11 @@ AC_SUBST(OBJC) |
|
|
|
AC_SUBST(OBJCFLAGS) |
|
|
|
AM_PROG_AS |
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL |
|
|
|
AM_PROG_LIBTOOL |
|
|
|
AC_LIBTOOL_CXX |
|
|
|
LT_INIT([win32-dll]) |
|
|
|
LT_LANG([C++]) |
|
|
|
|
|
|
|
AC_C_CONST |
|
|
|
AC_C_INLINE |
|
|
|
AC_TYPE_SIGNAL |
|
|
|
|
|
|
|
dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right |
|
|
|
dnl now otherwise it might be set in an obscure if statement. Same thing for |
|
|
@@ -139,19 +137,28 @@ fi |
|
|
|
AC_SUBST(GETOPT_LIBS) |
|
|
|
|
|
|
|
AC_MSG_CHECKING(for Sleep) |
|
|
|
AC_TRY_COMPILE([#include <windows.h>],[Sleep(42);], |
|
|
|
AC_COMPILE_IFELSE( |
|
|
|
[AC_LANG_PROGRAM( |
|
|
|
[[#include <windows.h>]], |
|
|
|
[[Sleep(42);]])], |
|
|
|
[AC_MSG_RESULT(yes) |
|
|
|
AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the ‘Sleep’ function.])], |
|
|
|
[AC_MSG_RESULT(no)]) |
|
|
|
|
|
|
|
AC_MSG_CHECKING(for fsin/fcos) |
|
|
|
AC_TRY_COMPILE([],[double x; asm volatile("fsin; fcos":"=t"(x):);], |
|
|
|
AC_COMPILE_IFELSE( |
|
|
|
[AC_LANG_PROGRAM( |
|
|
|
[[]], |
|
|
|
[[double x; asm volatile("fsin; fcos":"=t"(x):);]])], |
|
|
|
[AC_MSG_RESULT(yes) |
|
|
|
AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the ‘fsin’ and ‘fcos’ instructions.])], |
|
|
|
[AC_MSG_RESULT(no)]) |
|
|
|
|
|
|
|
AC_MSG_CHECKING(for fldln2/fxch/fyl2x) |
|
|
|
AC_TRY_COMPILE([],[double x; asm volatile("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], |
|
|
|
AC_COMPILE_IFELSE( |
|
|
|
[AC_LANG_PROGRAM( |
|
|
|
[[]], |
|
|
|
[[double x; asm volatile("fldln2; fldln2; fxch; fyl2x":"=t"(x):);]])], |
|
|
|
[AC_MSG_RESULT(yes) |
|
|
|
AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the ‘fldln2’ and other floating point instructions.])], |
|
|
|
[AC_MSG_RESULT(no)]) |
|
|
@@ -404,11 +411,8 @@ ac_cv_my_have_cxx="no" |
|
|
|
if test "${enable_cxx}" != "no"; then |
|
|
|
AC_MSG_CHECKING([working <iostream>]) |
|
|
|
AC_LANG_PUSH(C++) |
|
|
|
AC_TRY_COMPILE( |
|
|
|
[#include <iostream>], |
|
|
|
[], |
|
|
|
[ac_cv_my_have_cxx="yes" |
|
|
|
CACA_BINDINGS="${CACA_BINDINGS} C++"]) |
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iostream>]], [[]])],[ac_cv_my_have_cxx="yes" |
|
|
|
CACA_BINDINGS="${CACA_BINDINGS} C++"],[]) |
|
|
|
AC_LANG_POP(C++) |
|
|
|
AC_MSG_RESULT([$ac_cv_my_have_cxx]) |
|
|
|
fi |
|
|
|