test/configure
changeset 11365 a9bd2625fa01
parent 10924 abfe0c4d98ac
child 11369 78b2c58e31da
     1.1 --- a/test/configure	Sun Aug 27 19:10:30 2017 -0700
     1.2 +++ b/test/configure	Sun Aug 27 22:15:57 2017 -0400
     1.3 @@ -195,7 +195,8 @@
     1.4    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
     1.5    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     1.6    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     1.7 -  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
     1.8 +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     1.9 +test \$(( 1 + 1 )) = 2 || exit 1"
    1.10    if (eval "$as_required") 2>/dev/null; then :
    1.11    as_have_required=yes
    1.12  else
    1.13 @@ -582,9 +583,47 @@
    1.14  PACKAGE_URL=
    1.15  
    1.16  ac_unique_file="README"
    1.17 +# Factoring default headers for most tests.
    1.18 +ac_includes_default="\
    1.19 +#include <stdio.h>
    1.20 +#ifdef HAVE_SYS_TYPES_H
    1.21 +# include <sys/types.h>
    1.22 +#endif
    1.23 +#ifdef HAVE_SYS_STAT_H
    1.24 +# include <sys/stat.h>
    1.25 +#endif
    1.26 +#ifdef STDC_HEADERS
    1.27 +# include <stdlib.h>
    1.28 +# include <stddef.h>
    1.29 +#else
    1.30 +# ifdef HAVE_STDLIB_H
    1.31 +#  include <stdlib.h>
    1.32 +# endif
    1.33 +#endif
    1.34 +#ifdef HAVE_STRING_H
    1.35 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    1.36 +#  include <memory.h>
    1.37 +# endif
    1.38 +# include <string.h>
    1.39 +#endif
    1.40 +#ifdef HAVE_STRINGS_H
    1.41 +# include <strings.h>
    1.42 +#endif
    1.43 +#ifdef HAVE_INTTYPES_H
    1.44 +# include <inttypes.h>
    1.45 +#endif
    1.46 +#ifdef HAVE_STDINT_H
    1.47 +# include <stdint.h>
    1.48 +#endif
    1.49 +#ifdef HAVE_UNISTD_H
    1.50 +# include <unistd.h>
    1.51 +#endif"
    1.52 +
    1.53  ac_subst_vars='LTLIBOBJS
    1.54  LIBOBJS
    1.55  SDL_TTF_LIB
    1.56 +EGREP
    1.57 +GREP
    1.58  XLIB
    1.59  GLES2LIB
    1.60  GLESLIB
    1.61 @@ -637,6 +676,7 @@
    1.62  docdir
    1.63  oldincludedir
    1.64  includedir
    1.65 +runstatedir
    1.66  localstatedir
    1.67  sharedstatedir
    1.68  sysconfdir
    1.69 @@ -717,6 +757,7 @@
    1.70  sysconfdir='${prefix}/etc'
    1.71  sharedstatedir='${prefix}/com'
    1.72  localstatedir='${prefix}/var'
    1.73 +runstatedir='${localstatedir}/run'
    1.74  includedir='${prefix}/include'
    1.75  oldincludedir='/usr/include'
    1.76  docdir='${datarootdir}/doc/${PACKAGE}'
    1.77 @@ -969,6 +1010,15 @@
    1.78    | -silent | --silent | --silen | --sile | --sil)
    1.79      silent=yes ;;
    1.80  
    1.81 +  -runstatedir | --runstatedir | --runstatedi | --runstated \
    1.82 +  | --runstate | --runstat | --runsta | --runst | --runs \
    1.83 +  | --run | --ru | --r)
    1.84 +    ac_prev=runstatedir ;;
    1.85 +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
    1.86 +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
    1.87 +  | --run=* | --ru=* | --r=*)
    1.88 +    runstatedir=$ac_optarg ;;
    1.89 +
    1.90    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    1.91      ac_prev=sbindir ;;
    1.92    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    1.93 @@ -1106,7 +1156,7 @@
    1.94  for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
    1.95  		datadir sysconfdir sharedstatedir localstatedir includedir \
    1.96  		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
    1.97 -		libdir localedir mandir
    1.98 +		libdir localedir mandir runstatedir
    1.99  do
   1.100    eval ac_val=\$$ac_var
   1.101    # Remove trailing slashes.
   1.102 @@ -1259,6 +1309,7 @@
   1.103    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1.104    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1.105    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1.106 +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1.107    --libdir=DIR            object code libraries [EPREFIX/lib]
   1.108    --includedir=DIR        C header files [PREFIX/include]
   1.109    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1.110 @@ -1563,6 +1614,124 @@
   1.111    as_fn_set_status $ac_retval
   1.112  
   1.113  } # ac_fn_c_try_cpp
   1.114 +
   1.115 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1.116 +# -------------------------------------------------------
   1.117 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1.118 +# the include files in INCLUDES and setting the cache variable VAR
   1.119 +# accordingly.
   1.120 +ac_fn_c_check_header_mongrel ()
   1.121 +{
   1.122 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.123 +  if eval \${$3+:} false; then :
   1.124 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.125 +$as_echo_n "checking for $2... " >&6; }
   1.126 +if eval \${$3+:} false; then :
   1.127 +  $as_echo_n "(cached) " >&6
   1.128 +fi
   1.129 +eval ac_res=\$$3
   1.130 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.131 +$as_echo "$ac_res" >&6; }
   1.132 +else
   1.133 +  # Is the header compilable?
   1.134 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1.135 +$as_echo_n "checking $2 usability... " >&6; }
   1.136 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.137 +/* end confdefs.h.  */
   1.138 +$4
   1.139 +#include <$2>
   1.140 +_ACEOF
   1.141 +if ac_fn_c_try_compile "$LINENO"; then :
   1.142 +  ac_header_compiler=yes
   1.143 +else
   1.144 +  ac_header_compiler=no
   1.145 +fi
   1.146 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.147 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1.148 +$as_echo "$ac_header_compiler" >&6; }
   1.149 +
   1.150 +# Is the header present?
   1.151 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1.152 +$as_echo_n "checking $2 presence... " >&6; }
   1.153 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.154 +/* end confdefs.h.  */
   1.155 +#include <$2>
   1.156 +_ACEOF
   1.157 +if ac_fn_c_try_cpp "$LINENO"; then :
   1.158 +  ac_header_preproc=yes
   1.159 +else
   1.160 +  ac_header_preproc=no
   1.161 +fi
   1.162 +rm -f conftest.err conftest.i conftest.$ac_ext
   1.163 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1.164 +$as_echo "$ac_header_preproc" >&6; }
   1.165 +
   1.166 +# So?  What about this header?
   1.167 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1.168 +  yes:no: )
   1.169 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1.170 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1.171 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1.172 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1.173 +    ;;
   1.174 +  no:yes:* )
   1.175 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1.176 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1.177 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1.178 +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1.179 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1.180 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1.181 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1.182 +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1.183 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1.184 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1.185 +    ;;
   1.186 +esac
   1.187 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.188 +$as_echo_n "checking for $2... " >&6; }
   1.189 +if eval \${$3+:} false; then :
   1.190 +  $as_echo_n "(cached) " >&6
   1.191 +else
   1.192 +  eval "$3=\$ac_header_compiler"
   1.193 +fi
   1.194 +eval ac_res=\$$3
   1.195 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.196 +$as_echo "$ac_res" >&6; }
   1.197 +fi
   1.198 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.199 +
   1.200 +} # ac_fn_c_check_header_mongrel
   1.201 +
   1.202 +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1.203 +# -------------------------------------------------------
   1.204 +# Tests whether HEADER exists and can be compiled using the include files in
   1.205 +# INCLUDES, setting the cache variable VAR accordingly.
   1.206 +ac_fn_c_check_header_compile ()
   1.207 +{
   1.208 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1.209 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1.210 +$as_echo_n "checking for $2... " >&6; }
   1.211 +if eval \${$3+:} false; then :
   1.212 +  $as_echo_n "(cached) " >&6
   1.213 +else
   1.214 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.215 +/* end confdefs.h.  */
   1.216 +$4
   1.217 +#include <$2>
   1.218 +_ACEOF
   1.219 +if ac_fn_c_try_compile "$LINENO"; then :
   1.220 +  eval "$3=yes"
   1.221 +else
   1.222 +  eval "$3=no"
   1.223 +fi
   1.224 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.225 +fi
   1.226 +eval ac_res=\$$3
   1.227 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1.228 +$as_echo "$ac_res" >&6; }
   1.229 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1.230 +
   1.231 +} # ac_fn_c_check_header_compile
   1.232  cat >config.log <<_ACEOF
   1.233  This file contains any messages produced by compilers while
   1.234  running configure, to aid debugging if configure makes a mistake.
   1.235 @@ -3919,6 +4088,289 @@
   1.236  
   1.237  
   1.238  
   1.239 +have_vulkan_hdr=no
   1.240 +vsdk_include_dir="${VULKAN_SDK}/include"
   1.241 +vulkan_header="vulkan/vulkan.h"
   1.242 +save_CPPFLAGS="$CPPFLAGS"
   1.243 +CPPFLAGS="${save_CPPFLAGS} -I$vsdk_include_dir"
   1.244 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   1.245 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   1.246 +if ${ac_cv_path_GREP+:} false; then :
   1.247 +  $as_echo_n "(cached) " >&6
   1.248 +else
   1.249 +  if test -z "$GREP"; then
   1.250 +  ac_path_GREP_found=false
   1.251 +  # Loop through the user's path and test for each of PROGNAME-LIST
   1.252 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.253 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   1.254 +do
   1.255 +  IFS=$as_save_IFS
   1.256 +  test -z "$as_dir" && as_dir=.
   1.257 +    for ac_prog in grep ggrep; do
   1.258 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.259 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   1.260 +      as_fn_executable_p "$ac_path_GREP" || continue
   1.261 +# Check for GNU ac_path_GREP and select it if it is found.
   1.262 +  # Check for GNU $ac_path_GREP
   1.263 +case `"$ac_path_GREP" --version 2>&1` in
   1.264 +*GNU*)
   1.265 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   1.266 +*)
   1.267 +  ac_count=0
   1.268 +  $as_echo_n 0123456789 >"conftest.in"
   1.269 +  while :
   1.270 +  do
   1.271 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
   1.272 +    mv "conftest.tmp" "conftest.in"
   1.273 +    cp "conftest.in" "conftest.nl"
   1.274 +    $as_echo 'GREP' >> "conftest.nl"
   1.275 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   1.276 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   1.277 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
   1.278 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
   1.279 +      # Best one so far, save it but keep looking for a better one
   1.280 +      ac_cv_path_GREP="$ac_path_GREP"
   1.281 +      ac_path_GREP_max=$ac_count
   1.282 +    fi
   1.283 +    # 10*(2^10) chars as input seems more than enough
   1.284 +    test $ac_count -gt 10 && break
   1.285 +  done
   1.286 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   1.287 +esac
   1.288 +
   1.289 +      $ac_path_GREP_found && break 3
   1.290 +    done
   1.291 +  done
   1.292 +  done
   1.293 +IFS=$as_save_IFS
   1.294 +  if test -z "$ac_cv_path_GREP"; then
   1.295 +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   1.296 +  fi
   1.297 +else
   1.298 +  ac_cv_path_GREP=$GREP
   1.299 +fi
   1.300 +
   1.301 +fi
   1.302 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   1.303 +$as_echo "$ac_cv_path_GREP" >&6; }
   1.304 + GREP="$ac_cv_path_GREP"
   1.305 +
   1.306 +
   1.307 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   1.308 +$as_echo_n "checking for egrep... " >&6; }
   1.309 +if ${ac_cv_path_EGREP+:} false; then :
   1.310 +  $as_echo_n "(cached) " >&6
   1.311 +else
   1.312 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   1.313 +   then ac_cv_path_EGREP="$GREP -E"
   1.314 +   else
   1.315 +     if test -z "$EGREP"; then
   1.316 +  ac_path_EGREP_found=false
   1.317 +  # Loop through the user's path and test for each of PROGNAME-LIST
   1.318 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1.319 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   1.320 +do
   1.321 +  IFS=$as_save_IFS
   1.322 +  test -z "$as_dir" && as_dir=.
   1.323 +    for ac_prog in egrep; do
   1.324 +    for ac_exec_ext in '' $ac_executable_extensions; do
   1.325 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   1.326 +      as_fn_executable_p "$ac_path_EGREP" || continue
   1.327 +# Check for GNU ac_path_EGREP and select it if it is found.
   1.328 +  # Check for GNU $ac_path_EGREP
   1.329 +case `"$ac_path_EGREP" --version 2>&1` in
   1.330 +*GNU*)
   1.331 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   1.332 +*)
   1.333 +  ac_count=0
   1.334 +  $as_echo_n 0123456789 >"conftest.in"
   1.335 +  while :
   1.336 +  do
   1.337 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
   1.338 +    mv "conftest.tmp" "conftest.in"
   1.339 +    cp "conftest.in" "conftest.nl"
   1.340 +    $as_echo 'EGREP' >> "conftest.nl"
   1.341 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   1.342 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   1.343 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
   1.344 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   1.345 +      # Best one so far, save it but keep looking for a better one
   1.346 +      ac_cv_path_EGREP="$ac_path_EGREP"
   1.347 +      ac_path_EGREP_max=$ac_count
   1.348 +    fi
   1.349 +    # 10*(2^10) chars as input seems more than enough
   1.350 +    test $ac_count -gt 10 && break
   1.351 +  done
   1.352 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   1.353 +esac
   1.354 +
   1.355 +      $ac_path_EGREP_found && break 3
   1.356 +    done
   1.357 +  done
   1.358 +  done
   1.359 +IFS=$as_save_IFS
   1.360 +  if test -z "$ac_cv_path_EGREP"; then
   1.361 +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   1.362 +  fi
   1.363 +else
   1.364 +  ac_cv_path_EGREP=$EGREP
   1.365 +fi
   1.366 +
   1.367 +   fi
   1.368 +fi
   1.369 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   1.370 +$as_echo "$ac_cv_path_EGREP" >&6; }
   1.371 + EGREP="$ac_cv_path_EGREP"
   1.372 +
   1.373 +
   1.374 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   1.375 +$as_echo_n "checking for ANSI C header files... " >&6; }
   1.376 +if ${ac_cv_header_stdc+:} false; then :
   1.377 +  $as_echo_n "(cached) " >&6
   1.378 +else
   1.379 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.380 +/* end confdefs.h.  */
   1.381 +#include <stdlib.h>
   1.382 +#include <stdarg.h>
   1.383 +#include <string.h>
   1.384 +#include <float.h>
   1.385 +
   1.386 +int
   1.387 +main ()
   1.388 +{
   1.389 +
   1.390 +  ;
   1.391 +  return 0;
   1.392 +}
   1.393 +_ACEOF
   1.394 +if ac_fn_c_try_compile "$LINENO"; then :
   1.395 +  ac_cv_header_stdc=yes
   1.396 +else
   1.397 +  ac_cv_header_stdc=no
   1.398 +fi
   1.399 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.400 +
   1.401 +if test $ac_cv_header_stdc = yes; then
   1.402 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   1.403 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.404 +/* end confdefs.h.  */
   1.405 +#include <string.h>
   1.406 +
   1.407 +_ACEOF
   1.408 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   1.409 +  $EGREP "memchr" >/dev/null 2>&1; then :
   1.410 +
   1.411 +else
   1.412 +  ac_cv_header_stdc=no
   1.413 +fi
   1.414 +rm -f conftest*
   1.415 +
   1.416 +fi
   1.417 +
   1.418 +if test $ac_cv_header_stdc = yes; then
   1.419 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   1.420 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.421 +/* end confdefs.h.  */
   1.422 +#include <stdlib.h>
   1.423 +
   1.424 +_ACEOF
   1.425 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   1.426 +  $EGREP "free" >/dev/null 2>&1; then :
   1.427 +
   1.428 +else
   1.429 +  ac_cv_header_stdc=no
   1.430 +fi
   1.431 +rm -f conftest*
   1.432 +
   1.433 +fi
   1.434 +
   1.435 +if test $ac_cv_header_stdc = yes; then
   1.436 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   1.437 +  if test "$cross_compiling" = yes; then :
   1.438 +  :
   1.439 +else
   1.440 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1.441 +/* end confdefs.h.  */
   1.442 +#include <ctype.h>
   1.443 +#include <stdlib.h>
   1.444 +#if ((' ' & 0x0FF) == 0x020)
   1.445 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   1.446 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   1.447 +#else
   1.448 +# define ISLOWER(c) \
   1.449 +		   (('a' <= (c) && (c) <= 'i') \
   1.450 +		     || ('j' <= (c) && (c) <= 'r') \
   1.451 +		     || ('s' <= (c) && (c) <= 'z'))
   1.452 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   1.453 +#endif
   1.454 +
   1.455 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   1.456 +int
   1.457 +main ()
   1.458 +{
   1.459 +  int i;
   1.460 +  for (i = 0; i < 256; i++)
   1.461 +    if (XOR (islower (i), ISLOWER (i))
   1.462 +	|| toupper (i) != TOUPPER (i))
   1.463 +      return 2;
   1.464 +  return 0;
   1.465 +}
   1.466 +_ACEOF
   1.467 +if ac_fn_c_try_run "$LINENO"; then :
   1.468 +
   1.469 +else
   1.470 +  ac_cv_header_stdc=no
   1.471 +fi
   1.472 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1.473 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
   1.474 +fi
   1.475 +
   1.476 +fi
   1.477 +fi
   1.478 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   1.479 +$as_echo "$ac_cv_header_stdc" >&6; }
   1.480 +if test $ac_cv_header_stdc = yes; then
   1.481 +
   1.482 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
   1.483 +
   1.484 +fi
   1.485 +
   1.486 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
   1.487 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   1.488 +		  inttypes.h stdint.h unistd.h
   1.489 +do :
   1.490 +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   1.491 +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   1.492 +"
   1.493 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   1.494 +  cat >>confdefs.h <<_ACEOF
   1.495 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   1.496 +_ACEOF
   1.497 +
   1.498 +fi
   1.499 +
   1.500 +done
   1.501 +
   1.502 +
   1.503 +as_ac_Header=`$as_echo "ac_cv_header_$vulkan_header" | $as_tr_sh`
   1.504 +ac_fn_c_check_header_mongrel "$LINENO" "$vulkan_header" "$as_ac_Header" "$ac_includes_default"
   1.505 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   1.506 +  have_vulkan_hdr=yes
   1.507 +else
   1.508 +  have_vulkan_hdr=no
   1.509 +fi
   1.510 +
   1.511 +
   1.512 +CPPFLAGS="$save_CPPFLAGS"
   1.513 +if test x$have_vulkan_hdr = xyes; then
   1.514 +    # vulkan.h has been found in either $VULKAN_SDK/include or along the
   1.515 +    # the standard include path. Unfortunately there seems no easy
   1.516 +    # way to find out which, so...
   1.517 +    if test -n "$VULKAN_SDK" -a -f "$vsdk_include_dir/$vulkan_header"; then
   1.518 +        CFLAGS="$CFLAGS -I$vsdk_include_dir"
   1.519 +    fi
   1.520 +fi
   1.521 +
   1.522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
   1.523  $as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
   1.524  if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :