working commit
This commit is contained in:
@@ -615,6 +615,13 @@ PACKAGE_URL=''
|
||||
ac_default_prefix=/usr/local
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
srv_datadir
|
||||
srv_libdir
|
||||
srv_sharedir
|
||||
srv_rundir
|
||||
srv_logdir
|
||||
srv_confdir
|
||||
srv_devel_mode
|
||||
SYSTEMD_FALSE
|
||||
SYSTEMD_TRUE
|
||||
LINUX_OS_FALSE
|
||||
@@ -710,6 +717,13 @@ ac_subst_files=''
|
||||
ac_user_opts='
|
||||
enable_option_checking
|
||||
enable_silent_rules
|
||||
enable_devel_mode
|
||||
with_confdir
|
||||
with_logdir
|
||||
with_rundir
|
||||
with_sharedir
|
||||
with_libdir
|
||||
with_datadir
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1343,6 +1357,18 @@ Optional Features:
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--enable-silent-rules less verbose build output (undo: "make V=1")
|
||||
--disable-silent-rules verbose build output (undo: "make V=0")
|
||||
--enable-devel-mode Enable developmend mode
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--with-confdir=PATH set configuration dir to PATH (default:
|
||||
$SRV_CONFDIR)
|
||||
--with-logdir=PATH set path for logdir (default: $SRV_LOGDIR)
|
||||
--with-rundir=PATH set path for rundir (default: $SRV_RUNDIR)
|
||||
--with-sharedir=PATH set share directory (default: $SRV_SHAREDIR)
|
||||
--with-libdir=PATH set lib directory (default: $SRV_LIBDIR)
|
||||
--with-datadir=PATH set path for datadir (default: $SRV_DATADIR)
|
||||
|
||||
Report bugs to the package provider.
|
||||
_ACEOF
|
||||
@@ -3062,7 +3088,263 @@ fi
|
||||
|
||||
fi
|
||||
|
||||
ac_config_files="$ac_config_files Makefile"
|
||||
|
||||
test "x$prefix" == "xNONE" && prefix=$ac_default_prefix
|
||||
test "x$libexecdir" == "xNONE" && libexecdir=${prefix}/lib
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-devel-mode was given.
|
||||
if test ${enable_devel_mode+y}
|
||||
then :
|
||||
enableval=$enable_devel_mode;
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
printf "%s\n" "#define srv_devel_mode \"false\"" >>confdefs.h
|
||||
|
||||
srv_devel_mode="false"
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRCDIR=`pwd`
|
||||
enable_devel_mode=yes
|
||||
|
||||
fi
|
||||
|
||||
|
||||
SRV_CONFDIR="${prefix}/etc/${PACKAGE}"
|
||||
|
||||
|
||||
# Check whether --with-confdir was given.
|
||||
if test ${with_confdir+y}
|
||||
then :
|
||||
withval=$with_confdir; if test ! -z "$withval" ; then
|
||||
case $withval in
|
||||
/*)
|
||||
SRV_CONFDIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-confdir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_CONFDIR="${SRCDIR}/etc/${PACKAGE}"
|
||||
sysconfdir="${SRCDIR}/etc/${PACKAGE}"
|
||||
|
||||
else $as_nop
|
||||
|
||||
test "x$SRV_CONFDIR" == "x/usr/etc/${PACKAGE}" && SRV_CONFDIR="/etc/${PACKAGE}"
|
||||
test "x$prefix" == "x/usr" && sysconfdir="/etc"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_CONFDIR \"$SRV_CONFDIR\"" >>confdefs.h
|
||||
|
||||
srv_confdir="$SRV_CONFDIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_confdir set as ${SRV_CONFDIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_confdir set as ${SRV_CONFDIR}" >&6;}
|
||||
|
||||
|
||||
SRV_LOGDIR="/var/log/${PACKAGE}"
|
||||
|
||||
|
||||
# Check whether --with-logdir was given.
|
||||
if test ${with_logdir+y}
|
||||
then :
|
||||
withval=$with_logdir; if test ! -z "$withval" ; then
|
||||
case $withval in
|
||||
/*)
|
||||
SRV_LOGDIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-logdir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_LOGDIR="${SRCDIR}/tmp/log"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_LOGDIR \"$SRV_LOGDIR\"" >>confdefs.h
|
||||
|
||||
srv_logdir="$SRV_LOGDIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_logdir set as ${SRV_LOGDIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_logdir set as ${SRV_LOGDIR}" >&6;}
|
||||
|
||||
|
||||
SRV_RUNDIR="/var/run/${PACKAGE}"
|
||||
|
||||
|
||||
# Check whether --with-rundir was given.
|
||||
if test ${with_rundir+y}
|
||||
then :
|
||||
withval=$with_rundir; if test ! -z "$withval" ; then
|
||||
case $withval in
|
||||
/*)
|
||||
SRV_RUNDIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-rundir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_RUNDIR="${SRCDIR}/tmp/run"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_RUNDIR \"$SRV_RUNDIR\"" >>confdefs.h
|
||||
|
||||
srv_rundir="$SRV_RUNDIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_rundir set as ${SRV_RUNDIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_rundir set as ${SRV_RUNDIR}" >&6;}
|
||||
|
||||
|
||||
SRV_SHAREDIR="${prefix}/share/$PACKAGE"
|
||||
|
||||
|
||||
# Check whether --with-sharedir was given.
|
||||
if test ${with_sharedir+y}
|
||||
then :
|
||||
withval=$with_sharedir; if test ! -z "$with_sharedir" ; then
|
||||
case $with_sharedir in
|
||||
/*)
|
||||
SRV_SHAREDIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-sharedir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_SHAREDIR="${SRCDIR}/share"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_SHAREDIR \"$SRV_SHAREDIR\"" >>confdefs.h
|
||||
|
||||
srv_sharedir="$SRV_SHAREDIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_sharedir set as ${SRV_SHAREDIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_sharedir set as ${SRV_SHAREDIR}" >&6;}
|
||||
|
||||
|
||||
SRV_LIBDIR="${prefix}/lib/$PACKAGE"
|
||||
|
||||
|
||||
# Check whether --with-libdir was given.
|
||||
if test ${with_libdir+y}
|
||||
then :
|
||||
withval=$with_libdir; if test ! -z "$withval" ; then
|
||||
case $withval in
|
||||
/*)
|
||||
SRV_LIBDIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-libdir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_LIBDIR="${SRCDIR}/sysagent"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_LIBDIR \"$SRV_LIBDIR\"" >>confdefs.h
|
||||
|
||||
srv_libdir="$SRV_LIBDIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_libdir set as ${SRV_LIBDIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_libdir set as ${SRV_LIBDIR}" >&6;}
|
||||
|
||||
|
||||
|
||||
SRV_DATADIR="/var/data/${PACKAGE}"
|
||||
|
||||
|
||||
# Check whether --with-datadir was given.
|
||||
if test ${with_datadir+y}
|
||||
then :
|
||||
withval=$with_datadir; if test ! -z "$withval" ; then
|
||||
case $withval in
|
||||
/*)
|
||||
SRV_DATADIR="$withval"
|
||||
;;
|
||||
*)
|
||||
as_fn_error $? "You must specify an absolute path to --with-datadir=PATH" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_devel_mode" = "xyes"
|
||||
then :
|
||||
|
||||
SRV_DATADIR="${SRCDIR}/tmp/data"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
printf "%s\n" "#define SRV_DATADIR \"$SRV_DATADIR\"" >>confdefs.h
|
||||
|
||||
srv_datadir="$SRV_DATADIR"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: srv_datadir set as ${SRV_DATADIR}" >&5
|
||||
printf "%s\n" "$as_me: srv_datadir set as ${SRV_DATADIR}" >&6;}
|
||||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile app/config/variant.go"
|
||||
|
||||
cat >confcache <<\_ACEOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
@@ -3801,6 +4083,7 @@ for ac_config_target in $ac_config_targets
|
||||
do
|
||||
case $ac_config_target in
|
||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
||||
"app/config/variant.go") CONFIG_FILES="$CONFIG_FILES app/config/variant.go" ;;
|
||||
|
||||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user