diff configure.ac @ 573:462e4f59c261

* Add qmake config (debug or release) corresponding to configure invocation
author Chris Cannam
date Fri, 08 Oct 2010 13:30:52 +0100
parents 3facd03da4a4
children b716527bb0c9
line wrap: on
line diff
--- a/configure.ac	Fri Oct 08 12:05:44 2010 +0100
+++ b/configure.ac	Fri Oct 08 13:30:52 2010 +0100
@@ -51,7 +51,10 @@
 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
 
+QMAKE_CONFIG="release"
+
 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug support [default=no]])],[AC_MSG_NOTICE([enabling debug build])
+QMAKE_CONFIG="debug"
 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"])
 
@@ -101,6 +104,8 @@
 AC_SUBST(CC)
 AC_SUBST(CXX)
 
+AC_SUBST(QMAKE_CONFIG)
+
 AC_SUBST(CODENAME)
 
 AC_OUTPUT([config.pri])