forked from tpoechtrager/wclang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (42 loc) · 1.32 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT(wclang, 0.3, t.poechtrager@gmail.com)
AC_CONFIG_SRCDIR([src/wclang.cpp])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
# Checks for programs.
m4_define([CHECK_MINGW], esyscmd([scripts/check_mingw.sh]))
ifelse(m4_sysval, 0, , [echo "CHECK_MINGW"; exit 1])
m4_define([CLANG_TARGET_OPT], m4_esyscmd([scripts/check_clang_target_option.sh]))
ifelse(m4_sysval, 0, , [
echo "unable to determine clang target option"
echo "clang not installed?"
exit 1])
CXXFLAGS+=" -DCLANG_TARGET_OPT="
CXXFLAGS+="\"\\\""
CXXFLAGS+=CLANG_TARGET_OPT
CXXFLAGS+="\"\\\""
CXXFLAGS+=" -DMINGW_PATH="
CXXFLAGS+="\"\\\""
CXXFLAGS+=CHECK_MINGW
CXXFLAGS+="\"\\\""
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_AWK
AC_PROG_MKDIR_P
AX_CXX_COMPILE_STDCXX_11(noext, mandatory)
AX_CXX_STDCHRONO
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([strchr strdup strrchr getpid])
AC_CHECK_FUNCS([execvp gettimeofday], , exit 1)
AC_CHECK_FUNCS([execvpe readlink])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT