1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([generah], [0.6.3])
AC_CONFIG_SRCDIR([geresh.1])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h langinfo.h libintl.h locale.h stdlib.h string.h sys/time.h termios.h unistd.h wchar.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# FIXME: Do we really need to bother with platforms that don't support
# UTF-8?
AC_DEFINE_UNQUOTED(DEFAULT_FILE_ENCODING, "UTF-8", "Default encoding")
AC_HEADER_DIRENT
dnl FIXME: AC_TYPE_SIGNAL - fails on some systems, so:
AC_DEFINE(RETSIGTYPE, void, [Type returned from a signal])
# FIXME: really needed?
AC_CHECK_FUNCS(use_default_colors start_color curs_set)
# FIXME: check for libiconv?
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 memmove putenv select setlocale strchr strdup strerror strstr strtol wcwidth])
PKG_CHECK_MODULES([FRIBIDI], fribidi,
[CPPFLAGS="$CFLAGS $FRIBIDI_CFLAGS"; LDFLAGS="$LDFLAGS $FRIBIDI_LIBS"])
PKG_CHECK_MODULES([NCURSES], ncursesw,
[CPPFLAGS="$CFLAGS $NCURSES_CFLAGS"; LDFLAGS="$LDFLAGS $NCURSES_LIBS"])
AC_DEFINE(HAVE_WIDE_CURSES, 1, [Have ncursesw (ncurses with wide chars)])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES(pgeresh, [chmod +x pgeresh])
AC_OUTPUT
|