did some work on the automagic for non-Linux systems
Showing
5 changed files
with
17 additions
and
4 deletions
1 | 1999-11-08 Sean 'Shaleh' Perry <shaleh@debian.org> | ||
2 | |||
3 | * cleaned up some of the auto{make,conf} magic for non-Linux | ||
4 | |||
1 | 1999-11-07 Sean 'Shaleh' Perry <shaleh@debian.org> | 5 | 1999-11-07 Sean 'Shaleh' Perry <shaleh@debian.org> |
2 | 6 | ||
3 | * TODO: restructuring, now split into sections | 7 | * TODO: restructuring, now split into sections | ... | ... |
... | @@ -45,6 +45,13 @@ fi | ... | @@ -45,6 +45,13 @@ fi |
45 | 45 | ||
46 | AC_SUBST(AUTHLIBS) | 46 | AC_SUBST(AUTHLIBS) |
47 | 47 | ||
48 | dnl Do we need extra libs for networking? | ||
49 | AC_CHECK_FUNC(gethostbyname, [true], | ||
50 | AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="-lnsl $LIBS")) | ||
51 | |||
52 | AC_CHECK_FUNC(socket, [true], | ||
53 | AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) | ||
54 | |||
48 | dnl Output Makefiles | 55 | dnl Output Makefiles |
49 | AC_OUTPUT(Makefile libmailbox/Makefile mail/Makefile pop3d/Makefile | 56 | AC_OUTPUT(Makefile libmailbox/Makefile mail/Makefile pop3d/Makefile |
50 | imap4d/Makefile lib/Makefile doc/Makefile) | 57 | imap4d/Makefile lib/Makefile doc/Makefile) | ... | ... |
... | @@ -68,7 +68,7 @@ typedef struct _mailbox | ... | @@ -68,7 +68,7 @@ typedef struct _mailbox |
68 | int (*_add_message) __P ((struct _mailbox *, char *)); | 68 | int (*_add_message) __P ((struct _mailbox *, char *)); |
69 | int (*_scan) __P ((struct _mailbox *)); | 69 | int (*_scan) __P ((struct _mailbox *)); |
70 | int (*_is_deleted) __P ((struct _mailbox *, unsigned int)); | 70 | int (*_is_deleted) __P ((struct _mailbox *, unsigned int)); |
71 | int (*_is_updated) __P ((struct mailbox *)); | 71 | int (*_is_updated) __P ((struct _mailbox *)); |
72 | int (*_lock) __P((struct _mailbox *, mailbox_lock_t)); | 72 | int (*_lock) __P((struct _mailbox *, mailbox_lock_t)); |
73 | char *(*_get_body) __P ((struct _mailbox *, unsigned int)); | 73 | char *(*_get_body) __P ((struct _mailbox *, unsigned int)); |
74 | char *(*_get_header) __P ((struct _mailbox *, unsigned int)); | 74 | char *(*_get_header) __P ((struct _mailbox *, unsigned int)); | ... | ... |
1 | CPPFLAGS = -I$(top_srcdir)/libmailbox -Wall -pedantic -g -DTESTING | 1 | CFLAGS = -Wall -pedantic -g -DTESTING |
2 | INCLUDES = -I$(top_srcdir)/libmailbox -I$(top_srcdir)/lib | ||
2 | 3 | ||
3 | bin_PROGRAMS = mail | 4 | bin_PROGRAMS = mail |
4 | 5 | ||
5 | mail_DEPENDENCIES = ../libmailbox/libmailbox.la | 6 | mail_DEPENDENCIES = ../libmailbox/libmailbox.la |
6 | mail_LDADD = ../libmailbox/libmailbox.la | 7 | mail_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a | ... | ... |
... | @@ -6,4 +6,5 @@ sbin_PROGRAMS = pop3d | ... | @@ -6,4 +6,5 @@ sbin_PROGRAMS = pop3d |
6 | pop3d_SOURCES = apop.c auth.c capa.c dele.c extra.c pop3d.c pop3d.h\ | 6 | pop3d_SOURCES = apop.c auth.c capa.c dele.c extra.c pop3d.c pop3d.h\ |
7 | list.c noop.c quit.c retr.c rset.c stat.c top.c uidl.c user.c signal.c | 7 | list.c noop.c quit.c retr.c rset.c stat.c top.c uidl.c user.c signal.c |
8 | 8 | ||
9 | pop3d_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a @AUTHLIBS@ | 9 | pop3d_LDADD = ../libmailbox/libmailbox.la ../lib/libmailutils.a \ |
10 | @AUTHLIBS@ | ... | ... |
-
Please register or sign in to post a comment