Commit b9440f36 b9440f361f62cf36bb720300ce4facab06bbb659 by Sean 'Shaleh' Perry

did some work on the automagic for non-Linux systems

1 parent fb600737
1999-11-08 Sean 'Shaleh' Perry <shaleh@debian.org>
* cleaned up some of the auto{make,conf} magic for non-Linux
1999-11-07 Sean 'Shaleh' Perry <shaleh@debian.org>
* TODO: restructuring, now split into sections
......
......@@ -45,6 +45,13 @@ fi
AC_SUBST(AUTHLIBS)
dnl Do we need extra libs for networking?
AC_CHECK_FUNC(gethostbyname, [true],
AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="-lnsl $LIBS"))
AC_CHECK_FUNC(socket, [true],
AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS"))
dnl Output Makefiles
AC_OUTPUT(Makefile libmailbox/Makefile mail/Makefile pop3d/Makefile
imap4d/Makefile lib/Makefile doc/Makefile)
......
......@@ -68,7 +68,7 @@ typedef struct _mailbox
int (*_add_message) __P ((struct _mailbox *, char *));
int (*_scan) __P ((struct _mailbox *));
int (*_is_deleted) __P ((struct _mailbox *, unsigned int));
int (*_is_updated) __P ((struct mailbox *));
int (*_is_updated) __P ((struct _mailbox *));
int (*_lock) __P((struct _mailbox *, mailbox_lock_t));
char *(*_get_body) __P ((struct _mailbox *, unsigned int));
char *(*_get_header) __P ((struct _mailbox *, unsigned int));
......
CPPFLAGS = -I$(top_srcdir)/libmailbox -Wall -pedantic -g -DTESTING
CFLAGS = -Wall -pedantic -g -DTESTING
INCLUDES = -I$(top_srcdir)/libmailbox -I$(top_srcdir)/lib
bin_PROGRAMS = mail
mail_DEPENDENCIES = ../libmailbox/libmailbox.la
mail_LDADD = ../libmailbox/libmailbox.la
mail_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a
......
......@@ -6,4 +6,5 @@ sbin_PROGRAMS = pop3d
pop3d_SOURCES = apop.c auth.c capa.c dele.c extra.c pop3d.c pop3d.h\
list.c noop.c quit.c retr.c rset.c stat.c top.c uidl.c user.c signal.c
pop3d_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a @AUTHLIBS@
pop3d_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a \
@AUTHLIBS@
......