Curses detection. Swap library link order in sieve to make sure dependacies are…
… caught right. Add errno.h to mailutils/Makefile.am for make release
Showing
4 changed files
with
35 additions
and
7 deletions
1 | 2002-02-21 Jeff Bailey <jbailey@outpost.dnsalias.org> | ||
2 | |||
3 | * sieve/Makefile.am: Link @ARGPLIBS@ before libmailutils.la to | ||
4 | compensate for lack of interlibrary dependancies | ||
5 | |||
6 | * configure.in: Detect either curses or ncurses | ||
7 | |||
8 | * include/mailutils/Makefile.am: Add errno.h | ||
9 | |||
1 | 2002-02-20 20:25 Sam Roberts <sroberts@uniserve.com> | 10 | 2002-02-20 20:25 Sam Roberts <sroberts@uniserve.com> |
2 | 11 | ||
3 | * comsat/action.c, comsat/cfg.c, lib/argcv.c, lib/argcv.h, | 12 | * comsat/action.c, comsat/cfg.c, lib/argcv.c, lib/argcv.h, | ... | ... |
... | @@ -270,19 +270,37 @@ AC_CHECK_FUNC(gethostbyname, [true], | ... | @@ -270,19 +270,37 @@ AC_CHECK_FUNC(gethostbyname, [true], |
270 | AC_CHECK_FUNC(socket, [true], | 270 | AC_CHECK_FUNC(socket, [true], |
271 | AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) | 271 | AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) |
272 | 272 | ||
273 | dnl Check for Curses libs. | ||
274 | AC_CHECK_LIB(ncurses, tputs, CURSES_LIBS="-lncurses", | ||
275 | AC_CHECK_LIB(curses, tputs, CURSES_LIBS="-lcurses")) | ||
276 | |||
277 | AC_SUBST(CURSES_LIBS) | ||
278 | |||
273 | dnl Check for GNU Readline | 279 | dnl Check for GNU Readline |
274 | AC_SUBST(READLINE_LIBS) | 280 | AC_SUBST(READLINE_LIBS) |
281 | |||
275 | if test x"$usereadline" = x"yes"; then | 282 | if test x"$usereadline" = x"yes"; then |
276 | AC_CHECK_LIB(readline, readline, | 283 | |
277 | [AC_CHECK_HEADERS(readline/readline.h, | 284 | dnl FIXME This should only link in the curses libraries if it's |
285 | dnl really needed! | ||
286 | |||
287 | saved_LIBS=$LIBS | ||
288 | LIBS="$LIBS $CURSES_LIBS" | ||
289 | AC_CHECK_LIB(readline, readline, mu_have_readline=yes) | ||
290 | LIBS=$saved_LIBS | ||
291 | |||
292 | if test x"$mu_have_readline" = x"yes"; then | ||
293 | AC_CHECK_HEADERS(readline/readline.h, | ||
278 | AC_DEFINE(WITH_READLINE)) | 294 | AC_DEFINE(WITH_READLINE)) |
279 | READLINE_LIBS="-lcurses -lreadline" | 295 | READLINE_LIBS="-lreadline $CURSES_LIBS" |
280 | saved_LIBS=$LIBS | 296 | saved_LIBS=$LIBS |
281 | LIBS="$LIBS $READLINE_LIBS" | 297 | LIBS="$LIBS $READLINE_LIBS" |
282 | AC_CHECK_FUNCS(rl_completion_matches) | 298 | AC_CHECK_FUNCS(rl_completion_matches) |
283 | LIBS=$saved_LIBS], | 299 | LIBS=$saved_LIBS |
284 | :, | 300 | else |
285 | -lcurses) | 301 | AC_MSG_WARN(readline requested but does not seem to be installed) |
302 | fi | ||
303 | |||
286 | fi | 304 | fi |
287 | 305 | ||
288 | dnl Check for DBM | 306 | dnl Check for DBM | ... | ... |
... | @@ -54,7 +54,7 @@ HDR = \ | ... | @@ -54,7 +54,7 @@ HDR = \ |
54 | tree.h \ | 54 | tree.h \ |
55 | util.h | 55 | util.h |
56 | 56 | ||
57 | sieve_LDADD = ../mailbox/libmailbox.la ../lib/libmailutils.la @ARGPLIBS@ | 57 | sieve_LDADD = ../mailbox/libmailbox.la @ARGPLIBS@ ../lib/libmailutils.la |
58 | sieve_SOURCES = \ | 58 | sieve_SOURCES = \ |
59 | sieve.c \ | 59 | sieve.c \ |
60 | ${SRC} $(HDR) | 60 | ${SRC} $(HDR) | ... | ... |
-
Please register or sign in to post a comment