summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-05-13 21:23:24 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-05-14 00:19:32 +0200
commitf207a6d353c895c6078f8345340228a2a790a659 (patch)
treeb3cba2609d6f514602a538c044c84027604d0803 /configure.in
parent5e38b8439a48c5d3e7a9624336e1a4ae73049717 (diff)
downloadlvm2-f207a6d353c895c6078f8345340228a2a790a659.tar.gz
configure: preserve CXX/CFLAGS
AC_PROG_CC AC_PROG_CXX Does not preserve CFLAGS CXXFLAGS
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index c3222ed2c..59337637e 100644
--- a/configure.in
+++ b/configure.in
@@ -69,8 +69,12 @@ esac
dnl -- Checks for programs.
AC_PROG_SED
AC_PROG_AWK
+save_CFLAGS=$CFLAGS
+save_CXXFLAGS=$CXXFLAGS
AC_PROG_CC
AC_PROG_CXX
+CFLAGS=$save_CFLAGS
+CXXFLAGS=$save_CXXFLAGS
dnl probably no longer needed in 2008, but...
AC_PROG_GCC_TRADITIONAL