aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/config.site.in
blob: 64c07369e47c8fd880a155975a9a344de6ee21f6 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
if test "@cross_compiling@" = "yes"; then
cross_compiling=yes
host=@use_host@
host_alias=@use_host@
fi

LD="@LD@"
CC="@CCACHE@ @CC@"
CXX="@CCACHE@ @CXX@"
CPP="@CCACHE@ @CPP@"
AR="@AR@"
AS="@AS@"
NM="@NM@"
STRIP="@STRIP@"
RANLIB="@RANLIB@"
OBJDUMP="@OBJDUMP@"

if test "@platform_os@" = "darwin_embedded" ; then
  export AS="@prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
  export CCAS="--tag CC @prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
fi

CFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CFLAGS"
LDFLAGS="-L@prefix@/@deps_dir@/lib -L@prefix@/@deps_dir@/lib64 @platform_ldflags@ $LDFLAGS"
CXXFLAGS="@platform_cxxflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CXXFLAGS"
CPPFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CPPFLAGS"

export PKG_CONFIG=@prefix@/@tool_dir@/bin/pkg-config
export PKG_CONFIG_LIBDIR=@prefix@/@deps_dir@/lib/pkgconfig
export YASM=@prefix@/@tool_dir@/bin/yasm
export NASM=@prefix@/@tool_dir@/bin/yasm
LIBGCRYPT_CONFIG=@prefix@/@deps_dir@/bin/libgcrypt-config

PATH=@prefix@/@tool_dir@/bin:@use_toolchain@/usr/bin:@use_toolchain@/bin:$PATH
LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH

PYTHON_VERSION=2.7
PYTHON_LDFLAGS="-L@prefix@/@deps_dir@/lib -L@prefix@/@deps_dir@/lib64 -lpython${PYTHON_VERSION} -lc -ldl -lm -lexpat -lffi -lintl -lutil -lssl -lcrypto"
PYTHON_CPPFLAGS=-I@prefix@/@deps_dir@/include/python${PYTHON_VERSION}
PYTHON_SITE_PKG=@prefix@/@deps_dir@/lib/python${PYTHON_VERSION}/site-packages
PYTHON_NOVERSIONCHECK=no-check
NATIVE_ROOT=@prefix@/@tool_dir@

#libomxil-bellagio
ac_cv_func_malloc_0_nonnull=yes

#curl
ac_cv_file__dev_urandom=yes
ac_cv_lib_ssl_SSL_connect=yes

#gettext and libiconv
gl_cv_header_working_stdint_h=yes

#libcec
ac_cv_search_dlopen=-ldl

#libgcrypt
if test "${PACKAGE_NAME}" = "libgcrypt"; then
  ac_cv_path_GPG_ERROR_CONFIG=@prefix@/@deps_dir@/bin/gpg-error-config
  ac_cv_sys_symbol_underscore=no
  CFLAGS="$CFLAGS -std=gnu99"
fi

#python
ac_cv_func_gethostbyname_r=no
ac_cv_header_sys_un_h=yes
ac_cv_file__dev_ptmx=no
ac_cv_file__dev_ptc=no

#gnutls
gl_cv_func_gettimeofday_clobber=no


#samba
SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes
samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
libreplace_cv_HAVE_C99_VSNPRINTF=yes
samba_cv_HAVE_C99_VSNPRINTF=yes
ac_cv_header_standards_h=no

ac_cv_file__proc_sys_kernel_core_pattern=no
samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
libreplace_cv_HAVE_GETADDRINFO=no

if test "${PACKAGE_NAME}" = "Samba" -a "@platform_os@" = "darwin_embedded"; then
  # disable python support
  export PYTHON_VER=0.0
  if test "@use_cpu@" != "arm64"; then
    # ios/osx-10.6 issue with collision of _MD5 exported from a system lib
    export LDFLAGS="${LDFLAGS} -Wl,-unexported_symbol,_MD5* -lc"
  fi
  samba_cv_HAVE_IFACE_GETIFADDRS=yes
