summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-04-11 22:39:56 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-04-11 22:39:56 +0200
commit313fd3a3653795e983e583dcbf0aa1c9867f61c4 (patch)
treea7feddf8899e45a36e499c5ffed70b752fbb61f9 /configure
parent7bd491c7a8f70e76e22c499b675d33eced1a4b7a (diff)
downloadfribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.tar.gz
fribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.tar.bz2
fribid-313fd3a3653795e983e583dcbf0aa1c9867f61c4.zip
Improve the test scripts and install them under <docdir>/fribid/examples
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 2e70f8b..53a3412 100755
--- a/configure
+++ b/configure
@@ -43,6 +43,7 @@ fi
libdir=""
libexecdir=""
datadir=""
+docdir=""
localedir=""
mandir=""
@@ -106,6 +107,8 @@ Options:
--libexecdir=PATH Sets the directory for internal executables. [LIBDIR]
--datadir=PATH Sets the directory for architecture-independent
data. [PREFIX/share]
+ --docdir=PATH Sets the directory for documentation and test
+ scripts. [DATADIR/doc]
--localedir=PATH Sets the directory for translations [DATADIR/locale]
--mandir=PATH Sets the directory for man pages. [DATADIR/man]
--plugin-path=PATH Sets the NPAPI plugin path [$pluginPaths]
@@ -138,6 +141,9 @@ Options:
--datadir=*)
datadir=${flag#--datadir=}
;;
+ --docdir=*)
+ docdir=${flag#--docdir=}
+ ;;
--localedir=*)
localedir=${flag#--localedir=}
;;
@@ -277,6 +283,10 @@ if [ -z "$datadir" ]; then
datadir="$prefixPath/share"
fi
+if [ -z "$docdir" ]; then
+ docdir="$datadir/doc"
+fi
+
if [ -z "$localedir" ]; then
localedir="$datadir/locale"
fi
@@ -438,6 +448,7 @@ cat <<EOT >"$CONFFILE"
#define LIBDIR "$libdir"
#define LIBEXECDIR "$libexecdir"
#define DATADIR "$datadir"
+#define DOCDIR "$docdir"
#define LOCALEDIR "$localedir"
#define MANDIR "$mandir"