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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(t_pwd.h)
AM_INIT_AUTOMAKE(libsrp, 1.1)
test "$CFLAGS" = "" && CFLAGS="-O2"
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
AC_ARG_PROGRAM
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(termios.h termio.h sgtty.h sys/ioctl.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_HEADER_TIME
AC_C_BIGENDIAN
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
dnl Checks for library functions.
AC_CHECK_FUNCS(strchr memcpy)
TYPE_SIGNAL
AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK(cfsetispeed,AC_DEFINE(POSIX_TERMIOS)))
dnl User options
AC_ARG_WITH(cryptolib, [ --with-cryptolib compile to use cryptolib])
if test "$with_cryptolib" = "yes"
then
AC_DEFINE(CRYPTOLIB)
LIBS="-L../lib -lcrypt $LIBS"
else
AC_DEFINE(GNU_MP)
LIBS="-L../lib -lgmp2 $LIBS"
fi
dnl Some defines for now.
AC_DEFINE(HIGHFIRST)
AC_DEFINE(SHA1HANDSOFF)
AC_OUTPUT(Makefile)
|