diff options
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/configure b/src/configure index 58926b0..5acbd2f 100755 --- a/src/configure +++ b/src/configure @@ -42,7 +42,7 @@ LUA='' LUAC='' PREFIX='/usr/local' -SBINDIR='' +BINDIR='' ETCDIR='' MANDIR='' INSTALLMANPAGE=1 @@ -53,7 +53,7 @@ print_usage() { echo "configure --help print this" echo " --target=<TARGET> build target i.e. Linux (default: autodetect)" echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)" - echo " --sbindir=<DIR> the path to the sbin directory (default: $PREFIX/sbin)" + 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 " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)" echo " --no-manpage dont't install manpage" @@ -71,8 +71,8 @@ do --prefix=*) PREFIX=${arg#--prefix=} ;; - --sbindir=*) - SBINDIR=${arg#--sbindir=} + --bindir=*) + BINDIR=${arg#--bindir=} ;; --sysconfdir=*) ETCDIR=${arg#--sysconfdir=} @@ -207,8 +207,8 @@ else LUAC=$LUA_DIR/bin/luac fi -if [ -z "$SBINDIR" ]; then - SBINDIR=$PREFIX/sbin +if [ -z "$BINDIR" ]; then + BINDIR=$PREFIX/bin fi if [ -z "$ETCDIR" ]; then @@ -238,7 +238,7 @@ STRIP := strip INSTALL := install PREFIX := '$PREFIX' -SBINDIR := '$SBINDIR' +BINDIR := '$BINDIR' ETCDIR := '$ETCDIR' EOF @@ -272,7 +272,7 @@ fi HOSTNAME=`hostname` DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` -cat >> version.h <<EOF +cat > config.h <<EOF /* * gcsd version info * @@ -281,14 +281,18 @@ cat >> version.h <<EOF * use ./configure instead */ -#ifndef GCSD_version_h_INCLUDED -#define GCSD_version_h_INCLUDED +#ifndef GCSD_config_h_INCLUDED +#define GCSD_config_h_INCLUDED #define VERSION_STRING_0 "gcsd version $VERSION" #define VERSION_STRING_1 "built on $HOSTNAME, $DATE" -#endif +#define TARGET "$TARGET" +#define PREFIX "$PREFIX" +#define BINDIR "$BINDIR" +#define ETCDIR "$ETCDIR" +#endif EOF exit 0 |