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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gtypist.c)
AM_INIT_AUTOMAKE(gtypist,"`cat version.sh|grep '^VERSION'|awk -F= '{print $2}'`")
AM_CONFIG_HEADER(config.h)
dnl Checks for prograns
AC_PROG_AWK
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_YACC
dnl Set of available languages.
ALL_LINGUAS="de es fi fr"
dnl Checks for libraries.
AC_SEARCH_LIBS(wbkgdset, curses,, echo "*** The curses library is required!";exit 1)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([unistd.h alloca.h argz.h curses.h errno.h fcntl.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdlib.h string.h strings.h sys/param.h unistd.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_ALLOCA
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify dcgettext getcwd getwd mempcpy memset munmap nl_langinfo setlocale stpcpy strcasecmp strchr strcspn strdup strstr strtoul])
dnl internationalization macros
AM_GNU_GETTEXT
dnl Internationalization
AC_ARG_WITH(nointl,
[ --with-nointl disable internationalization],
[],
[
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi])
AC_CHECK_PROG(HELP2MAN, help2man, help2man, no)
if (test "$HELP2MAN" = "no") then {
GEN_MAN="echo \"Without help2man, manual pages could not be generated. Use 'info gtypist' to access gtypist documentation.\" > gtypist.1"
}
else
{
GEN_MAN="help2man ./gtypist -o gtypist.1"
}
fi;
dnl this is necessary for tools/gtypist-mode.el
AM_PATH_LISPDIR
AC_SUBST(GEN_MAN)
AC_OUTPUT(po/Makefile.in intl/Makefile lessons/Makefile tools/Makefile doc/Makefile Makefile)
|