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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
dnl $Id: configure.in,v 1.17 1999/09/15 09:43:12 roland Exp $
dnl -*-sh-mode-*-
AC_INIT(fetchaddr.c)
AC_MSG_CHECKING(for prefix)
if test x$prefix = xNONE; then
lbdb_cv_prefix=$ac_default_prefix
else
lbdb_cv_prefix=$prefix
fi
AC_MSG_RESULT($lbdb_cv_prefix)
AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_HEADER(getopt.h, AC_DEFINE(HAVE_GETOPT_H))
SH=NONE
dnl If we are runnin bash right now, BASH is set.
unset BASH
if test "x$SH" = xNONE ; then
AC_PATH_PROG(BASH, bash, NONE)
if test ! "x$BASH" = xNONE ; then
if $BASH -posix -c true ; then
SH="$BASH -posix"
elif $BASH --posix -c true ; then
SH="$BASH --posix"
fi
echo "Using $SH".
fi
fi
if test "x$SH" = xNONE ; then
AC_PATH_PROG(KSH, ksh, NONE)
if test ! "x$KSH" = xNONE ; then
SH="$KSH"
echo "Using $SH".
fi
fi
if test "x$SH" = xNONE ; then
AC_PATH_PROG(BINSH, sh, NONE)
if test "x$BINSH" = xNONE; then
echo "ERROR: Can't find sh." >&2
exit 1
else
SH="$BINSH"
fi
fi
AC_SUBST(SH)
AC_PATH_PROG(AWK, awk, NONE)
AC_PATH_PROG(MAWK, mawk, NONE)
AC_PATH_PROG(GAWK, gawk, NONE)
AC_PATH_PROG(NAWK, nawk, NONE)
if test "x$AWK" != "xNONE" ; then
AWK="$AWK -f"
fi
if test "x$NAWK" != "xNONE" ; then
AWK="$NAWK -f"
fi
if test "x$GAWK" != "xNONE" ; then
AWK="$GAWK -f"
fi
if test "x$MAWK" != "xNONE" ; then
AWK="$MAWK -f"
fi
AC_SUBST(AWK)
AC_PATH_PROG(DOTLOCK_OLD, mutt.dotlock, no)
if test x$ac_cv_path_DOTLOCK_OLD = xno ; then
AC_PATH_PROG(DOTLOCK, mutt_dotlock, no)
else
ac_cv_path_DOTLOCK=$ac_cv_path_DOTLOCK_OLD
fi
if test x$ac_cv_path_DOTLOCK = xno ; then
DOTLOCK_TARGET="lbdb_dotlock"
AC_SUBST(DOTLOCK_TARGET)
DOTLOCK="$bindir"/lbdb_dotlock
fi
AC_SUBST(DOTLOCK)
DOTLOCKBASE=`basename $DOTLOCK`
AC_SUBST(DOTLOCKBASE)
path_fetchaddr="$libdir/fetchaddr"
AC_SUBST(path_fetchaddr)
MODULES="m_inmail m_passwd"
AC_PATH_PROG(FINGER, finger, "no")
if test "x$FINGER" != xno ; then
MODULES="$MODULES m_finger"
AC_SUBST(FINGER)
fi
AC_PATH_PROG(GPG, gpg, "no")
if test "x$GPG" != xno ; then
MODULES="$MODULES m_gpg"
AC_SUBST(GPG)
fi
AC_PATH_PROG(PGPK, pgpk, "no")
if test "x$PGPK" != xno ; then
MODULES="$MODULES m_pgp5"
AC_SUBST(PGPK)
fi
AC_PATH_PROG(PGP, pgp, "no")
if test "x$PGP" != xno ; then
MODULES="$MODULES m_pgp2"
AC_SUBST(PGP)
fi
AC_PATH_PROG(PERL, perl, "no")
if test "x$PERL" != xno ; then
# m_fido needs nodelist2lbdb, which needs perl
MODULES="$MODULES m_fido"
AC_SUBST(PERL)
fi
MODULES_SH=""
for i in $MODULES ; do
MODULES_SH="$MODULES_SH $i.sh"
done
LBDB_VERSION=`sed -e '2,10000d;s/^.*(\(.*\)).*$/\1/' < debian/changelog`
AC_SUBST(LBDB_VERSION)
AC_SUBST(MODULES)
AC_OUTPUT(Makefile lbdbq.sh munge.awk lbdb-fetchaddr.sh lbdb-munge.sh \
lbdb_lib.sh nodelist2lbdb.pl $MODULES_SH)
|