AC_INIT(ncdu, 1.2, projects@yorhel.nl)AC_CONFIG_SRCDIR([src/ncdu.h])AC_CONFIG_HEADER([config.h])AM_INIT_AUTOMAKE# Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_RANLIB# Checks for libraries.AC_CHECK_LIB(ncurses, initscr)AC_CHECK_LIB(form, new_form)# Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_CHECK_HEADERS([limits.h stdlib.h string.h sys/time.h unistd.h fnmatch.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_OFF_TAC_SYS_LARGEFILEAC_STRUCT_ST_BLOCKSAC_HEADER_TIME# Checks for library functions.AC_FUNC_CLOSEDIR_VOIDAC_FUNC_LSTATAC_FUNC_MALLOCAC_FUNC_STATAC_CHECK_FUNCS([getcwd gettimeofday memset fnmatch])AC_OUTPUT([Makefile src/Makefile doc/Makefile])echo ""echo "Now type \"make\" and \"make install\" to build and install ncdu"