Commit de0f8ecb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fixes

parent b3621b52
......@@ -13,7 +13,7 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE],
CFLAGS_save="${CFLAGS}"
as_ac_var=`echo "ac_cv_prog_cc_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $CC accepts $1], [$as_ac_var], [
CFLAGS="$1 ${CFLAGS_save}"
CFLAGS="${CFLAGS_save} $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [
eval "$as_ac_var=yes"
],[
......@@ -21,11 +21,11 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE],
])
])
ac_res=`echo "${as_ac_var}"`
ac_res=`eval echo '${'$as_ac_var'}'`
AS_IF([test "${ac_res}" != "no"], [
CFLAGS="$1 ${CFLAGS_save}"
CXXFLAGS="$1 ${CFLAGS_save}"
OBJCFLAGS="$1 ${OBJCFLAGS_save}"
CFLAGS="${CFLAGS_save} $1"
CXXFLAGS="${CFLAGS_save} $1"
OBJCFLAGS="${OBJCFLAGS_save} $1"
$2
], [
CFLAGS="${CFLAGS_save}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment