blob: 45d38213668ada6b9753fe16d9d9e3913a6668b5 [file] [log] [blame]
NightStrike0ed78052013-04-14 03:07:39 +00001# -*- 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
NightStrike0ed78052013-04-14 03:07:39 +000019AM_PROG_AS
20AM_PROG_AR
21
Kirill Makurinc471ed32025-04-22 13:20:45 +090022AC_MSG_CHECKING([whether C compiler is MSVC-like compiler])
23AC_COMPILE_IFELSE(
24 [AC_LANG_SOURCE(
25 [
26#if !defined (_MSC_VER)
27not msvc
28#endif
29 ])
30 ],
31dnl then
32 [RC="$am_aux_dir/windres-rc rc.exe"]
33 [msvc=yes],
34dnl else
35 [msvc=no]
36)
37AC_MSG_RESULT([$msvc])
38
Antonin Décimo0f9248b2023-12-14 11:03:53 +010039AC_SUBST([RCFLAGS])
Kirill Makurinc471ed32025-04-22 13:20:45 +090040AM_CONDITIONAL([MSVC], [test x$msvc = xyes])
Antonin Décimo0f9248b2023-12-14 11:03:53 +010041
NightStrike0ed78052013-04-14 03:07:39 +000042# Libtool 2.4 should check them correctly
43# AC_CHECK_TOOLS([AR],[ar],[:])
44
45# Libtool
46LT_INIT([win32-dll])
47LT_LANG([Windows Resource])
48
NightStrike0ed78052013-04-14 03:07:39 +000049# Checks for libraries.
NightStrike0ed78052013-04-14 03:07:39 +000050
51# Checks for header files.
NightStrike0ed78052013-04-14 03:07:39 +000052
53# Checks for typedefs, structures, and compiler characteristics.
NightStrike0ed78052013-04-14 03:07:39 +000054
55# Checks for library functions.
NightStrike0ed78052013-04-14 03:07:39 +000056
NightStrike593800d2013-04-23 16:02:01 +000057AC_CONFIG_FILES([Makefile tests/Makefile])
NightStrike0ed78052013-04-14 03:07:39 +000058AC_OUTPUT