configure
changeset 12714 9b7633bd0aa0
parent 12708 f6193f829c8a
child 12762 0fa532733f3f
     1.1 --- a/configure	Sun Apr 07 23:01:07 2019 +1000
     1.2 +++ b/configure	Tue Apr 23 07:59:31 2019 -0700
     1.3 @@ -651,6 +651,7 @@
     1.4  SDL_STATIC_LIBS
     1.5  SDL_LIBS
     1.6  SDL_CFLAGS
     1.7 +INSTALL_SDL2_CONFIG
     1.8  LIBUSB_LIBS
     1.9  LIBUSB_CFLAGS
    1.10  FCITX_LIBS
    1.11 @@ -896,6 +897,7 @@
    1.12  enable_backgrounding_signal
    1.13  enable_foregrounding_signal
    1.14  enable_render_d3d
    1.15 +enable_sdl2_config
    1.16  '
    1.17        ac_precious_vars='build_alias
    1.18  host_alias
    1.19 @@ -1684,6 +1686,7 @@
    1.20                            number to use for magic foregrounding signal or 'no'
    1.21                            [[default=no]]
    1.22    --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
    1.23 +  --enable-sdl2-config    Install sdl2-config [default=yes]
    1.24  
    1.25  Optional Packages:
    1.26    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    1.27 @@ -16969,7 +16972,7 @@
    1.28  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.29  fi
    1.30  
    1.31 -    for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
    1.32 +    for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
    1.33  do :
    1.34    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    1.35  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    1.36 @@ -25165,6 +25168,30 @@
    1.37          ;;
    1.38  esac
    1.39  
    1.40 +# Check whether to install sdl2-config
    1.41 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
    1.42 +$as_echo_n "checking whether to install sdl2-config... " >&6; }
    1.43 +# Check whether --enable-sdl2-config was given.
    1.44 +if test "${enable_sdl2_config+set}" = set; then :
    1.45 +  enableval=$enable_sdl2_config; case "${enableval}" in
    1.46 +        yes) enable_sdl2_config="TRUE" ;;
    1.47 +        no) enable_sdl2_config="FALSE" ;;
    1.48 +        *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
    1.49 +    esac
    1.50 +else
    1.51 +  enable_sdl2_config="TRUE"
    1.52 +fi
    1.53 +
    1.54 +if test "$enable_sdl2_config" = "TRUE"; then
    1.55 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    1.56 +$as_echo "yes" >&6; }
    1.57 +else
    1.58 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    1.59 +$as_echo "no" >&6; }
    1.60 +fi
    1.61 +INSTALL_SDL2_CONFIG=$enable_sdl2_config
    1.62 +
    1.63 +
    1.64  # Verify that we have all the platform specific files we need
    1.65  
    1.66  if test x$have_joystick != xyes; then