diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-13 04:38:53 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-13 04:38:53 (GMT) |
commit | c3aecc6bc7ec70645e2309a23c7c4ed4677fe72a (patch) | |
tree | 46b6f3dd2ba3faabb970a22b07bff5e65bcf0f38 /configure | |
parent | 33fd3033edccb73143223855f6f6f6305102d9d4 (diff) |
fixed configure and makefile
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -21,15 +21,19 @@ # along with rhautoimport. If not, see <http://www.gnu.org/licenses/>. # +EBUILD_COMPAT=0 + PREFIX='/usr/local' BINDIR='' SHAREDIR='' +ETCDIR='' print_usage() { echo "configure --help print this" echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)" echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)" echo " --sharedir=<DIR> the path to shared resources (default: $PREFIX/share" + echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc)" } for arg @@ -44,6 +48,12 @@ do --sharedir=*) SHAREDIR=${arg#--sharedir=} ;; + --sysconfdir=*) + ETCDIR=${arg#--sysconfdir=} + ;; + --ebuild-compat) + EBUILD_COMPAT=1 + ;; --help) print_usage exit 0 @@ -72,6 +82,10 @@ if [ -z "$SHAREDIR" ]; then SHAREDIR=$PREFIX/share fi +if [ -z "$ETCDIR" ]; then + ETCDIR=$PREFIX/etc +fi + cat >> include.mk <<EOF # this file was created automatically # do not edit this file directly @@ -82,6 +96,7 @@ INSTALL := install prefix := $PREFIX BINDIR := $BINDIR SHAREDIR := $SHAREDIR +ETCDIR := $ETCDIR EOF exit 0 |