forked from mingw-w64/mingw-w64
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
62 lines (48 loc) · 1.55 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([mingw-w64-winpthreads], [1.0], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/spinlock.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
# Checks for programs.
AC_NO_EXECUTABLES
AC_PROG_CC
AM_PROG_AS
AM_PROG_AR
AS_CASE([$CC],
[*cl|*cl.exe],
[RC="$am_aux_dir/windres-rc rc.exe"
msvc=true],
[msvc=false]])
AC_SUBST([RCFLAGS])
AM_CONDITIONAL([MSVC], [test x$msvc = xtrue])
# Libtool 2.4 should check them correctly
# AC_CHECK_TOOLS([AR],[ar],[:])
# Libtool
LT_INIT([win32-dll])
LT_LANG([Windows Resource])
AC_SUBST([LT_OBJDIR],$lt_cv_objdir)
AS_VAR_IF([enable_shared], [yes], [AS_VAR_SET([copy_shared])])
AS_VAR_IF([enable_static], [yes], [AS_VAR_SET([copy_static])])
AM_CONDITIONAL( [COPY_SHARED], [AS_VAR_TEST_SET([copy_shared])] )
AM_CONDITIONAL( [COPY_STATIC], [AS_VAR_TEST_SET([copy_static])] )
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lpthread':
#AC_CHECK_LIB([pthread], [main])
# Checks for header files.
AC_CHECK_HEADERS([limits.h sys/timeb.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
#AC_FUNC_MALLOC
#AC_FUNC_REALLOC
# mingw-w64 should already have them
#AC_CHECK_FUNCS([ftime gettimeofday memset])
AC_CONFIG_FILES([Makefile tests/Makefile])
AC_OUTPUT