-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
61 lines (51 loc) · 1.43 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([pvrepgstation], [0.0.9], [Harekaze2 project])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
ADDONNAME=pvr.epgstation.so
LIBEXT=so
case $host in
arm-apple-darwin)
ADDONNAME=pvr.epgstation-ios.dylib
LIBEXT=dylib
CXX=$(xcrun --sdk iphoneos --find clang++)
LD=$(xcrun --sdk iphoneos --find ld)
SYSROOT=$(xcrun --sdk iphoneos --show-sdk-path)
AC_SUBST(AM_CPPFLAGS_EXT, "-arch arm64 -D__arm__ -isysroot $SYSROOT")
AC_SUBST(LDFLAGS_EXT, "-arch arm64 -isysroot $SYSROOT")
;;
*-apple-*)
ADDONNAME=pvr.epgstation.dylib
LIBEXT=dylib
;;
arm*-*-linux-gnu*)
ADDONNAME=pvr.epgstation.armel.so
AC_SUBST(AM_CPPFLAGS_EXT, "-D_ARMEL")
;;
esac
AC_SUBST(ADDONNAME)
AC_SUBST(LIBEXT)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([float.h inttypes.h locale.h stdint.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_STRTOD
AC_CHECK_FUNCS([localeconv memset modf select strdup])
AC_CONFIG_FILES([Makefile
src/Makefile
src/epgstation/Makefile
src/pvr_client/Makefile])
AC_OUTPUT