configure.in 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. AC_PREREQ(2.59)
  5. AC_INIT(aria2c, 0.3.0, 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. # Set localedir
  11. localedir=${datadir}/locale
  12. AC_SUBST(localedir)
  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. AC_PROG_INSTALL
  19. AC_PROG_RANLIB
  20. AC_PROG_YACC
  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_FUNC_ALLOCA
  27. AC_HEADER_STDC
  28. AC_CHECK_HEADERS([argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h])
  29. # Checks for typedefs, structures, and compiler characteristics.
  30. AC_HEADER_STDBOOL
  31. AC_C_CONST
  32. AC_C_INLINE
  33. AC_TYPE_SIZE_T
  34. AC_HEADER_TIME
  35. AC_STRUCT_TM
  36. AC_C_VOLATILE
  37. # Checks for library functions.
  38. AM_GNU_GETTEXT
  39. AM_GNU_GETTEXT_VERSION(0.12.1)
  40. AC_FUNC_ERROR_AT_LINE
  41. AC_FUNC_MALLOC
  42. AC_FUNC_MEMCMP
  43. AC_FUNC_MMAP
  44. AC_FUNC_REALLOC
  45. AC_FUNC_SELECT_ARGTYPES
  46. AC_FUNC_STAT
  47. AC_FUNC_VPRINTF
  48. AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul])
  49. AC_CONFIG_FILES([Makefile
  50. src/Makefile
  51. test/Makefile
  52. po/Makefile.in
  53. m4/Makefile
  54. intl/Makefile])
  55. AC_OUTPUT