OSDN Git Service

_USE_32BIT_TIME_T resolution and prepare for release.
[mingw/mingw-org-wsl.git] / configure.ac
1 ##
2 # @file configure.ac
3 # @copy 2012 MinGW.org project
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the "Software"),
7 # to deal in the Software without restriction, including without limitation
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 # and/or sell copies of the Software, and to permit persons to whom the
10 # Software is furnished to do so, subject to the following conditions:
11
12 # The above copyright notice and this permission notice (including the next
13 # paragraph) shall be included in all copies or substantial portions of the
14 # Software.
15
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 # DEALINGS IN THE SOFTWARE.
23 ##
24
25 #                                               -*- Autoconf -*-
26 # Process this file with autoconf to produce a configure script.
27
28 AC_PREREQ([2.68])
29 AC_INIT([MinGW.org WSL], [4.0], [http://www.mingw.org/report_bugs], [mingw.org-wsl], [http://www.mingw.org])
30 AC_CONFIG_AUX_DIR([build-aux])
31 AC_PREFIX_DEFAULT([/mingw])
32 AC_CONFIG_SRCDIR([include/_mingw.h])
33 AC_CONFIG_HEADERS([config.h])
34 AC_CANONICAL_SYSTEM
35
36 # Checks for programs.
37 AC_PROG_CC
38 AC_PROG_INSTALL
39 AC_PROG_MKDIR_P
40 AC_PROG_RANLIB
41 AC_CHECK_TOOL([AS], [as], [as])
42 AC_CHECK_TOOL([DLLTOOL], [dlltool], [dlltool])
43
44 AC_ARG_VAR([PACKAGE_RELEASE], [Release serial number for the current PACKAGE_VERSION])
45 AC_SUBST([PACKAGE_RELEASE], [${PACKAGE_RELEASE-"1"}])
46
47 # Checks for libraries.
48
49 # Checks for header files.
50 AC_CHECK_HEADERS([fcntl.h fenv.h float.h inttypes.h limits.h locale.h malloc.h memory.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/param.h sys/time.h sys/timeb.h unistd.h values.h wchar.h wctype.h])
51
52 # Checks for typedefs, structures, and compiler characteristics.
53 AC_HEADER_STDBOOL
54 AC_C_INLINE
55 AC_TYPE_INT16_T
56 AC_TYPE_INT32_T
57 AC_TYPE_INT64_T
58 AC_TYPE_INT8_T
59 AC_TYPE_MODE_T
60 AC_TYPE_OFF_T
61 AC_TYPE_PID_T
62 AC_TYPE_SIZE_T
63 AC_TYPE_SSIZE_T
64 AC_CHECK_MEMBERS([struct stat.st_rdev])
65 AC_TYPE_UINT16_T
66 AC_TYPE_UINT32_T
67 AC_TYPE_UINT64_T
68 AC_TYPE_UINT8_T
69 AC_CHECK_TYPES([ptrdiff_t])
70
71 # Checks for library functions.
72 AC_FUNC_MALLOC
73 AC_FUNC_MBRTOWC
74 AC_FUNC_MKTIME
75 AC_FUNC_REALLOC
76 AC_FUNC_STRCOLL
77 AC_FUNC_STRTOD
78 AC_CHECK_FUNCS([atexit btowc bzero dup2 fesetround floor ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname gettimeofday inet_ntoa isascii iswprint localeconv mblen mbrlen memchr memmove memset mkdir modf pow putenv rint rmdir select setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul strtoull strtoumax tzset utime])
79
80 AC_CONFIG_FILES([Makefile tests/Makefile])
81 AC_OUTPUT