cScm Configuration Daemon

cScm – is a tool to convert SCM configuration files into binary format and store its in shared memory for reading by cSvn-ui and cGit-ui CGI scripts

2 Commits   0 Branches   1 Tag
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  1) 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  2) dnl ============================================================
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  3) dnl Display Configuration Headers
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  4) dnl 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  5) dnl    configure.in:
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  6) dnl       AC_MSG_CFG_PART(<text>)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  7) dnl ============================================================
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  8) 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300  9) define(AC_MSG_CFG_PART,[dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 10)   AC_MSG_RESULT()
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 11)   AC_MSG_RESULT(${TB}$1:${TN})
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 12) ])dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 13) 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 14) AC_DEFUN(AC_CSCM_HEADLINE,[dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 15)   # Use a `Quadrigaph'. @<:@ gives you [ and @:>@ gives you ] :
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 16)   TB=`echo -n -e '\033@<:@1m'`
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 17)   TN=`echo -n -e '\033@<:@0m'`
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 18)   echo ""
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 19)   echo "Configuring ${TB}$1${TN} ($2), Version ${TB}${PACKAGE_VERSION}${TN}"
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 20)   echo "$3"
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 21) ])dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 22) 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 23) 
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 24) dnl ============================================================
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 25) dnl  Test for build_host `ln -s' .
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 26) dnl  ============================
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 27) dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 28) dnl Usage:
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 29) dnl -----
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 30) dnl    AC_PATH_PROG_LN_S
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 31) dnl    AC_SUBST(LN)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 32) dnl    AC_SUBST(LN_S)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 33) dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 34) dnl ============================================================
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 35) AC_DEFUN(AC_PATH_PROG_LN_S,
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 36) [AC_PATH_PROG(LN, ln, no, /usr/local/bin:/usr/bin:/bin:$PATH)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 37) AC_MSG_CHECKING(whether ln -s works on build host)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 38) AC_CACHE_VAL(ac_cv_path_prog_LN_S,
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 39) [rm -f conftestdata
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 40) if $LN -s X conftestdata 2>/dev/null
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 41) then
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 42)   rm -f conftestdata
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 43)   ac_cv_path_prog_LN_S="$LN -s"
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 44) else
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 45)   ac_cv_path_prog_LN_S="$LN"
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 46) fi])dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 47) LN_S="$ac_cv_path_prog_LN_S"
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 48) if test "$ac_cv_path_prog_LN_S" = "$LN -s"; then
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 49)   AC_MSG_RESULT(yes)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 50) else
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 51)   AC_MSG_RESULT(no)
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 52) fi
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 53) AC_SUBST(LN)dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 54) AC_SUBST(LN_S)dnl
12c7b1c5 (kx 2023-03-24 02:53:04 +0300 55) ])