The httperf - HTTP load generator with post-quantum support from BoringSSL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

95 lines
2.4 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.60)
  4. AC_INIT(httperf, 0.9.1, httperf@linux.hpl.hp.com)
  5. AC_CONFIG_SRCDIR([src/httperf.c])
  6. AC_CONFIG_HEADER([config.h])
  7. AC_CANONICAL_TARGET
  8. AM_INIT_AUTOMAKE(httperf, 0.9.1)
  9. # Checks for programs.
  10. AC_GNU_SOURCE
  11. AC_PROG_CC([cc gcc])
  12. AC_PROG_CC_C99
  13. AC_PROG_INSTALL
  14. AC_PROG_LIBTOOL
  15. # Are we building the idleconn program?
  16. AC_ARG_ENABLE([idleconn],
  17. AS_HELP_STRING([--enable-idleconn],
  18. [Build the idleconn program (default=no), requires libevent]),
  19. [enable_idleconn=$enableval],
  20. [enable_idleconn=no])
  21. if test "$enable_idleconn" = "yes"; then
  22. AC_CHECK_LIB([event],
  23. [event_init],
  24. ,
  25. [AC_MSG_ERROR([libevent is required to build idleconn])])
  26. fi
  27. AM_CONDITIONAL(IDLECONN,
  28. [test "x$enable_idleconn" = xyes])
  29. # Checks for libraries.
  30. AC_CHECK_LIB(m, sqrt)
  31. AC_CHECK_LIB(crypto, main)
  32. AC_CHECK_LIB(ssl, SSL_version, , AC_MSG_WARN([SSL Disabled]) )
  33. # The following checks are for solaris and its ilk
  34. AC_SEARCH_LIBS([getsockopt], [socket])
  35. AC_SEARCH_LIBS([socket], [socket nsl])
  36. AC_SEARCH_LIBS([gethostbyname], [socket nsl])
  37. AC_SEARCH_LIBS([inet_aton], [resolv])
  38. # Checks for header files.
  39. AC_FUNC_ALLOCA
  40. AC_HEADER_TIME
  41. AC_CHECK_HEADERS([openssl/ssl.h getopt.h])
  42. if test "$ac_cv_header_openssl_ssl_h" = "yes" \
  43. -a "$ac_cv_lib_ssl_SSL_version" = "yes" \
  44. -a "$ac_cv_lib_crypto_main" = "yes"; then
  45. CFLAGS="${CFLAGS} -DHAVE_SSL"
  46. LDFLAGS="${LDFLAGS}"
  47. fi
  48. # Checks for typedefs, structures, and compiler characteristics.
  49. AC_C_CONST
  50. AC_TYPE_SIZE_T
  51. AC_TYPE_SSIZE_T
  52. AC_CHECK_TYPE(u_char, unsigned char)
  53. AC_CHECK_TYPE(u_short, unsigned short)
  54. AC_CHECK_TYPE(u_int, unsigned int)
  55. AC_CHECK_TYPE(u_long, unsigned long)
  56. # Check for unsigned long long int (stat/basic.c)
  57. AC_TYPE_UNSIGNED_LONG_LONG_INT
  58. if test "$ac_cv_type_unsigned_long_long_int" != "yes" ; then
  59. AC_CHECK_TYPE(u_wide, unsigned long)
  60. else
  61. AC_CHECK_TYPE(u_wide, unsigned long long)
  62. fi
  63. # Checks for library functions.
  64. AC_FUNC_MMAP
  65. AC_FUNC_SELECT_ARGTYPES
  66. AC_TYPE_SIGNAL
  67. AC_FUNC_STRTOD
  68. AC_FUNC_VPRINTF
  69. AC_CHECK_FUNCS([getopt_long])
  70. # Turn on Debug if necessary
  71. AC_ARG_ENABLE(debug,
  72. [ --enable-debug enable debug support])
  73. if test "$enable_debug" = yes; then
  74. CFLAGS="${CFLAGS} -DDEBUG"
  75. fi
  76. AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)