configure.in 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. AC_PREREQ(2.59)
  5. AC_INIT(aria2c, 0.2.1, tujikawa@rednoah.com)
  6. AM_INIT_AUTOMAKE()
  7. AM_PATH_CPPUNIT(1.10.2)
  8. AC_CONFIG_SRCDIR([src/Socket.h])
  9. AC_CONFIG_HEADERS([config.h])
  10. AC_PROG_RANLIB
  11. # Checks for arguments.
  12. AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is installed. Default: yes], [enable_ssl=$enableval], [enable_ssl=yes])
  13. # Checks for programs.
  14. AC_PROG_CXX
  15. AC_PROG_CC
  16. # Checks for libraries.
  17. if test "x$enable_ssl" = "xyes"; then
  18. AC_CHECK_LIB([ssl], [SSL_library_init])
  19. fi
  20. # Checks for header files.
  21. AC_HEADER_STDC
  22. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/socket.h sys/time.h unistd.h limits.h])
  23. # Checks for typedefs, structures, and compiler characteristics.
  24. AC_HEADER_STDBOOL
  25. AC_C_CONST
  26. AC_TYPE_SIZE_T
  27. AC_HEADER_TIME
  28. # Checks for library functions.
  29. AC_FUNC_ERROR_AT_LINE
  30. AC_FUNC_SELECT_ARGTYPES
  31. AC_FUNC_STAT
  32. AC_FUNC_VPRINTF
  33. AC_CHECK_FUNCS([getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol])
  34. AC_CONFIG_FILES([Makefile src/Makefile test/Makefile])
  35. AC_OUTPUT