configure.ac 395 B

123456789101112131415161718192021
  1. AC_INIT([librdrand], [1.1], [Intel Software Network])
  2. AC_PROG_CC([icc gcc])
  3. if test "x$CC" = "xgcc"
  4. then
  5. AC_MSG_CHECKING([if gcc knows the rdrand instruction])
  6. AC_TRY_COMPILE([], [
  7. asm("rdrand %eax;");
  8. ], AC_DEFINE([HAVE_RDRAND_IN_GCC]) AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]))
  9. fi
  10. AC_CHECK_HEADERS([inttypes.h])
  11. AC_CONFIG_FILES([Makefile])
  12. AC_CONFIG_HEADERS([config.h])
  13. AC_OUTPUT