Fix the --enable-optimizations check.
* m4/gccoptim.m4: Add missing AC_LANG_PUSH/AC_LANG_POP around the C test. It was using the C++ compiler instead...
This commit is contained in:
parent
c9dd3f86b4
commit
be6efe94a4
2 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2010-05-20 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
Fix the --enable-optimizations check.
|
||||||
|
|
||||||
|
* m4/gccoptim.m4: Add missing AC_LANG_PUSH/AC_LANG_POP around the
|
||||||
|
C test. It was using the C++ compiler instead...
|
||||||
|
|
||||||
2010-04-16 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2010-04-16 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
* NEWS: Typo.
|
* NEWS: Typo.
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ AC_DEFUN([ad_GCC_OPTIM],
|
||||||
int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
|
int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
|
||||||
EOF
|
EOF
|
||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
|
AC_LANG_PUSH([C])
|
||||||
cf_save_CFLAGS="$CFLAGS"
|
cf_save_CFLAGS="$CFLAGS"
|
||||||
ac_cv_prog_gcc_opt_flags="-O3"
|
ac_cv_prog_gcc_opt_flags="-O3"
|
||||||
for cf_opt in \
|
for cf_opt in \
|
||||||
|
|
@ -24,6 +25,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
AC_LANG_POP([C])
|
||||||
CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_opt_flags"])
|
CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_opt_flags"])
|
||||||
AC_CACHE_CHECK([for g++ optimization options], ac_cv_prog_gxx_opt_flags,
|
AC_CACHE_CHECK([for g++ optimization options], ac_cv_prog_gxx_opt_flags,
|
||||||
[changequote(,)dnl
|
[changequote(,)dnl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue