configure.ac 628 B

12345678910111213141516171819202122232425262728293031323334353637
  1. AC_INIT(sqrat, [0.9])
  2. AC_CANONICAL_HOST
  3. AC_CANONICAL_TARGET
  4. AM_INIT_AUTOMAKE
  5. AC_PROG_CC
  6. AC_PROG_CXX
  7. AC_PROG_RANLIB
  8. AM_PROG_CC_C_O
  9. AC_DEFINE(_GNU_SOURCE, 1)
  10. AC_CHECK_SIZEOF([void *])
  11. if test "$ac_cv_sizeof_void_p" -eq 8
  12. then
  13. AC_DEFINE(_SQ64, 1)
  14. CFLAGS="$CFLAGS -m64"
  15. CXXFLAGS="$CXXFLAGS -m64"
  16. fi
  17. AC_SYS_LARGEFILE
  18. AC_CHECK_PROGS([DOXYGEN], [doxygen])
  19. if test -z "$DOXYGEN";
  20. then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
  21. fi
  22. AM_CONDITIONAL([HAVE_DOXYGEN],
  23. [test -n "$DOXYGEN"])AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])])
  24. AC_CONFIG_FILES(Makefile)
  25. AC_OUTPUT