aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 6ea0a81ac..0bd463e59 100644
--- a/configure.in
+++ b/configure.in
@@ -59,9 +59,6 @@ else
fi
if test "$use_m_guard" = yes ; then
AC_DEFINE(M_GUARD)
- CFLAGS="$CFLAGS -g"
-else
- CFLAGS="$CFLAGS -O2"
fi
@@ -91,10 +88,18 @@ AC_PROG_INSTALL
dnl AC_CYGWIN32
+MPI_OPT_FLAGS=""
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall"
+ dnl Always enable optimazation in MPI
+ if echo "$CFLAGS" | grep "-O" >/dev/null ; then
+ :
+ else
+ MPI_OPT_FLAGS=-O2
+ fi
fi
+
try_gettext=yes
try_gdbm=yes
case "${target}" in
@@ -130,6 +135,7 @@ case "${target}" in
;;
esac
+AC_SUBST(MPI_OPT_FLAGS)
GNUPG_CHECK_PIC
GNUPG_CHECK_RDYNAMIC
@@ -169,6 +175,7 @@ case "${target}" in
esac
AC_DEFINE_UNQUOTED(NAME_OF_DEV_RANDOM, "$NAME_OF_DEV_RANDOM")
AC_DEFINE_UNQUOTED(NAME_OF_DEV_URANDOM, "$NAME_OF_DEV_URANDOM")
+AC_SUBST(MPI_OPT_FLAGS)
dnl Checks for libraries.