2003-02-25 08:05:26 +00:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
2005-02-06 11:51:07 +00:00
|
|
|
AC_PREREQ(2.54)
|
|
|
|
|
|
2003-12-09 16:05:24 +00:00
|
|
|
AC_INIT(src/pixman.h)
|
2003-02-25 08:05:26 +00:00
|
|
|
|
|
|
|
|
dnl ===========================================================================
|
|
|
|
|
|
2003-04-25 13:21:42 +00:00
|
|
|
# Package version number, (as distinct from shared library version)
|
2005-07-28 14:58:25 +00:00
|
|
|
LIBPIXMAN_VERSION=0.1.6-head
|
2003-02-25 08:05:26 +00:00
|
|
|
|
2003-04-25 13:21:42 +00:00
|
|
|
# libtool shared library version
|
2003-02-25 08:05:26 +00:00
|
|
|
|
2003-04-25 13:21:42 +00:00
|
|
|
# Increment if the interface has additions, changes, removals.
|
|
|
|
|
LT_CURRENT=1
|
|
|
|
|
|
|
|
|
|
# Increment any time the source changes; set to
|
|
|
|
|
# 0 if you increment CURRENT
|
|
|
|
|
LT_REVISION=0
|
|
|
|
|
|
|
|
|
|
# Increment if any interfaces have been added; set to 0
|
|
|
|
|
# if any interfaces have been removed. removal has
|
|
|
|
|
# precedence over adding, so set to 0 if both happened.
|
|
|
|
|
LT_AGE=0
|
|
|
|
|
|
|
|
|
|
VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
|
2003-02-25 08:05:26 +00:00
|
|
|
AC_SUBST(VERSION_INFO)
|
|
|
|
|
|
|
|
|
|
dnl ===========================================================================
|
|
|
|
|
|
2003-12-09 16:05:24 +00:00
|
|
|
AM_INIT_AUTOMAKE(libpixman, $LIBPIXMAN_VERSION)
|
2003-02-25 08:05:26 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
2004-09-11 19:33:23 +00:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
2004-12-23 11:10:08 +00:00
|
|
|
dnl Use lots of warning flags with GCC
|
|
|
|
|
|
|
|
|
|
WARN_CFLAGS=""
|
|
|
|
|
|
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
|
WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
|
|
|
|
|
-Wmissing-prototypes -Wmissing-declarations \
|
2007-04-08 20:50:08 +01:00
|
|
|
-Wnested-externs -fno-strict-aliasing \
|
|
|
|
|
-Wno-attributes"
|
2004-12-23 11:10:08 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(WARN_CFLAGS)
|
|
|
|
|
|
2005-08-16 16:50:25 +00:00
|
|
|
dnl ===========================================================================
|
|
|
|
|
dnl Check for MMX
|
|
|
|
|
|
|
|
|
|
MMX_CFLAGS="-mmmx -msse -Winline --param inline-unit-growth=10000 --param large-function-growth=10000"
|
|
|
|
|
|
|
|
|
|
have_mmx_intrinsics=no
|
|
|
|
|
AC_MSG_CHECKING(For MMX/SSE intrinsics in the compiler)
|
|
|
|
|
xserver_save_CFLAGS=$CFLAGS
|
|
|
|
|
CFLAGS="$CFLAGS $MMX_CFLAGS"
|
|
|
|
|
AC_COMPILE_IFELSE([
|
|
|
|
|
#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4))
|
|
|
|
|
#error "Need GCC >= 3.4 for MMX intrinsics"
|
|
|
|
|
#endif
|
|
|
|
|
#include <mmintrin.h>
|
|
|
|
|
#include <xmmintrin.h>
|
|
|
|
|
int main () {
|
|
|
|
|
__m64 v = _mm_cvtsi32_si64 (1);
|
|
|
|
|
v = _mm_shuffle_pi16 (v, _MM_SHUFFLE(3, 3, 3, 3));
|
|
|
|
|
return _mm_cvtsi64_si32 (v);
|
|
|
|
|
}], have_mmx_intrinsics=yes)
|
|
|
|
|
CFLAGS=$xserver_save_CFLAGS
|
|
|
|
|
AC_MSG_RESULT($have_mmx_intrinsics)
|
|
|
|
|
|
|
|
|
|
if test $have_mmx_intrinsics = yes ; then
|
|
|
|
|
AC_DEFINE(USE_MMX, 1, [use MMX compiler intrinsics])
|
|
|
|
|
else
|
|
|
|
|
MMX_CFLAGS=
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(MMX_CFLAGS)
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(USE_MMX, test $have_mmx_intrinsics = yes)
|
|
|
|
|
|
2003-02-25 08:05:26 +00:00
|
|
|
dnl ===========================================================================
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
2003-12-09 16:05:24 +00:00
|
|
|
libpixman.pc
|
2003-02-25 08:05:26 +00:00
|
|
|
Makefile
|
|
|
|
|
src/Makefile
|
|
|
|
|
])
|