configure.in 1.3 KB

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