summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* fail on configure debug options that no longer make senseLubos Lunak2012-10-221-0/+6
| | | | Change-Id: I4d01e0e00bd06e219fdc0208292ddcd5631fa235
* make configure remember C/CXX/OBJC/OBJCXX/LDFLAGS if explicitly passed to itLubos Lunak2012-10-221-0/+44
| | | | | | | | | If not, the build system selects the right flags depending on --enable-debug etc. , but e.g. packagers may want to do builds with e.g. both -O and -g. This is also reasonably close to what autotools do, except that there configure forces -g -O2 if nothing is explicitly given. Change-Id: I1889569177ad3cbd6decdc7e9986f67ef5d4456a
* use (gb_)ENABLE_DBGUTIL rather than the confusing (gb_)PRODUCTLubos Lunak2012-10-221-2/+2
| | | | | | | | Using --enable-debug already makes the build a non-product build, so this whole 'product' notion is rather confusing when reading the build system code. Change-Id: I4bb6b879a6bcd8c76c4b48ddaccb433ab8eb4bb2
* clean up configure options for debugging buildLubos Lunak2012-10-221-83/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default a product (non-developer) build is done. Code is optimized and no debugging information is included (may be overriden though, see below). Developers should preferably build with --enable-dbgutil , or at least --enable-debug. The --enable-symbols switch has been removed. Use explicit CFLAGS/CXXFLAGS/LDFLAGS instead if needed. With --enable-debug optimizations are turned off and debugging information is included (in order to make it possible to examine the code in a debugger). Additionally assertions and logging is enabled (see SAL_WARN/SAL_INFO documentation for details and better control). This switch should primarily by used for occassional development (such as when it is needed to debug one module in a non-debug build, see also 'make DEBUG=true' below). Using --enable-dbgutil is the recommended developer option. In addition to --enable-debug it also enables additional checks, such as debugging mode for STL or checking compiler plugins. This switch may also enable additional logging from obsolete debugging tools (which should be converted to SAL_WARN/SAL_INFO for better control). Note that this option makes the build binary incompatible from a --disable-dbgutil build, so it is not possible to mix them. When using --enable-debug/--enable-dbgutil , the build is noticeably larger because of the included debugging information (compiler -g option). When disk space is an issue (or the computer is not very powerful), the --enable-selective-debuginfo option allow specifying where the debugging information should or should not be used. The option takes a list of arguments, where all means everything, - prepended means not to enable, / appended means everything in the directory; there is no ordering, more specific overrides more general, and disabling takes precedence). For example, --enable-selective-debuginfo="all -sw/ -Library_sc" enables debugginfo for everything except for anything in the sw module and the sc library. Explicitly specified CFLAGS/CXXFLAGS/LDFLAGS override optimization and debugging options (can be now also passed to configure which will make the build system use them). If in a non-debug build it is needed to temporary build something as a debug build, 'make DEBUG=true' temporarily works as if --enable-debug was specified. It also temporarily overrides debuginfo disabled using --enable-selective-debuginfo. Old code using old logging functionality also has a concept of a debug level, forced using 'make DBGLEVEL=2'. Using a debug level of 2 (or higher) enables additional logging output. New code should use SAL_WARN/SAL_INFO and use extra areas for additional logging output that can be selectively enabled/disabled using SAL_LOG variable. (Some smaller parts of this design will be implemented by separate follow-up commits.) Change-Id: Ia6420ee3c99c217ead648e8967165eed7f632258
* use absolute pathDavid Tardon2012-10-221-3/+3
| | | | Change-Id: Ic814cba74dede2f5a079242d0194fe7579e670ab
* fix typoPeter Foley2012-10-211-1/+1
| | | | Change-Id: I10ac442d9be4f592d79d8b2fbd824d94852781d9
* fix sdremote related configure switchesRene Engelhard2012-10-211-15/+30
| | | | | | | | sdremote itself apparently works also over IP (WLAN), so we don't need to disable it when we just don't want/have bluetooth. And also dbus is also needed in the bluez case Change-Id: I55ba07cd715d1e9bd641ef28e2391e4fe85b85e0
* translations dir always exists with submodulesPeter Foley2012-10-211-1/+1
| | | | Change-Id: I7d6e671f45355eb03fb9e1a49d7123e2f1699e80
* convert postgresql to gbuildPeter Foley2012-10-211-0/+2
| | | | Change-Id: Ia1345904a819d8edfad53c8882be35b398e8bc6e
* only build librsvg deps if librsvg itself is builtDavid Tardon2012-10-211-120/+139
| | | | | | | | | gdk-pixbuf, gettext, glib, libcroco, libgsf and pango are only deps of librsvg, which means they do not have to be configured/built in a build without librsvg. In effect, this generalizes the previous exception for Android and iOS. Change-Id: Ia0bd5e1c2bfa27842d8806886cd5774a420a973f
* use prefered name configure.ac to scilence aclocal 1.12 warningPeter Foley2012-10-191-0/+12967
Change-Id: I5875d3fface19bdce2948c6a2979b1b5e4e0735f