Revert "Set CFLAGS also."

This reverts commit 032723c874.
This commit is contained in:
Nicholas Marriott 2021-01-17 18:24:52 +00:00
parent 032723c874
commit b18834be8a

View File

@ -190,8 +190,6 @@ PKG_CHECK_MODULES(
[
AM_CPPFLAGS="$LIBEVENT_CFLAGS $AM_CPPFLAGS"
CPPFLAGS="$AM_CPPFLAGS $SAVED_CPPFLAGS"
AM_CFLAGS="$LIBEVENT_CFLAGS $AM_CFLAGS"
CFLAGS="$AM_CFLAGS $SAVED_CFLAGS"
LIBS="$LIBEVENT_LIBS $LIBS"
found_libevent=yes
],
@ -231,8 +229,6 @@ PKG_CHECK_MODULES(
if test "x$found_ncurses" = xyes; then
AM_CPPFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $AM_CPPFLAGS"
CPPFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $SAVED_CPPFLAGS"
AM_CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $AM_CFLAGS"
CFLAGS="$LIBNCURSES_CFLAGS $LIBTINFO_CFLAGS $SAVED_CFLAGS"
LIBS="$LIBNCURSES_LIBS $LIBTINFO_LIBS $LIBS"
else
AC_SEARCH_LIBS(