# Process this file with autoconf to produce a configure script.
AC_INIT(xcrypt, 2.4, http://www.suse.de/feedback, libxcrypt)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/xcrypt.h])
AM_CONFIG_HEADER([config.h])
AC_PREFIX_DEFAULT(/usr)

# Checks for programs.
AC_PROG_CC
AM_PROG_AS
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([limits.h stdint.h stdlib.h string.h sys/param.h sys/time.h])
AC_CHECK_HEADERS([bits/libc-lock.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_FORK
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([memchr memset strcspn strdup])

AC_OUTPUT([Makefile src/Makefile])
