Browse Source

Merge 07cb730bf3 into 69a4213235

pull/76/merge
Levi Zim GitHub 1 month ago
parent
commit
9bec1ed023
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      configure.ac

+ 5
- 0
configure.ac View File

@@ -145,6 +145,9 @@ AC_COMPILE_IFELSE(
AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the ‘Sleep’ function.])], AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the ‘Sleep’ function.])],
[AC_MSG_RESULT(no)]) [AC_MSG_RESULT(no)])


# Disable LTO when checking for the instructions
CFLAGS="${CFLAGS} -fno-lto"

AC_MSG_CHECKING(for fsin/fcos) AC_MSG_CHECKING(for fsin/fcos)
AC_COMPILE_IFELSE( AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM( [AC_LANG_PROGRAM(
@@ -163,6 +166,8 @@ AC_COMPILE_IFELSE(
AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the ‘fldln2’ and other floating point instructions.])], AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the ‘fldln2’ and other floating point instructions.])],
[AC_MSG_RESULT(no)]) [AC_MSG_RESULT(no)])


CFLAGS="${CFLAGS%$' -fno-lto'}"

AC_CHECK_HEADERS(zlib.h) AC_CHECK_HEADERS(zlib.h)
AC_CHECK_LIB(z, gzopen, [ZLIB_LIBS="${ZLIB_LIBS} -lz"]) AC_CHECK_LIB(z, gzopen, [ZLIB_LIBS="${ZLIB_LIBS} -lz"])




Loading…
Cancel
Save