1# Process this file with autoconf to produce a configure script. 2 3AC_INIT(isoqlog, 2.2.1, bug-report@enderunix.org) 4AC_CANONICAL_SYSTEM 5AC_CONFIG_SRCDIR([isoqlog/Global.h]) 6AM_CONFIG_HEADER(isoqlog/config.h) 7#AC_CONFIG_HEADER macro used by autoheader 8#AC_CONFIG_HEADER(isoqlog/config.h) 9AM_INIT_AUTOMAKE(isoqlog, 2.2.1) 10 11 12# Checks for programs. 13AC_PROG_CC 14 15unset CDPATH 16dnl make /usr/local the default for the installation 17#AC_PREFIX_DEFAULT(/usr/local) 18 19if test "x$prefix" = "xNONE"; then 20 prefix=$ac_default_prefix 21fi 22# Checks for libraries. 23 24# Checks for header files. 25AC_HEADER_DIRENT 26AC_HEADER_STDC 27AC_CHECK_HEADERS([fcntl.h stdlib.h string.h strings.h unistd.h], [], \ 28 AC_MSG_ERROR([Development headers not found])) 29 30# Checks for typedefs, structures, and compiler characteristics. 31AC_TYPE_SIZE_T 32AC_STRUCT_TM 33 34# Checks for library functions. 35AC_FUNC_MALLOC 36AC_FUNC_STAT 37AC_CHECK_FUNCS([gethostname memset mkdir strcasecmp strdup strerror strstr], [], \ 38 AC_MSG_ERROR([functions not found])) 39AC_DEFINE_UNQUOTED(CONFIGFILE, "${prefix}/etc/isoqlog.conf", [Configuration file path]) 40 41AC_CONFIG_FILES([ Makefile ]) 42AC_CONFIG_FILES([ isoqlog/Makefile ]) 43AC_CONFIG_FILES([ data/Makefile ]) 44AC_CONFIG_FILES([ data/isoqlog.conf-dist ]) 45AC_CONFIG_FILES([ data/htmltemp/Makefile ]) 46AC_CONFIG_FILES([ data/htmltemp/images/Makefile ]) 47AC_CONFIG_FILES([ data/htmltemp/library/Makefile ]) 48AC_CONFIG_FILES([ data/lang/Makefile ]) 49AC_CONFIG_FILES([ tr/Makefile ]) 50AC_OUTPUT 51