dnl Process this file with autoconf to produce a configure script AC_INIT(main.c) AM_INIT_AUTOMAKE(wmthemeinstall, 0.62) AM_CONFIG_HEADER(config.h) AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(PREFIX) dnl Checks for programs. AC_PROG_CC AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_CPP dnl Checks for libraries AC_PATH_PROG(GTK_CONFIG, gtk-config, no) if test "$GTK_CONFIG" = no ; then AC_MSG_ERROR(Cannot find gtk-config.) else WMTHEMEINSTALL_INCLUDES=`$GTK_CONFIG --cflags` WMTHEMEINSTALL_LDFLAGS=`$GTK_CONFIG --libs` fi AC_SUBST(WMTHEMEINSTALL_INCLUDES) AC_SUBST(WMTHEMEINSTALL_LDFLAGS) AC_CHECK_LIB(z,gzseek,,AC_MSG_ERROR("'Please upgrade zlib > 1.1.x'")) dnl Checks for typedefs, structures, and compiler characteristics AC_C_CONST AC_STRUCT_ST_RDEV AC_STRUCT_TM dnl Checks for library functions AC_FUNC_ALLOCA AC_HEADER_MAJOR AC_CHECK_HEADERS(sys/param.h) AC_CHECK_HEADERS(tar.h) AC_CHECK_HEADERS(zlib.h) AC_CHECK_FUNCS(getcwd mktime strerror strstr opendir readdir stat) AC_CHECK_FUNCS(snprintf vsnprintf) AC_OUTPUT(Makefile wmthemeinstall.spec)