-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
63 lines (48 loc) · 1.17 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
AC_INIT([libxlsxwriter_open_template], [1.0])
AC_CONFIG_FILES([Makefile])
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
dnl needed for CF_WITH_LIBTOOL
AC_CHECK_TOOL(AR, ar, ar)
AC_SUBST([CC])
# Detect the target system
case "${host_os}" in
linux*)
TARGETOS=Linux
;;
cygwin*|mingw*)
TARGETOS=Windows
;;
darwin*)
TARGETOS=MacOS
;;
*)
AC_MSG_ERROR(["OS $host_os is not supported"])
;;
esac
AC_SUBST([TARGETOS])
if test $host_os != $build_os
then
CROSS_COMPILING=1
fi
AC_SUBST([CROSS_COMPILING])
#char ARCHS
AS_VAR_IF(ARCHS, [], AS_IF([test "$host_cpu" = "aarch64"], ARCHS=arm64, ARCHS=[$host_cpu]))
AC_SUBST([ARCHS])
AC_SUBST([CFLAGS])
AC_SUBST([LDFLAGS])
# Checks for programs.
AC_PROG_CC
AC_OUTPUT
########################################################################
echo ""
echo " cXLSX $cXLSX_VERSION"
echo " ======================"
echo ""
echo " CC: $CC"
echo " HOST: $host_os"
echo " BUILD: $build_os"
echo " ARCHS: $ARCHS"
echo " TARGETOS: $TARGETOS"
echo " prefix: $prefix"
echo ""