1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ([2.69]) 5AC_INIT([mingw-w64-winpthreads], [1.0], [mingw-w64-public@lists.sf.net]) 6AC_CONFIG_AUX_DIR([build-aux]) 7AC_CONFIG_SRCDIR([src/spinlock.c]) 8AC_CONFIG_MACRO_DIR([m4]) 9AC_CONFIG_HEADERS([config.h]) 10 11AM_INIT_AUTOMAKE([foreign subdir-objects]) 12AM_MAINTAINER_MODE 13 14AC_CANONICAL_HOST 15 16# Checks for programs. 17AC_NO_EXECUTABLES 18AC_PROG_CC 19AC_PROG_RANLIB 20AM_PROG_AS 21AM_PROG_AR 22 23# Libtool 2.4 should check them correctly 24# AC_CHECK_TOOLS([AR],[ar],[:]) 25 26# Libtool 27LT_INIT([win32-dll]) 28LT_LANG([Windows Resource]) 29 30AC_SUBST([LT_OBJDIR],$lt_cv_objdir) 31 32AS_VAR_IF([enable_shared], [yes], [AS_VAR_SET([copy_shared])]) 33AS_VAR_IF([enable_static], [yes], [AS_VAR_SET([copy_static])]) 34AM_CONDITIONAL( [COPY_SHARED], [AS_VAR_TEST_SET([copy_shared])] ) 35AM_CONDITIONAL( [COPY_STATIC], [AS_VAR_TEST_SET([copy_static])] ) 36 37# Checks for libraries. 38# FIXME: Replace `main' with a function in `-lpthread': 39#AC_CHECK_LIB([pthread], [main]) 40 41# Checks for header files. 42AC_CHECK_HEADERS([limits.h sys/timeb.h]) 43 44# Checks for typedefs, structures, and compiler characteristics. 45AC_C_INLINE 46AC_TYPE_SIZE_T 47 48# Checks for library functions. 49#AC_FUNC_MALLOC 50#AC_FUNC_REALLOC 51# mingw-w64 should already have them 52#AC_CHECK_FUNCS([ftime gettimeofday memset]) 53 54AC_SUBST([RCFLAGS]) 55 56AC_CONFIG_FILES([Makefile tests/Makefile]) 57AC_OUTPUT 58