Clean-up configure.in

git-svn-id: file:///home/svnrepos/software/liblbfgs/trunk@5 ecf4c44f-38d1-4fa4-9757-a0b4dd0349fc
This commit is contained in:
naoaki 2008-04-25 08:47:23 +00:00
parent 59d3e21ef6
commit 09554fbf50

View File

@ -40,6 +40,7 @@ LDFLAGS="${ac_save_LDFLAGS}"
INCLUDES="-I\$(top_srcdir) -I\$(top_srcdir)/include" INCLUDES="-I\$(top_srcdir) -I\$(top_srcdir)/include"
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Checks for header files. dnl Checks for header files.
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
@ -47,51 +48,51 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(xmmintrin.h emmintrin.h) AC_CHECK_HEADERS(xmmintrin.h emmintrin.h)
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Checks for debugging mode dnl Checks for debugging mode
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
AC_ARG_ENABLE( AC_ARG_ENABLE(
debug, debug,
[AS_HELP_STRING([--enable-debug],[Turn on debugging])] [AS_HELP_STRING(
[--enable-debug],
[build for debugging]
)],
[CFLAGS="-DDEBUG -O -g ${CFLAGS}"],
[CFLAGS="-O3 -ffast-math ${CFLAGS}"]
) )
if test "x$enable_debug" = "xyes"; then
CFLAGS="-DDEBUG -O -g ${CFLAGS}"
else
CFLAGS="-O3 -ffast-math ${CFLAGS}"
fi
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Checks for profiling mode dnl Checks for profiling mode
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
AC_ARG_ENABLE( AC_ARG_ENABLE(
profile, profile,
[AS_HELP_STRING([--enable-profile],[Turn on profiling])] [AS_HELP_STRING(
[--enable-profile],
[build for profiling]
)],
[CFLAGS="-DPROFILE -pg ${CFLAGS}"]
) )
if test "x$enable_profile" = "xyes"; then
CFLAGS="-DPROFILE -pg ${CFLAGS}"
fi
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Checks for SSE build dnl Checks for SSE2 build
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
AC_ARG_ENABLE( AC_ARG_ENABLE(
sse, sse2,
[AS_HELP_STRING([--enable-sse],[Enable SSE optimized routines])] [AS_HELP_STRING(
[--enable-sse2],
[enable SSE2 optimization routines]
)],
[CFLAGS="-msse2 -DUSE_SSE ${CFLAGS}"]
) )
if test "x$enable_sse" = "xyes"; then
CFLAGS="-msse2 -DUSE_SSE ${CFLAGS}"
fi
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Checks for library functions. dnl Checks for library functions.
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
AC_CHECK_LIB(m, fabs) AC_CHECK_LIB(m, fabs)
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------
dnl Export variables dnl Export variables
dnl ------------------------------------------------------------------ dnl ------------------------------------------------------------------