2013-12-25 22:25:36 +08:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_PREREQ([2.69])
|
|
|
|
|
2014-01-05 17:43:21 +08:00
|
|
|
AC_INIT(hh, 0.73, martin.dvorak@mindforger.com)
|
|
|
|
AM_INIT_AUTOMAKE(hh, 0.73)
|
2013-12-25 22:25:36 +08:00
|
|
|
AC_OUTPUT(Makefile src/Makefile man/Makefile)
|
|
|
|
|
|
|
|
# Checks for src dir existence.
|
|
|
|
AC_CONFIG_SRCDIR([src/hstr.c])
|
|
|
|
# Where to generate header file.
|
|
|
|
#AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
AC_CHECK_LIB(ncurses, initscr)
|
|
|
|
AC_CHECK_LIB(m,cos)
|
|
|
|
AC_CHECK_LIB(readline, using_history)
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADER(assert.h)
|
|
|
|
AC_CHECK_HEADER(curses.h)
|
|
|
|
AC_CHECK_HEADER(fcntl.h)
|
|
|
|
AC_CHECK_HEADER(math.h)
|
|
|
|
AC_CHECK_HEADER(readline/history.h)
|
|
|
|
AC_CHECK_HEADER(stdbool.h)
|
|
|
|
AC_CHECK_HEADER(stddef.h)
|
|
|
|
AC_CHECK_HEADER(stdio.h)
|
|
|
|
AC_CHECK_HEADER(stdlib.h)
|
|
|
|
AC_CHECK_HEADER(string.h)
|
|
|
|
AC_CHECK_HEADER(sys/ioctl.h)
|
|
|
|
AC_CHECK_HEADER(termios.h)
|
|
|
|
AC_CHECK_HEADER(unistd.h)
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_CHECK_HEADER_STDBOOL
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_CHECK_FUNCS([memset strdup strstr])
|
|
|
|
|
|
|
|
AC_OUTPUT
|