# Process this file with autoconf to produce a configure script. # # NOTE: this file will probably be changed by gettextize, so don't commit # changed version to CVS. # AC_INIT(gtypist.c) AM_INIT_AUTOMAKE(gtypist, "`cat version.sh|grep '^VERSION'|awk -F= '{print $2}'`") AM_CONFIG_HEADER(config.h) # 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 # Set of available languages. ALL_LINGUAS="de cs es fi fr ru zh_TW" # Checks for libraries. AC_CHECK_LIB(curses, wbkgdset, [AC_DEFINE(HAVE_LIBCURSES, 1, [Is curses available]) HAVE_LIBCURSES=yes LIBS="-lcurses $LIBS"]) # Check for ncurses if curses is not found: # i.e. on SuSE there are no ncurses* -> curses* links if test -z $HAVE_LIBCURSES; then AC_CHECK_LIB(ncurses, wbkgdset, LIBS="-lncurses $LIBS", echo "*** The curses or ncurses library is required!";exit 1) fi # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([unistd.h alloca.h argz.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]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T # 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]) # Internationalization macros AM_GNU_GETTEXT # Manual page generation GEN_MAN="help2man ./gtypist -o gtypist.1" AC_SUBST(GEN_MAN) # This is necessary for tools/gtypist-mode.el AM_PATH_LISPDIR # Generate files AC_OUTPUT(lessons/Makefile tools/Makefile doc/Makefile Makefile intl/Makefile po/Makefile.in m4/Makefile )