From 5dcc36b15c479f532ffd0b5c1330e683fcf8781e Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 25 Oct 2012 14:32:09 -0700 Subject: Add a -libexecdir option to the configures User applications are those that users run directly, whether it be for development or not. The executable binaries that the user does not usually run but is still required for proper functioning are called "program executables" in Autoconf and they are placed in libexec. This commit adds support for "program executables" in Qt by adding the -libexecdir option to the configures, the qmake variable QT_INSTALL_LIBEXECS (note the plural, to match all other properties), and QLibraryInfo::LibraryExecutables. At the time of this commit, the only expected "program executable" is the QtWebProcess, the WebKit2 helper process from QtWebKit. Change-Id: I66c3a3e0cf7f9d93b5f88f55f18e957faff608fc Reviewed-by: Lars Knoll --- configure | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 303244315a..e8334946d1 100755 --- a/configure +++ b/configure @@ -881,6 +881,7 @@ QT_INSTALL_DOCS= QT_INSTALL_HEADERS= QT_INSTALL_LIBS= QT_INSTALL_BINS= +QT_INSTALL_LIBEXECS= QT_INSTALL_PLUGINS= QT_INSTALL_IMPORTS= QT_INSTALL_QML= @@ -993,7 +994,7 @@ while [ "$#" -gt 0 ]; do VAL=no ;; #Qt style options that pass an argument - -prefix|-docdir|-headerdir|-plugindir|-importdir|-qmldir|-archdatadir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-testsdir|-depths|-make|-nomake|-platform|-xplatform|-device|-device-option|-sdk|-arch|-host-arch|-mysql_config|-sysroot|-hostdatadir|-hostbindir|-qpa|-qconfig) + -prefix|-docdir|-headerdir|-plugindir|-importdir|-qmldir|-archdatadir|-datadir|-libdir|-bindir|-libexecdir|-translationdir|-sysconfdir|-examplesdir|-testsdir|-depths|-make|-nomake|-platform|-xplatform|-device|-device-option|-sdk|-arch|-host-arch|-mysql_config|-sysroot|-hostdatadir|-hostbindir|-qpa|-qconfig) VAR=`echo $1 | sed "s,^-\(.*\),\1,"` shift VAL="$1" @@ -1250,6 +1251,9 @@ while [ "$#" -gt 0 ]; do bindir) QT_INSTALL_BINS="$VAL" ;; + libexecdir) + QT_INSTALL_LIBEXECS="$VAL" + ;; sse) if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then CFG_SSE="$VAL" @@ -2805,6 +2809,11 @@ if [ -z "$QT_INSTALL_BINS" ]; then #default fi QT_INSTALL_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_BINS"` +if [ -z "$QT_INSTALL_LIBEXECS" ]; then #default + QT_INSTALL_LIBEXECS="$QT_INSTALL_ARCHDATA/libexec" #fallback +fi +QT_INSTALL_LIBEXECS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_LIBEXECS"` + if [ -z "$QT_INSTALL_DOCS" ]; then #default QT_INSTALL_DOCS="$QT_INSTALL_DATA/doc" #fallback fi @@ -3012,7 +3021,7 @@ Installation options: You may use these to separate different parts of the install: - -bindir ......... Executables will be installed to + -bindir ......... User executables will be installed to (default PREFIX/bin) -headerdir ...... Headers will be installed to (default PREFIX/include) @@ -3022,6 +3031,8 @@ Installation options: (default PREFIX) -plugindir ...... Plugins will be installed to (default ARCHDATADIR/plugins) + -libexecdir ..... Program executables will be installed to + (default ARCHDATADIR/libexec) -importdir ...... Imports for QML1 will be installed to (default ARCHDATADIR/imports) -qmldir ......... Imports for QML2 will be installed to @@ -3506,6 +3517,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { "qt_docspath=$QT_INSTALL_DOCS", "qt_hdrspath=$QT_INSTALL_HEADERS", "qt_libspath=$QT_INSTALL_LIBS", + "qt_lbexpath=$QT_INSTALL_LIBEXECS", "qt_binspath=$QT_INSTALL_BINS", "qt_plugpath=$QT_INSTALL_PLUGINS", "qt_impspath=$QT_INSTALL_IMPORTS", -- cgit v1.2.3