Ticket #38111: patch-configure.ac.diff
File patch-configure.ac.diff, 2.7 KB (added by cooljeanius (Eric Gallager), 11 years ago) |
---|
-
/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) 1 dnl# -*- Autoconf -*- 2 dnl# Process this file with autoconf to produce a configure script. 3 AC_PREREQ([2.69]) 4 AC_INIT([stress],[1.0.4],[apw@rossby.metr.ou.edu]) 5 AC_CONFIG_SRCDIR([src/stress.c]) 6 AC_CONFIG_HEADERS([config.h]) 7 AC_CONFIG_MACRO_DIR([m4]) 8 AC_CONFIG_AUX_DIR([build-aux]) 9 AC_CANONICAL_HOST 10 AC_CANONICAL_TARGET 11 AM_INIT_AUTOMAKE([foreign]) 12 AM_MAINTAINER_MODE 13 AM_SANITY_CHECK 14 dnl# AX_* macros require the autoconf-archive package 15 AX_SPEC_PACKAGE_AND_VERSION([Makefile.spec]) 4 16 5 dnl Checks for programs.17 dnl# Checks for programs. 6 18 AC_PROG_CC 19 AC_PROG_CXX 20 AC_PROG_GCC_TRADITIONAL 21 AC_PROG_RANLIB 22 PKG_PROG_PKG_CONFIG 23 LT_INIT 24 LTVERSION_VERSION 25 26 dnl# Checks for libraries. 27 AC_CHECK_LIB([m],[sqrt]) 28 AC_CHECK_LIB([gen],[basename]) 7 29 8 dnl Checks for libraries. 9 10 dnl Checks for header files. 30 dnl# Checks for header files. 11 31 AC_HEADER_STDC 12 AC_CHECK_HEADERS( unistd.h)32 AC_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]) 13 33 14 dnl Checks for typedefs, structures, and compiler characteristics. 34 dnl# Checks for typedefs, structures, and compiler characteristics. 35 AC_C_CONST 15 36 16 dnl Checks for library functions. 17 AC_CHECK_LIB(m,sqrt) 18 AC_CHECK_LIB(gen,basename) 37 dnl# Checks for library functions. 38 AC_FUNC_FORK 39 AC_FUNC_MALLOC 40 AC_CHECK_FUNCS([alarm sqrt strerror]) 19 41 20 dnl Options that alter compile and link.42 dnl# Options that alter compile and link. 21 43 AC_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@:>@])], 24 45 [static=$enableval], 25 46 [static=no]) 26 47 27 48 if test "$static" = yes; then 28 49 # if we're using gcc, add `-static' to LDFLAGS 29 if test -n "$GCC" || test "$ac_cv_ prog_gcc" = "yes"; then50 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then 30 51 STATIC_LD="-static" 31 52 LDFLAGS="$LDFLAGS -static" 32 53 fi 33 54 fi 34 55 35 AC_OUTPUT(Makefile src/Makefile doc/Makefile test/Makefile) 56 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile]) 57 AC_OUTPUT