Improve using the value of autoconf variables.
This commit is contained in:
parent
cb93153007
commit
1cda303b22
1 changed files with 12 additions and 3 deletions
15
configure.ac
15
configure.ac
|
@ -41,8 +41,17 @@ AC_SUBST(COREDPY_VERSION)
|
||||||
if test "x$prefix" = "xNONE" ; then
|
if test "x$prefix" = "xNONE" ; then
|
||||||
prefix="/usr/local"
|
prefix="/usr/local"
|
||||||
fi
|
fi
|
||||||
|
if test "x$exec_prefix" = "xNONE" ; then
|
||||||
|
exec_prefix="$prefix"
|
||||||
|
fi
|
||||||
if test "$libdir" = "\${exec_prefix}/lib" ; then
|
if test "$libdir" = "\${exec_prefix}/lib" ; then
|
||||||
libdir="${prefix}/lib"
|
libdir="${exec_prefix}/lib"
|
||||||
|
fi
|
||||||
|
if test "$sbindir" = "\${exec_prefix}/sbin" ; then
|
||||||
|
sbindir="${exec_prefix}/sbin"
|
||||||
|
fi
|
||||||
|
if test "$bindir" = "\${exec_prefix}/bin" ; then
|
||||||
|
bindir="${exec_prefix}/bin"
|
||||||
fi
|
fi
|
||||||
# this can be /usr/lib or /usr/lib64
|
# this can be /usr/lib or /usr/lib64
|
||||||
LIB_DIR="${libdir}"
|
LIB_DIR="${libdir}"
|
||||||
|
@ -50,9 +59,9 @@ LIB_DIR="${libdir}"
|
||||||
CORE_LIB_DIR="${prefix}/lib/core"
|
CORE_LIB_DIR="${prefix}/lib/core"
|
||||||
AC_SUBST(LIB_DIR)
|
AC_SUBST(LIB_DIR)
|
||||||
AC_SUBST(CORE_LIB_DIR)
|
AC_SUBST(CORE_LIB_DIR)
|
||||||
SBINDIR="${prefix}/sbin"
|
SBINDIR="${sbindir}"
|
||||||
AC_SUBST(SBINDIR)
|
AC_SUBST(SBINDIR)
|
||||||
BINDIR="${prefix}/bin"
|
BINDIR="${bindir}"
|
||||||
AC_SUBST(BINDIR)
|
AC_SUBST(BINDIR)
|
||||||
|
|
||||||
# CORE daemon configuration file (core.conf) in CORE_CONF_DIR
|
# CORE daemon configuration file (core.conf) in CORE_CONF_DIR
|
||||||
|
|
Loading…
Reference in a new issue