summaryrefslogtreecommitdiff
path: root/source4/lib/cmdline/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/cmdline/config.m4')
-rw-r--r--source4/lib/cmdline/config.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/lib/cmdline/config.m4 b/source4/lib/cmdline/config.m4
index 8316dff10f..a8b50c786f 100644
--- a/source4/lib/cmdline/config.m4
+++ b/source4/lib/cmdline/config.m4
@@ -72,10 +72,9 @@ AC_CHECK_LIB(readline, rl_completion_matches,
TMP_LIBCMDLINE_OBJS="lib/cmdline/readline.o lib/cmdline/popt_common.o"
TMP_LIBCMDLINE_LIBS="$TERMLIBS"
-#hack...
-LIBS="$LIBS $TERMLIBS"
+SMB_EXT_LIB(READLINE, [$TERMLIBS])
SMB_SUBSYSTEM(LIBCMDLINE,[],
[${TMP_LIBCMDLINE_OBJS}],
- [ALLLIBS],
- [LIBPOPT])
+ [],
+ [LIBPOPT EXT_LIB_READLINE])