Sfoglia il codice sorgente

Initial revision copied from PKG-SNF-MILTER-NIX.


git-svn-id: https://svn.microneil.com/svn/PKG-SNF4CGP-NIX/trunk@2 7ef522f6-be79-40a8-b7df-0a85b3383509
master
adeniz 15 anni fa
parent
commit
c610abe852

+ 38
- 0
SNF4CGP_Developer_Package/Makefile.am Vedi File

@@ -0,0 +1,38 @@
## Process this file with automake to produce Makefile.in
##
## $Id: Makefile.am,v 1.2 2007/05/29 19:06:09 adeniz Exp $
##
## automake input for the MicroNeil SNFMilter distribution (top directory).
##
## Author: Alban Deniz
##
## Copyright (C) 2009 ARM Research Labs, LLC.
## See www.armresearch.com for the copyright terms.
##

SUBDIRS = \
CodeDweller \
SNFMulti \
SNFMilter \
SNFClient \
SNF2Check \
Scripts \
config_files \
Tests

doc_DATA = \
BUGS \
ChangeLog \
README \
TODO \
INSTALL \
COPYING

EXTRA_DIST = \
$(doc_DATA) \
@PACKAGE_NAME@.spec.in \
Makefile.am \
configure.ac \
postfix-multi-message.patch

DISTCHECK_CONFIGURE_FLAGS=--enable-os-type=OpenBSD

+ 147
- 0
SNF4CGP_Developer_Package/configure.ac Vedi File

@@ -0,0 +1,147 @@
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
dnl $Id: configure.in,v 1.33 2008/02/08 15:10:17 adeniz Exp $
dnl
dnl autoconf input for the MicroNeil SNFMilter distribution.
dnl
dnl Author: Alban Deniz
dnl
dnl Copyright (C) 2008 by MicroNeil Corporation. All rights reserved.
dnl See www.armresearch.com for the copyright terms.
dnl
dnl
AC_PREREQ(2.52)

AC_INIT(snf-milter, 1.0.3)
AC_CONFIG_SRCDIR(SNFMilter/SNFMilter.cpp)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AM_CONFIG_HEADER(config.h)

AC_LANG(C++)

AC_DISABLE_SHARED
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET

dnl
dnl Check for programs.
dnl
AC_CHECK_PROG(haveCURL, curl, true, false)
if [[ $haveCURL == "false" ]]
then
AC_MSG_ERROR([The CURL program was not found]);
fi

dnl
dnl Load the user-specified OS.
dnl
AC_ARG_ENABLE(os-type,
[AS_HELP_STRING([--enable-os-type=TYPE],
[where TYPE is OpenBSD, FreeBSD, RedHat, Suse, or Ubuntu])],
[SNF_OSTYPE="${enableval}" ])
case "$SNF_OSTYPE" in
OpenBSD|OpenBSD|FreeBSD|RedHat|Suse|Ubuntu)
:
;;
*)
AC_MSG_ERROR([Invalid OS type: "$SNF_OSTYPE".
You must specify a valid OS type with --enable-os-type=TYPE, where TYPE is one of:
OpenBSD
FreeBSD
Suse
RedHat
Ubuntu])
;;
esac
AC_SUBST(SNF_OSTYPE)
AM_CONDITIONAL([OpenBSD], [test x$SNF_OSTYPE = xOpenBSD])
AM_CONDITIONAL([FreeBSD], [test x$SNF_OSTYPE = xFreeBSD])
AM_CONDITIONAL([Suse], [test x$SNF_OSTYPE = xSuse])
AM_CONDITIONAL([RedHat], [test x$SNF_OSTYPE = xRedHat])
AM_CONDITIONAL([Ubuntu], [test x$SNF_OSTYPE = xUbuntu])

dnl
dnl Load whether this is for a package.
dnl
AC_ARG_ENABLE(for-package,
[AS_HELP_STRING([--enable-for-package],
[enable if building for a package])],
[FOR_PACKAGE="${enableval}" ])
AM_CONDITIONAL([ForPackage], [test x$FOR_PACKAGE = xyes])

dnl
dnl Add non-standard directories for libraries.
dnl
LIBS="$LIBS -L/usr/lib/libmilter"

dnl
dnl Check libraries.
dnl

dnl
dnl pthread library.
dnl
AC_CHECK_LIB(pthread, pthread_create,,
AC_MSG_ERROR([libpthread is required to build AC_PACKAGE_NAME]))

dnl
dnl libmilter library.
dnl
AC_SEARCH_LIBS(smfi_quarantine, milter, ,
AC_MSG_ERROR([libmilter is required to build AC_PACKAGE_NAME]))

dnl
dnl Additional compile-time and link-time flags.
dnl
OTHER_CXXFLAGS='-O3'
SNF_CXXFLAGS='$(OTHER_CXXFLAGS) -pthread'
SNF_LIBS=''

AC_SUBST(OTHER_CXXFLAGS)
AC_SUBST(SNF_CXXFLAGS)
AC_SUBST(SNF_LIBS)

dnl
dnl Output the makefiles.
dnl

AC_OUTPUT([Makefile
${PACKAGE_NAME}.spec
CodeDweller/Makefile
SNFMulti/Makefile
SNFMilter/Makefile
SNFClient/Makefile
SNF2Check/Makefile
Scripts/Makefile
config_files/Makefile
Tests/Makefile])

echo "
Type "make" to build the system using the default (optimized) parameters.

Type "make OTHER_CXXFLAGS=flags" to build the system with compiler
flags 'flags'.

For example:

Type "make OTHER_CXXFLAGS=-g" to build the system for debugging.

Type "make OTHER_CXXFLAGS=-Wall" to enable all warnings.

Type "make OTHER_CXXFLAGS=-Wall -O3" to enable warnings and O3
optimizations.

Default value: $OTHER_CXXFLAGS

OS type: $SNF_OSTYPE

The software will be installed in $prefix.

Done
"

Loading…
Annulla
Salva