Changed tests for joe editor

This commit is contained in:
Michiel Broek 2002-07-27 20:09:37 +00:00
parent 4574e51645
commit 35c6b8aecf
4 changed files with 66 additions and 18 deletions

View File

@ -26,6 +26,10 @@ AWK = @AWK@
TAR = @TAR@ TAR = @TAR@
ZIP = @ZIP@ ZIP = @ZIP@
# joe editor
JOEBIN = @joebin@
JOELIB = @joelib@
CFLAGS = -O2 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -pipe CFLAGS = -O2 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -pipe
LIBS = @LIBS@ LIBS = @LIBS@

29
configure vendored
View File

@ -7790,6 +7790,33 @@ esac
echo "$as_me:$LINENO: checking location of joe editor" >&5
echo $ECHO_N "checking location of joe editor... $ECHO_C" >&6
for joebin in /usr/bin /usr/local/bin NONE; do
if test "$joebin" = "NONE"; then
{ echo "$as_me:$LINENO: WARNING: not found" >&5
echo "$as_me: WARNING: not found" >&2;}
elif test -x $joebin/joe; then
echo "$as_me:$LINENO: result: $joebin" >&5
echo "${ECHO_T}$joebin" >&6
echo "$as_me:$LINENO: checking location of joe rc files" >&5
echo $ECHO_N "checking location of joe rc files... $ECHO_C" >&6
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe NONE; do
if test "$joelib" = "NONE"; then
{ echo "$as_me:$LINENO: WARNING: not found" >&5
echo "$as_me: WARNING: not found" >&2;}
elif test -f $joelib/joerc; then
echo "$as_me:$LINENO: result: $joelib" >&5
echo "${ECHO_T}$joelib" >&6
break
fi
done
break
fi
done
echo "$as_me:$LINENO: checking location of utmp" >&5 echo "$as_me:$LINENO: checking location of utmp" >&5
echo $ECHO_N "checking location of utmp... $ECHO_C" >&6 echo $ECHO_N "checking location of utmp... $ECHO_C" >&6
for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do
@ -8458,6 +8485,8 @@ s,@GOLDEDBIN@,$GOLDEDBIN,;t t
s,@GOLDNODE@,$GOLDNODE,;t t s,@GOLDNODE@,$GOLDNODE,;t t
s,@LOG_COMPRESS@,$LOG_COMPRESS,;t t s,@LOG_COMPRESS@,$LOG_COMPRESS,;t t
s,@LOG_COMPRESSEXT@,$LOG_COMPRESSEXT,;t t s,@LOG_COMPRESSEXT@,$LOG_COMPRESSEXT,;t t
s,@joebin@,$joebin,;t t
s,@joelib@,$joelib,;t t
CEOF CEOF
_ACEOF _ACEOF

View File

@ -195,6 +195,27 @@ AC_SUBST(LOG_COMPRESS)
AC_SUBST(LOG_COMPRESSEXT) AC_SUBST(LOG_COMPRESSEXT)
dnl dnl
AC_MSG_CHECKING(location of joe editor)
for joebin in /usr/bin /usr/local/bin NONE; do
if test "$joebin" = "NONE"; then
AC_MSG_WARN(not found)
elif test -x $joebin/joe; then
AC_SUBST(joebin)
AC_MSG_RESULT($joebin)
AC_MSG_CHECKING(location of joe rc files)
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe NONE; do
if test "$joelib" = "NONE"; then
AC_MSG_WARN(not found)
elif test -f $joelib/joerc; then
AC_SUBST(joelib)
AC_MSG_RESULT($joelib)
break
fi
done
break
fi
done
AC_MSG_CHECKING(location of utmp) AC_MSG_CHECKING(location of utmp)
for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do
if test "$utmpdir" = "NONE"; then if test "$utmpdir" = "NONE"; then

View File

@ -38,25 +38,19 @@ install:
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR} ; \ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR}" ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR}" ; \
fi fi
@if [ -x /usr/bin/joe ]; then \ @if [ -x ${JOEBIN}/joe ]; then \
rm -f /usr/bin/bbsjoe ; \ rm -f ${JOEBIN}/bbsjoe ; \
rm -f /usr/bin/bbsjmacs ; \ rm -f ${JOEBIN}/bbsjmacs ; \
echo "ln -s /usr/bin/joe /usr/bin/bbsjoe" ; \ echo "ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjoe" ; \
ln -s /usr/bin/joe /usr/bin/bbsjoe ; \ ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjoe ; \
echo "ln -s /usr/bin/joe /usr/bin/bbsjmacs" ; \ echo "ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjmacs" ; \
ln -s /usr/bin/joe /usr/bin/bbsjmacs ; \ ln -s ${JOEBIN}/joe ${JOEBIN}/bbsjmacs ; \
fi fi
@if [ -d /usr/lib/joe ]; then \ @if [ -d ${JOELIB} ]; then \
${INSTALL} -c -o root -g root -m 0644 bbsjoerc /usr/lib/joe ; \ ${INSTALL} -c -o root -g root -m 0644 bbsjoerc ${JOELIB} ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjoerc /usr/lib/joe" ; \ echo "${INSTALL} -c -o root -g root -m 0644 bbsjoerc ${JOELIB}" ; \
${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /usr/lib/joe ; \ ${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc ${JOELIB} ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /usr/lib/joe" ; \ echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc ${JOELIB}" ; \
fi
@if [ -d /etc/joe ]; then \
${INSTALL} -c -o root -g root -m 0644 bbsjoerc /etc/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjoerc /etc/joe" ; \
${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe" ; \
fi fi
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR} ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR}
@if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \ @if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \