File: configure.in

package info (click to toggle)
mailcrypt 3.5.8-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 422
  • sloc: lisp: 4,439; python: 437; makefile: 208; sh: 170
file content (59 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
dnl Process this file with autoconf to produce a configure script.
AC_INIT(mailcrypt.el)

AC_PROG_INSTALL()

AC_PATH_PROG(INSTALL_INFO, install-info)
if test "$INSTALL_INFO x" = " x"
then
  INSTALL_INFO=":"
fi
AC_SUBST(INSTALL_INFO)

AC_PATH_PROG(BASENAME, basename)
if test "$BASENAME x" = " x"
then
  AC_MSG_ERROR(Cannot find program "basename" on your patch.
Hint: Try setting BASENAME environment variable or fixing your PATH.)
fi

if test -n "$EMACS" && test "$EMACS" = "t"
then
    unset EMACS
fi

AC_CHECK_PROGS(EMACS, emacs xemacs,dnl
  AC_MSG_ERROR('Cannot find emacs in your path.
Hint: Try setting EMACS environment variable or fixing your PATH.'))

RESULT=`$BASENAME $EMACS`
if test "$RESULT" = xemacs
then
  if $EMACS -batch -q --vanilla
  then
    EMACSFLAGS="--vanilla"         # We're running Xemacs 20.x or higher
    AC_SUBST(EMACSFLAGS)
  else
    EMACSFLAGS="-q -no-site-file"  # Still running Xemacs 19.x
  fi
else if test "$RESULT" = emacs
then
  EMACSFLAGS=""
  AC_SUBST(EMACSFLAGS)
fi
fi
EXTRA_SRCS=""
EXTRA_OBJS=""
echo -n checking for timer.el...
if $EMACS -batch -l timer 2>/dev/null
then
  echo timer.el
else
  echo no.  I will install it for you.
  EXTRA_SRCS="timer.el"
  AC_SUBST(EXTRA_SRCS)
  EXTRA_OBJS="timer.elc"
  AC_SUBST(EXTRA_OBJS)
fi

AC_OUTPUT(Makefile tests/Makefile tests/remailer/Makefile)