Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

37 lines
1.2KB

  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl
  3. dnl This file is free software; as a special exception the author gives
  4. dnl unlimited permission to copy and/or distribute it, with or without
  5. dnl modifications, as long as this notice is preserved.
  6. dnl
  7. dnl This program is distributed in the hope that it will be useful, but
  8. dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  9. dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. m4_include([version.m4])
  11. AC_INIT([blackjack],[libreblackjackversion],[jeremy@seamplex.com])
  12. AM_INIT_AUTOMAKE
  13. # AM_GNU_GETTEXT([external])
  14. AC_CONFIG_SRCDIR([src/main.cpp])
  15. AC_CANONICAL_HOST
  16. AC_PROG_CXX
  17. AC_CHECK_HEADER([readline/readline.h])
  18. AC_CHECK_LIB([readline], [readline])
  19. # default is optimized without debugging symbols
  20. AS_IF([test "$CXXFLAGS" = "-g -O2"], [CXXFLAGS="-O3"])
  21. AC_MSG_NOTICE([creating version-conf.h])
  22. cat << EOF > src/version-conf.h
  23. #define COMPILATION_ARCH "${host_os} ${host_cpu}"
  24. #define COMPILER_VERSION "`$CXX --version | head -n1`"
  25. #define COMPILER_CFLAGS "$CFLAGS"
  26. EOF
  27. #AC_CONFIG_FILES([Makefile doc/Makefile po/Makefile.in])
  28. AC_CONFIG_FILES([Makefile])
  29. AC_OUTPUT