- Added some note on SSE/SEE2 optimization.
- Supported SSE/SSE2 optimization with GCC. git-svn-id: file:///home/svnrepos/software/liblbfgs/trunk@3 ecf4c44f-38d1-4fa4-9757-a0b4dd0349fc
This commit is contained in:
17
configure.in
17
configure.in
@@ -1,4 +1,4 @@
|
||||
dnl $Id:$
|
||||
dnl $Id$
|
||||
dnl
|
||||
dnl
|
||||
dnl Exported and configured variables:
|
||||
@@ -44,7 +44,7 @@ dnl ------------------------------------------------------------------
|
||||
dnl Checks for header files.
|
||||
dnl ------------------------------------------------------------------
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h unistd.h stdint.h)
|
||||
AC_CHECK_HEADERS(xmmintrin.h emmintrin.h)
|
||||
|
||||
|
||||
dnl ------------------------------------------------------------------
|
||||
@@ -74,6 +74,19 @@ if test "x$enable_profile" = "xyes"; then
|
||||
fi
|
||||
|
||||
|
||||
dnl ------------------------------------------------------------------
|
||||
dnl Checks for SSE build
|
||||
dnl ------------------------------------------------------------------
|
||||
AC_ARG_ENABLE(
|
||||
sse,
|
||||
[AS_HELP_STRING([--enable-sse],[Enable SSE optimized routines])]
|
||||
)
|
||||
|
||||
if test "x$enable_sse" = "xyes"; then
|
||||
CFLAGS="-msse2 -DUSE_SSE ${CFLAGS}"
|
||||
fi
|
||||
|
||||
|
||||
dnl ------------------------------------------------------------------
|
||||
dnl Checks for library functions.
|
||||
dnl ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user