dnl Process this file with autoconf to produce a configure script. AC_INIT(README) AM_INIT_AUTOMAKE(xin, 1.0.0) AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S dnl Checks for libraries. AC_SEARCH_LIBS(getopt_long, getopt gnugetopt) dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(unistd.h,,AC_MSG_ERROR(required header missing)) AC_CHECK_HEADERS(getopt.h,,AC_MSG_WARN([GNU getopt is required for long style options])) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(strtol,, AC_MSG_ERROR(required function missing)) AC_OUTPUT(Makefile xin.1 xin.spec)