Eliminate AC_TRY_COMPILE (Obsolete).

This commit is contained in:
Ralf Corsépius 2007-10-27 06:28:06 +02:00
parent 519977112e
commit bfb5e17e77
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ if test "$GCC" = yes; then
echo
for flag in $cflags_to_try; do
CFLAGS="$CFLAGS $flag"
AC_TRY_COMPILE(, [return 0;], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])],[
echo " $flag"
RPMCFLAGS="$RPMCFLAGS $flag"
])
],[])
CFLAGS=$old_cflags
done
CFLAGS="$CFLAGS $RPMCFLAGS"