summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 59861b7..fb0b40d 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,8 @@ BINDIR=''
ETCDIR=''
MANDIR=''
INSTALLMANPAGE=1
+EXAMPLESDIR=''
+INSTALLEXAMPLES=1
print_usage() {
echo "configure --help print this"
@@ -42,6 +44,8 @@ print_usage() {
echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc"
echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)"
echo " --no-manpage dont't install manpage"
+ echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)"
+ echo " --no-examples dont't install example files"
}
for arg
@@ -65,6 +69,12 @@ do
--no-manpage)
INSTALLMANPAGE=0
;;
+ --examplesdir=*)
+ EXAMPLESDIR=${arg#--examplesdir=}
+ ;;
+ --no-examples)
+ INSTALLEXAMPLES=0
+ ;;
--ebuild-compat)
EBUILD_COMPAT=1
;;
@@ -115,6 +125,10 @@ if [ -z "$MANDIR" ]; then
MANDIR=$PREFIX/share/man
fi
+if [ -z "$EXAMPLESDIR" ]; then
+ EXAMPLESDIR=$PREFIX/share/examples
+fi
+
cat >> include.mk <<EOF
# this file was created automatically
# do not edit this file directly
@@ -138,4 +152,11 @@ else
echo "not installing manpage"
fi
+if [ $INSTALLEXAMPLES -eq 1 ]; then
+ echo "EXAMPLESDIR := $EXAMPLESDIR" >> include.mk
+ echo "installing example files"
+else
+ echo "not installing example files"
+fi
+
exit 0