"Fossies" - the Fresh Open Source Software Archive

Member "stress-1.0.5/configure.ac" (2 Oct 2021, 1020 Bytes) of package /linux/privat/old/stress-1.0.5.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 AC_PREREQ([2.69])
    2 AC_INIT([stress], [1.0.5], [https://github.com/resurrecting-open-source-projects/stress/issues])
    3 AC_CONFIG_SRCDIR([src/stress.c])
    4 AC_CONFIG_HEADERS([config.h])
    5 AM_INIT_AUTOMAKE
    6 
    7 # Checks for programs.
    8 AC_PROG_CC
    9 AC_PROG_INSTALL
   10 AC_PROG_MAKE_SET
   11 
   12 # Checks for header files.
   13 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
   14 
   15 # Checks for library functions.
   16 AC_FUNC_FORK
   17 AC_FUNC_MALLOC
   18 AC_CHECK_FUNCS([alarm sqrt strerror])
   19 
   20 # Special functions
   21 AC_ARG_ENABLE([static],
   22                AS_HELP_STRING([--enable-static],
   23                               [build static library @<:@default=no@:>@]),
   24                [static=$enableval],
   25                [static=no])
   26 
   27 if test "$static" = yes; then
   28         # if we're using gcc, add `-static' to LDFLAGS
   29         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
   30                 STATIC_LD="-static"
   31                 LDFLAGS="$LDFLAGS -static"
   32         fi
   33 fi
   34 
   35 AC_CONFIG_FILES([Makefile
   36                  src/Makefile
   37                  test/Makefile])
   38 AC_OUTPUT