fi

if test "${PACKAGE_NAME}" = "Samba" -a "@platform_os@" = "osx"; then
  # disable python support
  export PYTHON_VER=0.0
  # ios/osx-10.6 issue with collision of _MD5 exported from a system lib
  export LDFLAGS="${LDFLAGS} -Wl,-unexported_symbol,_MD5* -lc"
  # uses OPT instead of CFLAGS
  export OPT="${CFLAGS}"
  # various configure overrides
  ac_cv_header_libunwind_h=no
  ac_cv_header_execinfo_h=no
  samba_cv_HAVE_IFACE_GETIFADDRS=yes
fi

if test "@platform_os@" = "android"; then
  #samba
  SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes
  libreplace_cv_READDIR_GETDIRENTRIES=no
  libreplace_cv_READDIR_GETDENTS=no
  libreplace_cv_HAVE_IFACE_IFCONF=yes
  libreplace_cv_HAVE_MMAP=yes
  libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes
  libreplace_cv_HAVE_SECURE_MKSTEMP=yes

  samba_cv_REPLACE_READDIR=no
  samba_cv_HAVE_WRFILE_KEYTAB=yes
  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
  samba_cv_USE_SETREUID=yes
  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
  samba_cv_HAVE_IFACE_IFCONF=yes
  samba_cv_HAVE_MMAP=yes
  samba_cv_HAVE_FCNTL_LOCK=yes
  samba_cv_HAVE_SECURE_MKSTEMP=yes
  samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
  samba_cv_fpie=no
  samba_cv_have_longlong=yes
  samba_cv_HAVE_OFF64_T=yes
  samba_cv_HAVE_UT_UT_TYPE=no
  ac_cv_func_srand=yes
  ac_cv_func_rand=yes

  #python: android doesn't have libutil
  PYTHON_LDFLAGS="-L@prefix@/@deps_dir@/lib -L@prefix@/@deps_dir@/lib64 -lpython${PYTHON_VERSION} -lc -ldl -lm -lexpat -lffi -lintl -lssl -lcrypto"

fi

if test "@platform_os@" = "osx" ; then
  # Xcode 8 + 10.11, clock_gettime and getentropy is present
  # in 10.12 but will get wrongly detected if building on 10.11
  ac_cv_search_clock_gettime=no
  ac_cv_func_clock_gettime=no
  ac_cv_func_getentropy=no
fi


if test "@platform_os@" = "darwin_embedded"; then
  # Xcode 8 + 10.11, clock_gettime and getentropy is present
  # in 10.12 but will get wrongly detected if building on 10.11
  ac_cv_search_clock_gettime=no
  ac_cv_func_clock_gettime=no
  ac_cv_func_getentropy=no

  # tweaks for libffi
  if test "${PACKAGE_NAME}" = "libffi" ; then
    if test "@use_cpu@" = "arm64"; then
      host_alias=aarch64-apple-darwin
    fi
  fi

  # tweaks for flac
  if test "${ac_unique_file}" = "src/flac/main.c" ; then
    # compiler barfs if we use -O3/O2 for flac
    export CFLAGS=`echo ${CFLAGS} | sed 's/-O3/-Os/'`
    export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-O3/-Os/'`
  fi
fi

#Fix for older, broken android toolchains
if test "${PACKAGE_NAME}" = "FreeType" -a "@platform_os@" = "android"; then
  CFLAGS="$CFLAGS -std=gnu99"
fi

# These libs do not correctly export their symbols. Force them in case
# -fvisibility=hidden is set.
if test "${ac_unique_file}" = "src/flac/main.c" || \
   test "${ac_unique_file}" = "src/framing.c" || \
   test "${ac_unique_file}" = "src/libdvdcss.c" || \
   test "${PACKAGE_NAME}" = "libssh2" ; then
     CFLAGS="$CFLAGS -fvisibility=default"
fi