1 dnl Process this file with autoconf to produce a configure script.
4 AM_CONFIG_HEADER(config.h)
5 AM_INIT_AUTOMAKE(libtinysrp, 0.7.5)
7 test "$CFLAGS" = "" && CFLAGS="-O2"
9 dnl Checks for programs.
17 dnl Checks for header files.
20 AC_CHECK_HEADERS(sgtty.h sys/ioctl.h sys/time.h termio.h termios.h unistd.h)
22 dnl Checks for typedefs, structures, and compiler characteristics.
28 AC_CHECK_SIZEOF(short)
31 AC_CHECK_SIZEOF(long long)
32 AC_TRY_COMPILE(, [volatile int i;], , AC_DEFINE(volatile, ))
36 if test "$ac_cv_c_char_unsigned" = "yes"; then
40 dnl Checks for library functions.
42 AC_CHECK_FUNCS(sigaction strchr memcpy)
44 AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK(cfsetispeed,AC_DEFINE(POSIX_TERMIOS)))
48 dnl Some defines for now.
50 AC_DEFINE(SHA1HANDSOFF)