m4: Save cflags before restoring them

If we do CFLAGS=${SAVE_CFLAGS}, it is important to do
SAVE_CFLAGS=${CFLAGS} first...
This commit is contained in:
Sebastian Dransfeld 2013-11-14 05:55:10 +01:00
parent 90bbc21d02
commit 9a9222e3fc
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ dnl check if the compiler supports POSIX threads
if test "x${_efl_have_posix_threads}" = "xyes" ; then
SAVE_LIBS=${LIBS}
SAVE_CFLAGS=${CFLAGS}
LIBS="${LIBS} ${LIBMULTITHREAD}"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
@ -101,6 +102,7 @@ efl_have_posix_threads_spinlock="no"
if test "x${_efl_have_posix_threads}" = "xyes" ; then
SAVE_LIBS=${LIBS}
SAVE_CFLAGS=${CFLAGS}
LIBS="${LIBS} ${LIBMULTITHREAD}"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[