2008-06-08 03:03:48 +08:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.61)
|
2008-06-10 04:55:13 +08:00
|
|
|
AC_INIT(Minix editline, 0.2.1, joachim@vmlinux.org)
|
2008-06-08 03:03:48 +08:00
|
|
|
AC_CONFIG_SRCDIR([src/editline.c])
|
|
|
|
AC_CONFIG_HEADER([config.h])
|
|
|
|
|
|
|
|
# Prepare automake
|
2008-06-08 06:32:45 +08:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2 dist-lzma])
|
2008-06-08 03:03:48 +08:00
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
2008-06-09 05:49:32 +08:00
|
|
|
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
|
|
|
# mess up the traditional malloc check.
|
2008-06-09 06:17:48 +08:00
|
|
|
AC_CHECK_HEADERS([malloc.h signal.h sgtty.h stdlib.h string.h termio.h termios.h])
|
2008-06-08 03:03:48 +08:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STAT
|
|
|
|
|
|
|
|
# Overrides and types, should be a check.
|
2008-06-08 06:32:45 +08:00
|
|
|
AC_DEFINE([SYS_UNIX], [1], [Default to UNIX backend, should be detected.])
|
|
|
|
AC_DEFINE([HIDE], [1], [Enable static keyword, hides internal methods.])
|
2008-06-08 03:03:48 +08:00
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_CLOSEDIR_VOID
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
2008-06-09 05:49:32 +08:00
|
|
|
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
|
|
|
# mess up the traditional malloc check.
|
|
|
|
#AC_FUNC_MALLOC
|
|
|
|
#AC_FUNC_REALLOC
|
2008-06-08 03:03:48 +08:00
|
|
|
AC_FUNC_STAT
|
2008-06-10 03:37:01 +08:00
|
|
|
AC_CHECK_FUNCS([strchr strdup strrchr tcgetattr])
|
2008-06-08 03:03:48 +08:00
|
|
|
|
2008-10-02 07:52:40 +08:00
|
|
|
AC_ARG_ENABLE([complete],
|
|
|
|
[ --enable-default-complete Enable default completion handler.],[
|
|
|
|
case "${enableval}" in
|
|
|
|
yes)
|
|
|
|
complete=true
|
|
|
|
;;
|
|
|
|
no)
|
|
|
|
complete=false
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([bad value ${enableval} for --enable-default-complete])
|
|
|
|
;;
|
|
|
|
esac],[complete=false])
|
|
|
|
AM_CONDITIONAL([COMPLETE], [test x$complete = xtrue])
|
|
|
|
|
2008-06-08 06:32:45 +08:00
|
|
|
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|