freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][no-ac-sizeof] Update configure.raw


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][no-ac-sizeof] Update configure.raw
Date: Sun, 29 Aug 2021 15:34:57 +0000

Alexei Podtelezhnikov pushed to branch no-ac-sizeof at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • builds/unix/configure.raw
    ... ... @@ -100,82 +100,6 @@ esac
    100 100
     AC_CHECK_HEADERS([fcntl.h unistd.h])
    
    101 101
     
    
    102 102
     
    
    103
    -# checks for typedefs, structures, and compiler characteristics
    
    104
    -
    
    105
    -AC_C_CONST
    
    106
    -AC_CHECK_SIZEOF([int])
    
    107
    -AC_CHECK_SIZEOF([long])
    
    108
    -AC_TYPE_LONG_LONG_INT
    
    109
    -
    
    110
    -
    
    111
    -# check whether cpp computation of size of int and long in ftconfig.h.in works
    
    112
    -
    
    113
    -AC_MSG_CHECKING([whether cpp computation of bit length in ftconfig.h.in works])
    
    114
    -orig_CPPFLAGS="${CPPFLAGS}"
    
    115
    -CPPFLAGS="-I${srcdir} -I. -I${srcdir}/../../include ${CPPFLAGS}"
    
    116
    -
    
    117
    -ac_clean_files=
    
    118
    -if test ! -f ft2build.h; then
    
    119
    -  ac_clean_files=ft2build.h
    
    120
    -  touch ft2build.h
    
    121
    -fi
    
    122
    -
    
    123
    -cat > conftest.c <<\_ACEOF
    
    124
    -#include <limits.h>
    
    125
    -#define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h>
    
    126
    -#define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h>
    
    127
    -#define FT_UINT_MAX  UINT_MAX
    
    128
    -#define FT_ULONG_MAX ULONG_MAX
    
    129
    -#include "ftconfig.h.in"
    
    130
    -_ACEOF
    
    131
    -echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
    
    132
    -echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
    
    133
    -echo >> conftest.c "#endif"
    
    134
    -echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
    
    135
    -echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
    
    136
    -echo >> conftest.c "#endif"
    
    137
    -
    
    138
    -${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
    
    139
    -eval `cat conftest.sh`
    
    140
    -rm -f conftest.* $ac_clean_files
    
    141
    -
    
    142
    -if test x != "x${ac_cpp_ft_sizeof_int}" \
    
    143
    -   -a x != x"${ac_cpp_ft_sizeof_long}"; then
    
    144
    -  unset ft_use_autoconf_sizeof_types
    
    145
    -else
    
    146
    -  ft_use_autoconf_sizeof_types=yes
    
    147
    -fi
    
    148
    -
    
    149
    -AC_ARG_ENABLE(biarch-config,
    
    150
    -[  --enable-biarch-config  install biarch ftconfig.h to support multiple
    
    151
    -                          architectures by single file], [], [])
    
    152
    -
    
    153
    -case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
    
    154
    -  :yes:yes:)
    
    155
    -    AC_MSG_RESULT([broken but use it])
    
    156
    -    unset ft_use_autoconf_sizeof_types
    
    157
    -    ;;
    
    158
    -  ::no:)
    
    159
    -    AC_MSG_RESULT([works but ignore it])
    
    160
    -    ft_use_autoconf_sizeof_types=yes
    
    161
    -    ;;
    
    162
    -  ::yes: | :::)
    
    163
    -    AC_MSG_RESULT([yes])
    
    164
    -    unset ft_use_autoconf_sizeof_types
    
    165
    -    ;;
    
    166
    -  *)
    
    167
    -    AC_MSG_RESULT([no])
    
    168
    -    ft_use_autoconf_sizeof_types=yes
    
    169
    -    ;;
    
    170
    -esac
    
    171
    -
    
    172
    -if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
    
    173
    -  AC_DEFINE([FT_USE_AUTOCONF_SIZEOF_TYPES], [],
    
    174
    -            [Define if autoconf sizeof types should be used.])
    
    175
    -fi
    
    176
    -
    
    177
    -CPPFLAGS="${orig_CPPFLAGS}"
    
    178
    -
    
    179 103
     AC_ARG_ENABLE([freetype-config],
    
    180 104
       AS_HELP_STRING([--enable-freetype-config], [install freetype-config]),
    
    181 105
       [case "${enableval}" in
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]