summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 4a01f270c36c506b1d4d8214f73d4c01458ad491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dnl Process this file with autoconf to produce a configure script.

AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(esmtp, 0.1)

AM_MAINTAINER_MODE

AC_PROG_CC
AC_PROG_CPP

AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h)

dnl getopt needs this
AC_C_CONST

AM_PROG_LEX
AC_PROG_MAKE_SET
AC_PROG_YACC

YFLAGS=-d

dnl Check for libESMTP
AC_CHECK_LIB(esmtp, smtp_start_session, 
    LIBS="$LIBS -lesmtp -lpthread",
    AC_MSG_ERROR([*** libESMTP library not found.]),
    -lpthread)

AC_OUTPUT([Makefile])