configure.in 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. AM_GNU_GETTEXT([external])
  12. AM_GNU_GETTEXT_VERSION(0.12.1)
  13. # Checks for arguments.
  14. AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is installed. Default: yes], [enable_ssl=$enableval], [enable_ssl=yes])
  15. # Checks for programs.
  16. AC_PROG_CXX
  17. AC_PROG_CC
  18. # Checks for libraries.
  19. if test "x$enable_ssl" = "xyes"; then
  20. AC_CHECK_LIB([ssl], [SSL_library_init])
  21. fi
  22. # Checks for header files.
  23. AC_HEADER_STDC
  24. 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])
  25. # Checks for typedefs, structures, and compiler characteristics.
  26. AC_HEADER_STDBOOL
  27. AC_C_CONST
  28. AC_TYPE_SIZE_T
  29. AC_HEADER_TIME
  30. # Checks for library functions.
  31. AC_FUNC_ERROR_AT_LINE
  32. AC_FUNC_SELECT_ARGTYPES
  33. AC_FUNC_STAT
  34. AC_FUNC_VPRINTF
  35. AC_CHECK_FUNCS([getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol])
  36. AC_CONFIG_FILES([Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile ])
  37. AC_OUTPUT