1 if test "@cross_compiling@" = "yes"; then
18 if test "@platform_os@" = "darwin_embedded" ; then
19 export AS="@prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
20 export CCAS="--tag CC @prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
23 ASFLAGS="@platform_asflags@"
24 CFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CFLAGS"
25 LDFLAGS="-L@prefix@/@deps_dir@/lib @platform_ldflags@ $LDFLAGS"
26 CXXFLAGS="@platform_cxxflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CXXFLAGS"
27 CPPFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CPPFLAGS"
29 export PKG_CONFIG=@prefix@/@tool_dir@/bin/pkg-config
30 export PKG_CONFIG_LIBDIR=@prefix@/@deps_dir@/lib/pkgconfig
31 export NASM=@prefix@/@tool_dir@/bin/nasm
32 LIBGCRYPT_CONFIG=@prefix@/@deps_dir@/bin/libgcrypt-config
34 PATH=@prefix@/@tool_dir@/bin:@use_toolchain@/usr/bin:@use_toolchain@/bin:$PATH
35 LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH
37 NATIVE_ROOT=@prefix@/@tool_dir@
40 ac_cv_file__dev_urandom=yes
41 ac_cv_lib_ssl_SSL_connect=yes
44 gl_cv_header_working_stdint_h=yes
47 ac_cv_search_dlopen=-ldl
50 ac_cv_func_gethostbyname_r=no
51 ac_cv_header_sys_un_h=yes
52 ac_cv_file__dev_ptmx=no
53 ac_cv_file__dev_ptc=no
56 gl_cv_func_gettimeofday_clobber=no
59 if test "${PACKAGE_NAME}" = "wayland"; then
60 # wayland insists on building tests which rely on assert, which cannot work with -DNDEBUG
61 # Maybe it would be better not to define -DNDEBUG globally for release builds?
62 export CFLAGS=`echo ${CFLAGS} | sed 's/-DNDEBUG=1//g'`
63 export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-DNDEBUG=1//g'`
67 if test "@platform_os@" = "android"; then
72 if test "@platform_os@" = "darwin_embedded"; then
73 # there is no clock_settime on iOS/tvOS as of latest version 13.X
74 ac_cv_func_clock_settime=no
77 if test "${ac_unique_file}" = "src/flac/main.c" ; then
78 # compiler barfs if we use -O3/O2 for flac
79 export CFLAGS=`echo ${CFLAGS} | sed 's/-O3/-Os/'`
80 export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-O3/-Os/'`
84 if test "@target_platform@" = "appletvos"; then
85 ac_cv_func_sigaltstack=no
86 ac_cv_func_vfork_works=no
90 #Fix for older, broken android toolchains
91 if test "${PACKAGE_NAME}" = "FreeType" -a "@platform_os@" = "android"; then
92 CFLAGS="$CFLAGS -std=gnu99"
95 # These libs do not correctly export their symbols. Force them in case
96 # -fvisibility=hidden is set.
97 if test "${ac_unique_file}" = "src/flac/main.c" || \
98 test "${ac_unique_file}" = "src/framing.c" || \
99 test "${ac_unique_file}" = "src/libdvdcss.c" || \
100 test "${PACKAGE_NAME}" = "libssh2" ; then
101 CFLAGS="$CFLAGS -fvisibility=default"