Commit 6e3dda29 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(LIBMAIL): New macro. Conditionally includes -lmail.

(movemail): Use LIBMAIL, to link against -lmail.
parent 5aab7a72
......@@ -200,6 +200,10 @@ HESIODLIB=
MOVE_LIBS=$(KRBLIB) $(DESLIB) $(COM_ERRLIB) $(HESIODLIB)
#ifdef HAVE_LIBMAIL
LIBMAIL=-lmail
#endif
LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC
/* We need to #define emacs to get the right versions of some files.
......@@ -365,7 +369,7 @@ b2m: ${srcdir}/b2m.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
movemail: movemail.o pop.o
$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(LOADLIBES) $(MOVE_LIBS) -o movemail
$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(LOADLIBES) $(LIBMAIL) $(MOVE_LIBS) -o movemail
movemail.o: ${srcdir}/movemail.c ../src/config.h
$(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment