"Fossies" - the Fresh Open Source Software Archive

Member "httperf-0.9.0/configure.ac" (7 Apr 2007, 2190 Bytes) of package /linux/www/old/httperf-0.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #                                               -*- Autoconf -*-
    2 # Process this file with autoconf to produce a configure script.
    3 
    4 AC_PREREQ(2.60)
    5 AC_INIT(httperf, 0.9.0, httperf@linux.hpl.hp.com)
    6 AC_CONFIG_SRCDIR([src/httperf.c])
    7 AC_CONFIG_HEADER([config.h])
    8 
    9 AC_CANONICAL_TARGET
   10 
   11 AM_INIT_AUTOMAKE(httperf, 0.9.0)
   12 
   13 # Turn on Debug if necessary
   14 AC_ARG_ENABLE(debug,
   15  [  --enable-debug          enable debug support])
   16 
   17 if test "$enable_debug" = yes; then
   18       CFLAGS="${CFLAGS} -DDEBUG"
   19 fi
   20 
   21 # Checks for programs.
   22 AC_GNU_SOURCE
   23 AC_PROG_CC([cc gcc])
   24 AC_PROG_INSTALL
   25 AC_PROG_LIBTOOL
   26 AC_PROG_GCC_TRADITIONAL
   27 
   28 # Checks for libraries.
   29 AC_CHECK_LIB(m, sqrt)
   30 AC_CHECK_LIB(crypto, main)
   31 AC_CHECK_LIB(ssl, SSL_version)
   32 # The following checks are for solaris and its ilk
   33 AC_CHECK_LIB(socket, getsockopt)
   34 AC_CHECK_LIB(nsl, socket)
   35 AC_CHECK_LIB(resolv, inet_aton)
   36 
   37 # Checks for header files.
   38 AC_FUNC_ALLOCA
   39 AC_HEADER_STDC
   40 AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h libintl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h openssl/ssl.h getopt.h])
   41 
   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 
   49 # Checks for typedefs, structures, and compiler characteristics.
   50 AC_C_CONST
   51 AC_TYPE_SIZE_T
   52 AC_TYPE_SSIZE_T
   53 AC_HEADER_TIME
   54 AC_CHECK_TYPE(u_char, unsigned char)
   55 AC_CHECK_TYPE(u_short, unsigned short)
   56 AC_CHECK_TYPE(u_int, unsigned int)
   57 AC_CHECK_TYPE(u_long, unsigned long)
   58 
   59 # Check for unsigned long long int (stat/basic.c)
   60 AC_TYPE_UNSIGNED_LONG_LONG_INT
   61 if test "$ac_cv_type_unsigned_long_long_int" != "yes" ; then
   62 	AC_CHECK_TYPE(u_wide, unsigned long)
   63 else
   64 	AC_CHECK_TYPE(u_wide, unsigned long long)
   65 fi
   66 
   67 # Checks for library functions.
   68 AC_FUNC_MALLOC
   69 AC_FUNC_MMAP
   70 AC_FUNC_REALLOC
   71 AC_FUNC_SELECT_ARGTYPES
   72 AC_TYPE_SIGNAL
   73 AC_FUNC_STRTOD
   74 AC_FUNC_VPRINTF
   75 AC_CHECK_FUNCS([gethostbyname gettimeofday memset munmap select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul inet_aton getopt_long])
   76 
   77 AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)