diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-05-12 00:11:16 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-05-12 00:11:30 (GMT) |
commit | 17c62fa8decb49ea2cdea67e690bf3acac2a2a6d (patch) | |
tree | a4c00db4f283d1b9d038f12a6a385adb0c39a600 /src/configure | |
parent | d71335b6ccb2b71e846736bc8e7e8a3ccc954b7f (diff) |
installing *.lua file into /usr/share/rhnop and not lib
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/configure b/src/configure index dd60d70..1cd11fd 100755 --- a/src/configure +++ b/src/configure @@ -32,7 +32,7 @@ LUA_VER='' PREFIX='/usr/local' BINDIR='' ETCDIR='' -LIBDIR='' +DATAROOTDIR='' print_usage() { echo "configure --help print this" @@ -40,7 +40,7 @@ print_usage() { echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)" echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)" echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc)" - echo " --libdir=<DIR> the path to the lua library directory (default: $PREFIX/lib/rhnop)" + echo " --datarootdir=<DIR> the path to the native lua libs (default: $PREFIX/share)" echo " --with-lua=<DIR> use this lua tree instead of system default" echo " --lua-version=nnn set fixed Lua version for automatic detection (501 -> 5.1, 502 -> 5.2)" echo " --use-clang use clang/llvm as compiler/linker" @@ -64,8 +64,8 @@ do --sysconfdir=*) ETCDIR=${arg#--sysconfdir=} ;; - --libdir=*) - LIBDIR=${arg#--libdir=} + --datarootdir=*) + DATAROOTDIR=${arg#--datarootdir=} ;; --with-lua=*) LUA_DIR=${arg#--with-lua=} @@ -210,8 +210,8 @@ if [ -z "$ETCDIR" ]; then ETCDIR=$PREFIX/etc fi -if [ -z "$LIBDIR" ]; then - LIBDIR=$PREFIX/lib/rhnop +if [ -z "$DATAROOTDIR" ]; then + DATAROOTDIR=$PREFIX/share fi cat > include.mk <<EOF @@ -232,7 +232,7 @@ SED := sed PREFIX := '$PREFIX' BINDIR := '$BINDIR' ETCDIR := '$ETCDIR' -LIBDIR := '$LIBDIR' +DATAROOTDIR := '$DATAROOTDIR' EOF cat > config.h <<EOF @@ -251,7 +251,7 @@ cat > config.h <<EOF #define PREFIX "$PREFIX" #define BINDIR "$BINDIR" #define ETCDIR "$ETCDIR" -#define LIBDIR "$LIBDIR" +#define DATAROOTDIR "$DATAROOTDIR" #endif EOF |