2
AC_INIT(libuninum, 2.6, billposer@alum.mit.edu)
3
AM_CONFIG_HEADER([config.h])
6
AC_ARG_ENABLE(allocaok,
7
[--disable-allocaok Do not use alloca - use heap instead.],
8
[case "${enableval}" in
11
*) AC_MSG_ERROR(bad value ${enableval} for --enable-allocaok) ;;
12
esac],[allocaok=true])
14
AM_CONDITIONAL(ALLOCAOK,test "$allocaok" = true)
16
# Checks for programs.
21
# Checks for header files.
23
AC_CHECK_HEADERS([alloca.h ctype.h gmp.h langinfo.h limits.h locale.h math.h stddef.h stdlib.h string.h strings.h unistd.h wchar.h])
25
# Checks for typedefs, structures, and compiler characteristics.
30
# Checks for library functions.
33
AC_CHECK_FUNCS([getopt_long localeconv setlocale strrchr wcschr])
34
AC_CHECK_LIB(gmp, __gmpz_init,,[AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp/])])
36
AC_CONFIG_FILES([Makefile])