summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@primekey.se>2012-04-05 17:00:11 +0200
committerSamuel Lidén Borell <samuel@primekey.se>2012-04-05 17:00:11 +0200
commit8d67e8bda0a2aa458425b3c43045e7239b6a4842 (patch)
treefb8f744bde468c2c14ffed68a50c7c6c4b7a5381 /configure
parentceb41c32502b7ce7865cfea07a1d1855eeaee5ed (diff)
downloadfribid-8d67e8bda0a2aa458425b3c43045e7239b6a4842.tar.gz
fribid-8d67e8bda0a2aa458425b3c43045e7239b6a4842.tar.bz2
fribid-8d67e8bda0a2aa458425b3c43045e7239b6a4842.zip
Allow --libexecdir to be configured independently of --libdir
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 14 insertions, 4 deletions
diff --git a/configure b/configure
index b5c8d36..8285a8b 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,7 @@ else
fi
libdir=""
+libexecdir=""
datadir=""
localedir=""
mandir=""
@@ -69,6 +70,7 @@ Options:
--exec-prefix=PATH Sets the installation prefix for executable files.
The default is to use the same prefix for all files.
--libdir=PATH Sets the directory for libraries. [EPREFIX/$multilib]
+ --libexecdir=PATH Sets the directory for internal executables. [LIBDIR]
--datadir=PATH Sets the directory for architecture-independent
data. [PREFIX/share]
--localedir=PATH Sets the directory for translations [DATADIR/locale]
@@ -96,6 +98,9 @@ Options:
--libdir=*)
libdir=${flag#--libdir=}
;;
+ --libexecdir=*)
+ libexecdir=${flag#--libexecdir=}
+ ;;
--datadir=*)
datadir=${flag#--datadir=}
;;
@@ -205,6 +210,10 @@ if [ -z "$libdir" ]; then
libdir="$execPath/$multilib"
fi
+if [ -z "$libexecdir" ]; then
+ libexecdir="$libdir"
+fi
+
if [ -z "$datadir" ]; then
datadir="$prefixPath/share"
fi
@@ -324,10 +333,11 @@ cat <<EOT >"$CONFFILE"
#define PREFIX "$prefixPath"
#define EPREFIX "$execPath"
-#define LIBDIR "$libdir"
-#define DATADIR "$datadir"
-#define LOCALEDIR "$localedir"
-#define MANDIR "$mandir"
+#define LIBDIR "$libdir"
+#define LIBEXECDIR "$libexecdir"
+#define DATADIR "$datadir"
+#define LOCALEDIR "$localedir"
+#define MANDIR "$mandir"
#define NPAPI_PLUGIN_PATHS "$pluginPaths"