mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-26 01:49:52 +03:00
remap: re-enable in autoconf; fix missing pointer assignment
Need to actually output something, too. The whole section for remap had gotten dropped from autoconf, with the obvious results... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
9a92dec1dc
commit
33ec23c0dc
2 changed files with 11 additions and 3 deletions
12
configure.ac
12
configure.ac
|
@ -175,6 +175,14 @@ PA_ARG_DISABLED([tcpwrappers],
|
|||
PA_HAVE_TCPWRAPPERS
|
||||
])
|
||||
|
||||
AC_CHECK_HEADERS_ONCE([regex.h])
|
||||
PA_ARG_DISABLED([remap],
|
||||
[disable regex-based filename remapping], [],
|
||||
[AS_IF([test x"$ac_cv_header_regex_h" = xyes],
|
||||
[AC_SEARCH_LIBS(regcomp, [regex rx],
|
||||
[AC_DEFINE([WITH_REGEX], 1,
|
||||
[Define if we are compiling with regex filename remapping.])])])])
|
||||
|
||||
TFTPD_LIBS="$LIBS $XTRALIBS"
|
||||
LIBS="$common_libs"
|
||||
|
||||
|
@ -188,7 +196,7 @@ AH_TEMPLATE([WITH_READLINE],
|
|||
PA_ARG_DISABLED([readline],
|
||||
[disable the use of readline command-line editing], [],
|
||||
[
|
||||
AC_CHECK_HEADER(readline/readline.h,
|
||||
AC_CHECK_HEADER([readline/readline.h],
|
||||
[
|
||||
dnl readline may need libtermcap or somesuch...
|
||||
AC_SEARCH_LIBS(tputs, [termcap terminfo])
|
||||
|
@ -197,7 +205,7 @@ PA_ARG_DISABLED([readline],
|
|||
[AC_DEFINE(WITH_READLINE)])
|
||||
AC_CHECK_HEADERS(readline/history.h)
|
||||
],
|
||||
[AC_CHECK_HEADER(editline/readline.h,
|
||||
[AC_CHECK_HEADER([editline/readline.h],
|
||||
[
|
||||
dnl editline may need libtermcap or somesuch...
|
||||
AC_SEARCH_LIBS(tputs, [termcap terminfo])
|
||||
|
|
|
@ -185,7 +185,7 @@ static int genmatchstring(char **string, const char *pattern,
|
|||
|
||||
len = do_genmatchstring(NULL, pattern, ibuf, pmatch,
|
||||
macrosub, start, NULL);
|
||||
buf = tf_malloc(len + 1);
|
||||
*string = buf = tf_malloc(len + 1);
|
||||
return do_genmatchstring(buf, pattern, ibuf, pmatch,
|
||||
macrosub, start, nextp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue