From 31bc8ba5cc9850cd77cba84e0932d11cd5607e5f Mon Sep 17 00:00:00 2001 From: 11rcombs Date: Sat, 25 Jan 2014 16:55:21 -0600 Subject: Added x86 ASM functions --- configure.ac | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 11c1f79..f7e6527 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,7 @@ AC_CONFIG_HEADER([config.h]) AC_PROG_CC AC_PROG_CPP AM_PROG_CC_C_O +AM_PROG_AS # Checks for header files. AC_HEADER_STDC @@ -44,6 +45,51 @@ AC_ARG_ENABLE([fontconfig], AS_HELP_STRING([--disable-fontconfig], [disable fontconfig support @<:@default=enabled@:>@])) AC_ARG_ENABLE([harfbuzz], AS_HELP_STRING([--disable-harfbuzz], [disable HarfBuzz support @<:@default=check@:>@])) +AC_ARG_ENABLE([asm], AS_HELP_STRING([--disable-asm], + [disable compiling with ASM @<:@default=enabled@:>@]), + [asm=false], + [asm=true]) + +AM_CONDITIONAL([ASM], [test x$asm = xtrue]) + +AM_COND_IF([ASM], + [AC_DEFINE(CONFIG_ASM, 1, [ASM enabled])], + [AC_DEFINE(CONFIG_ASM, 0, [ASM disabled])] + ) + +test "${ASFLAGS+set}" = set || ASFLAGS="" + +AC_SUBST([ASFLAGS], ["$ASFLAGS"]) + +case $host in + i?86-*) + INTEL=true + X86=true ;; + x86_64-*) + INTEL=true + X64=true ;; + arm-*) + ARM=true ;; +esac + +case $host in + *darwin*) + MACHO=true ;; + *linux*) + ELF=true ;; + *cygwin*) + WIN32=true ;; + *mingw*) + WIN32=true ;; +esac + +AM_CONDITIONAL([INTEL], [test x$INTEL = xtrue]) +AM_CONDITIONAL([X86], [test x$X86 = xtrue]) +AM_CONDITIONAL([X64], [test x$X64 = xtrue]) +AM_CONDITIONAL([ARM], [test x$ARM = xtrue]) +AM_CONDITIONAL([MACHO], [test x$MACHO = xtrue]) +AM_CONDITIONAL([ELF], [test x$ELF = xtrue]) +AM_CONDITIONAL([WIN32], [test x$WIN32 = xtrue]) PKG_CHECK_MODULES([FREETYPE], freetype2 >= 9.10.3, [ CFLAGS="$CFLAGS $FREETYPE_CFLAGS" -- cgit v1.2.3