"Fossies" - the Fresh Open Source Software Archive

Member "amavisd-milter-1.7.2/configure.ac" (13 Jul 2019, 2068 Bytes) of package /linux/privat/amavisd-milter-1.7.2.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. See also the last Fossies "Diffs" side-by-side code changes report for "configure.ac": 1.6.0_vs_1.6.1.

    1 AC_INIT([amavisd-milter],
    2   m4_esyscmd([
    3     [ -n "${AMAVISD_MILTER_VERSION}" ] &&
    4     /bin/echo -n "${AMAVISD_MILTER_VERSION}" ||
    5     /bin/echo -n "dev-$(TZ=UTC date +%Y%m%d)"
    6   ])dnl
    7 )
    8 AC_PREREQ(2.62)
    9 
   10 AC_CONFIG_SRCDIR(aclocal/acinclude.m4)
   11 AC_CONFIG_AUX_DIR(aclocal)
   12 AC_CONFIG_MACRO_DIR(aclocal)
   13 AC_CONFIG_HEADERS([config.h])
   14 
   15 AC_CANONICAL_BUILD
   16 AC_CANONICAL_HOST
   17 AC_CANONICAL_TARGET
   18 
   19 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
   20 dnl AM_MAINTAINER_MODE
   21 
   22 # Kludge to keep autoconf from adding -g -O2
   23 CFLAGS=" $CFLAGS"
   24 
   25 AC_PROG_INSTALL
   26 AC_PROG_MAKE_SET
   27 AC_PROG_RANLIB
   28 
   29 AC_PROG_CC
   30 AM_PROG_CC_C_O
   31 AM_PROG_AR
   32 ACX_ENABLE_DEBUG
   33 ACX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   34   CC="$PTHREAD_CC"] AC_DEFINE(HAVE_PTHREAD, 1),
   35   AC_MSG_ERROR([no usable pthreads library found]))
   36 AC_CHECK_FUNCS([sem_timedwait])
   37 
   38 AC_TYPE_MODE_T
   39 AC_TYPE_SIZE_T
   40 AC_HEADER_DIRENT
   41 AC_STRUCT_DIRENT_D_NAMLEN
   42 AC_HEADER_STDC
   43 AC_HEADER_STDBOOL
   44 AC_HEADER_TIME
   45 AC_STRUCT_TIMEZONE
   46 AC_CHECK_HEADERS([arpa/inet.h ctype.h errno.h fcntl.h limits.h \
   47   netinet/in.h stdarg.h stdio.h stdlib.h string.h sys/param.h sys/time.h \
   48   sys/types.h sys/socket.h sys/stat.h sys/un.h syslog.h sysexits.h unistd.h],[],
   49   AC_MSG_ERROR([unable to find required header files]))
   50 
   51 AC_CHECK_LIB(rt, sem_init, LIBS="$LIBS -lrt")
   52 AC_CHECK_POSIX_SEMAPHORES
   53 
   54 AC_CHECK_HEADERS([fts.h])
   55 AC_CHECK_FUNCS([arc4random])
   56 AC_REPLACE_FUNCS([daemon fts_open mkdtemp strlcpy])
   57 
   58 AC_CHECK_FUNC([inet_ntop], [], [AC_SEARCH_LIBS(inet_ntop, [nsl])])
   59 
   60 AC_CHECK_DIRFD
   61 
   62 AX_PATH_MILTER([8.12], [LIBS="$MILTER_LIBS $LIBS"
   63   LDFLAGS="$MILTER_LDFLAGS $LDFLAGS" CPPFLAGS="$CPPFLAGS $MILTER_CPPFLAGS"],
   64   AC_MSG_ERROR([required milter library and header not found]))
   65 AC_CHECK_FUNCS([smfi_insheader smfi_opensocket smfi_progress smfi_quarantine \
   66   smfi_setbacklog])
   67 
   68 AC_EILSEQ
   69 gl_EOVERFLOW
   70 
   71 AC_CHECK_AF_INET6
   72 AC_CHECK_INET6_ADDRSTRLEN
   73 AC_CHECK_STRUCT_SOCKADDR_IN6
   74 
   75 AC_CONFIG_FILES([Makefile amavisd-milter/Makefile compat/Makefile])
   76 AC_CONFIG_FILES([autoconf.sh], [chmod +x autoconf.sh])
   77 
   78 AC_LOCAL_STATE_DIR
   79 AC_WORKING_DIR
   80 
   81 AC_OUTPUT