Mercurial > octave
diff libgui/module.mk @ 22234:66dd260512a4
allow configure to select Qt version
* Makefile.am (AM_FFLAGS): Include FPICFLAG in definition.
(AM_CFLAGS): Include CPICFLAG in definition.
(AM_CXXFLAGS): Include CXXPICFLAG in definition.
* libgui/module.mk: Use MOCFLAGS, UICFLAGS, RCCFLAGS, and
LRELEASEFLAGS in MOC, UIC, RCC, and LRELEASE commands.
* acinclude.m4: Add CXXPICFLAG to CXXFLAGS in Qt tests.
(OCTAVE_CHECK_QSCINTILLA_VERSION): Rename from
OCTAVE_CHECK_VERSION_2_6_0.
(OCTAVE_CHECK_QT_VERSION, OCTAVE_CHECK_QT): New macros extracted from
configure.ac.
* configure.ac: Move checks for shared vs. static libraries earlier in
file. Allow checking for multiple versions of Qt libraries. Report
MOC, UIC, RCC, and LRELEASE in summary.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Aug 2016 14:41:52 -0400 |
parents | 2d3972b802ff |
children | b8eeca55fa81 |
line wrap: on
line diff
--- a/libgui/module.mk Mon Aug 08 19:22:29 2016 -0400 +++ b/libgui/module.mk Tue Aug 09 14:41:52 2016 -0400 @@ -81,7 +81,7 @@ ( echo "#if defined (HAVE_CONFIG_H)"; \ echo '# include "config.h"'; \ echo "#endif"; \ - $(MOC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(libgui_liboctgui_la_CPPFLAGS) $< ) > $@-t && \ + $(MOC) $(MOCFLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_OCTAVE_CPPFLAGS) $(MOC_CPPFLAGS) $(libgui_liboctgui_la_CPPFLAGS) $< ) > $@-t && \ mv $@-t $@ endef @@ -94,7 +94,7 @@ echo "#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)"; \ echo "#pragma GCC diagnostic ignored \"-Wunused-variable\""; \ echo "#endif"; \ - $(RCC) -name $(@D) $< ) > $@-t && \ + $(RCC) $(RCCFLAGS) -name $(@D) $< ) > $@-t && \ mv $@-t $@ endef @@ -102,7 +102,7 @@ $(AM_V_GEN)$(moc-command) ui-%.h: %.ui - $(AM_V_GEN)$(UIC) -o $@ $< + $(AM_V_GEN)$(UIC) $(UICFLAGS) -o $@ $< qrc-%.cc: %.qrc $(AM_V_GEN)$(rcc-command) @@ -113,7 +113,7 @@ am__v_lrelease_1 = %.qm: %.ts | libgui/languages/$(octave_dirstamp) - $(AM_V_GEN)$(LRELEASE) $(AM_V_lrelease) -qm $@ $< + $(AM_V_GEN)$(LRELEASE) $(LRELEASEFLAGS) $(AM_V_lrelease) -qm $@ $< DIRSTAMP_FILES += \ libgui/languages/$(octave_dirstamp)