Ticket #38111: patch-configure.ac.diff

File patch-configure.ac.diff, 2.7 KB (added by cooljeanius (Eric Gallager), 11 years ago)

patch 1 referenced by new portfile

  • /opt/local/var/macports/build/_opt_local_var_macports_sources_LocalPorts_sysutils_stress/stress/work/stress-1.0.4/configure.

    old new  
    1 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(src/stress.c)
    3 AM_INIT_AUTOMAKE(stress, 1.0.4)
     1dnl#                                               -*- Autoconf -*-
     2dnl# Process this file with autoconf to produce a configure script.
     3AC_PREREQ([2.69])
     4AC_INIT([stress],[1.0.4],[apw@rossby.metr.ou.edu])
     5AC_CONFIG_SRCDIR([src/stress.c])
     6AC_CONFIG_HEADERS([config.h])
     7AC_CONFIG_MACRO_DIR([m4])
     8AC_CONFIG_AUX_DIR([build-aux])
     9AC_CANONICAL_HOST
     10AC_CANONICAL_TARGET
     11AM_INIT_AUTOMAKE([foreign])
     12AM_MAINTAINER_MODE
     13AM_SANITY_CHECK
     14dnl# AX_* macros require the autoconf-archive package
     15AX_SPEC_PACKAGE_AND_VERSION([Makefile.spec])
    416
    5 dnl Checks for programs.
     17dnl# Checks for programs.
    618AC_PROG_CC
     19AC_PROG_CXX
     20AC_PROG_GCC_TRADITIONAL
     21AC_PROG_RANLIB
     22PKG_PROG_PKG_CONFIG
     23LT_INIT
     24LTVERSION_VERSION
     25
     26dnl# Checks for libraries.
     27AC_CHECK_LIB([m],[sqrt])
     28AC_CHECK_LIB([gen],[basename])
    729
    8 dnl Checks for libraries.
    9 
    10 dnl Checks for header files.
     30dnl# Checks for header files.
    1131AC_HEADER_STDC
    12 AC_CHECK_HEADERS(unistd.h)
     32AC_CHECK_HEADERS([ctype.h errno.h libgen.h math.h stdio.h stdlib.h string.h signal.h time.h unistd.h sys/wait.h])
    1333
    14 dnl Checks for typedefs, structures, and compiler characteristics.
     34dnl# Checks for typedefs, structures, and compiler characteristics.
     35AC_C_CONST
    1536
    16 dnl Checks for library functions.
    17 AC_CHECK_LIB(m,sqrt)
    18 AC_CHECK_LIB(gen,basename)
     37dnl# Checks for library functions.
     38AC_FUNC_FORK
     39AC_FUNC_MALLOC
     40AC_CHECK_FUNCS([alarm sqrt strerror])
    1941
    20 dnl Options that alter compile and link.
     42dnl# Options that alter compile and link.
    2143AC_ARG_ENABLE([static],
    22                AC_HELP_STRING([--enable-static],
    23                               [build static library @<:@default=no@:>@]),
     44               [AS_HELP_STRING([--enable-static],[build static library @<:@default=no@:>@])],
    2445               [static=$enableval],
    2546               [static=no])
    2647
    2748if test "$static" = yes; then
    2849        # if we're using gcc, add `-static' to LDFLAGS
    29         if test -n "$GCC" || test "$ac_cv_prog_gcc" = "yes"; then
     50        if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
    3051                STATIC_LD="-static"
    3152                LDFLAGS="$LDFLAGS -static"
    3253        fi
    3354fi
    3455
    35 AC_OUTPUT(Makefile src/Makefile doc/Makefile test/Makefile)
     56AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile])
     57AC_OUTPUT