From a7738f4dc72c9445623cd6f5348d7a80d4e52690 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sun, 9 Oct 2022 17:57:05 -0400 Subject: initial commit, straight from apt-get source --- configure | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 configure (limited to 'configure') diff --git a/configure b/configure new file mode 100755 index 0000000..138997e --- /dev/null +++ b/configure @@ -0,0 +1,51 @@ +#!/bin/sh + +#echo "fbxkb configuration script" + +help () { + echo "supported options are:" + echo "--help - print this help and exit" + echo "--prefix= specify install path. " + echo " /bin - will hold all binaries" + echo " /share/fbxkb - config files, pixmaps etc" + echo " default is /usr" + echo "--devel - enable devel mode: no optimization + debug symbols" + echo "--transparency - enable EXPERIMENTAL transparency support" +} + +PREFIX="/usr" +while [ $# -gt 0 ]; do + case $1 in + --help) + help + exit 0 + ;; + --prefix=*) + PREFIX=`echo $1 | sed 's/--prefix=//'` + ;; + --devel) + DEVEL=true + ;; + --transparency) + TRANSPARENCY=true + ;; + *) + echo "unknwon option $1" + help + exit 1 + ;; + esac + shift +done +echo "Installation prefix is $PREFIX" +echo "updating config.h" +echo "//created by ./configure script" > config.h +echo "#define PREFIX \"$PREFIX\"" >> config.h +if [ "x$TRANSPARENCY" != "x" ]; then + echo "#define TRANSPARENCY" +fi + +echo "updating Makefile" +echo "PREFIX:=$PREFIX" > Makefile.config +echo "DEVEL:=$DEVEL" >> Makefile.config + -- cgit