-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
68 lines (54 loc) · 1.34 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
63
64
65
66
67
68
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([MML],[0.0.0],[Dgby714@gmail.com],[mml],[https://github.com/Dgby714/CMML])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign silent-rules])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/linux/os.c])
AC_CONFIG_HEADERS([config.h])
PKG_PROG_PKG_CONFIG
LT_INIT([dlopen])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_MSG_CHECKING([platform])
TARGET=unknown
case "$host" in
*-linux-*)
TARGET=LINUX;
;;
*-win32* | *-cygwin* | *-mingw*)
TARGET=WINDOWS
;;
*-darwin*)
TARGET=MAC
;;
esac
AC_MSG_RESULT([$TARGET])
if test "$TARGET" = unknown; then
if test x"$host" = x; then
AC_MSG_ERROR([mml has not been ported to your platform.])
fi
AC_MSG_ERROR([mml has not been ported to "$host".])
fi
AM_CONDITIONAL(LINUX, test x"$TARGET" = xLINUX)
AM_CONDITIONAL(WINDOWS, test x"$TARGET" = xWINDOWS)
AM_CONDITIONAL(MAC, test x"$TARGET" = xMAC)
#AC_PATH_X #Linux Only?
AC_CHECK_HEADERS([stdlib.h limits.h])
AC_CHECK_FUNCS([memset sqrt])
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_INT8_T
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_CONFIG_FILES([Makefile mml.pc])
AC_OUTPUT