configure
changeset 11408 0783887749f6
parent 11395 a8c29f5b679f
child 11409 3a5c77515d55
equal deleted inserted replaced
11407:ff9e8ae4d4fb 11408:0783887749f6
   743 htmldir
   743 htmldir
   744 infodir
   744 infodir
   745 docdir
   745 docdir
   746 oldincludedir
   746 oldincludedir
   747 includedir
   747 includedir
   748 runstatedir
       
   749 localstatedir
   748 localstatedir
   750 sharedstatedir
   749 sharedstatedir
   751 sysconfdir
   750 sysconfdir
   752 datadir
   751 datadir
   753 datarootdir
   752 datarootdir
   920 datarootdir='${prefix}/share'
   919 datarootdir='${prefix}/share'
   921 datadir='${datarootdir}'
   920 datadir='${datarootdir}'
   922 sysconfdir='${prefix}/etc'
   921 sysconfdir='${prefix}/etc'
   923 sharedstatedir='${prefix}/com'
   922 sharedstatedir='${prefix}/com'
   924 localstatedir='${prefix}/var'
   923 localstatedir='${prefix}/var'
   925 runstatedir='${localstatedir}/run'
       
   926 includedir='${prefix}/include'
   924 includedir='${prefix}/include'
   927 oldincludedir='/usr/include'
   925 oldincludedir='/usr/include'
   928 docdir='${datarootdir}/doc/${PACKAGE}'
   926 docdir='${datarootdir}/doc/${PACKAGE}'
   929 infodir='${datarootdir}/info'
   927 infodir='${datarootdir}/info'
   930 htmldir='${docdir}'
   928 htmldir='${docdir}'
  1173 
  1171 
  1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1172   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1175   | -silent | --silent | --silen | --sile | --sil)
  1173   | -silent | --silent | --silen | --sile | --sil)
  1176     silent=yes ;;
  1174     silent=yes ;;
  1177 
  1175 
  1178   -runstatedir | --runstatedir | --runstatedi | --runstated \
       
  1179   | --runstate | --runstat | --runsta | --runst | --runs \
       
  1180   | --run | --ru | --r)
       
  1181     ac_prev=runstatedir ;;
       
  1182   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
       
  1183   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
       
  1184   | --run=* | --ru=* | --r=*)
       
  1185     runstatedir=$ac_optarg ;;
       
  1186 
       
  1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1176   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1188     ac_prev=sbindir ;;
  1177     ac_prev=sbindir ;;
  1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1178   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1190   | --sbi=* | --sb=*)
  1179   | --sbi=* | --sb=*)
  1191     sbindir=$ac_optarg ;;
  1180     sbindir=$ac_optarg ;;
  1319 
  1308 
  1320 # Check all directory arguments for consistency.
  1309 # Check all directory arguments for consistency.
  1321 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1310 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1322 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1311 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1323 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1312 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1324 		libdir localedir mandir runstatedir
  1313 		libdir localedir mandir
  1325 do
  1314 do
  1326   eval ac_val=\$$ac_var
  1315   eval ac_val=\$$ac_var
  1327   # Remove trailing slashes.
  1316   # Remove trailing slashes.
  1328   case $ac_val in
  1317   case $ac_val in
  1329     */ )
  1318     */ )
  1472   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1461   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1473   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1462   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1474   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1463   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1475   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1464   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1476   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1465   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1477   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
       
  1478   --libdir=DIR            object code libraries [EPREFIX/lib]
  1466   --libdir=DIR            object code libraries [EPREFIX/lib]
  1479   --includedir=DIR        C header files [PREFIX/include]
  1467   --includedir=DIR        C header files [PREFIX/include]
  1480   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1468   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1481   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1469   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1482   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1470   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 21919         case "$host" in
 21907         case "$host" in
 21920             *-*-androideabi*)
 21908             *-*-androideabi*)
 21921                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21909                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21922 /* end confdefs.h.  */
 21910 /* end confdefs.h.  */
 21923 
 21911 
 21924                   #if defined(__ANDROID__) && defined(__ARM_EABI__) && !defined(__ARM_ARCH_7A__)
 21912                   #if defined(__ARM_ARCH) && __ARM_ARCH < 7
 21925                   #error Vulkan doesn't work on this configuration
 21913                   #error Vulkan doesn't work on this configuration
 21926                   #endif
 21914                   #endif
 21927                   int main()
       
 21928                   {
       
 21929                      return 0;
       
 21930                   }
       
 21931 
 21915 
 21932 int
 21916 int
 21933 main ()
 21917 main ()
 21934 {
 21918 {
 21935 
 21919 
 21936                     enable_video_vulkan=no
       
 21937 
 21920 
 21938   ;
 21921   ;
 21939   return 0;
 21922   return 0;
 21940 }
 21923 }
 21941 _ACEOF
 21924 _ACEOF
 21942 if ac_fn_c_try_compile "$LINENO"; then :
 21925 if ac_fn_c_try_compile "$LINENO"; then :
 21943 
 21926 
 21944 
 21927 
       
 21928 else
       
 21929 
       
 21930                     enable_video_vulkan=no
       
 21931 
 21945 fi
 21932 fi
 21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21934                 ;;
       
 21935             *-*-darwin*)
       
 21936                 save_CFLAGS="$CFLAGS"
       
 21937                                 CFLAGS="$CFLAGS -x objective-c"
       
 21938                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 21939 /* end confdefs.h.  */
       
 21940 
       
 21941                   #include <Cocoa/Cocoa.h>
       
 21942                   #include <Metal/Metal.h>
       
 21943                   #include <QuartzCore/CAMetalLayer.h>
       
 21944 
       
 21945                   #if !TARGET_CPU_X86_64
       
 21946                   #error Vulkan doesn't work on this configuration
       
 21947                   #endif
       
 21948 
       
 21949 int
       
 21950 main ()
       
 21951 {
       
 21952 
       
 21953 
       
 21954   ;
       
 21955   return 0;
       
 21956 }
       
 21957 _ACEOF
       
 21958 if ac_fn_c_try_compile "$LINENO"; then :
       
 21959 
       
 21960 
       
 21961 else
       
 21962 
       
 21963                     enable_video_vulkan=no
       
 21964 
       
 21965 fi
       
 21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21967                 CFLAGS="$save_CFLAGS"
 21947                 ;;
 21968                 ;;
 21948             *)
 21969             *)
 21949                 ;;
 21970                 ;;
 21950         esac
 21971         esac
 21951         if test x$enable_video_vulkan = xno; then
 21972         if test x$enable_video_vulkan = xno; then
 21952             # For reasons I am totally unable to see, I get an undefined macro error if
 21973             # For reasons I am totally unable to see, I get an undefined macro error if
 21953             # I put this in the AC_TRY_COMPILE.
 21974             # I put this in the AC_TRY_COMPILE.
 21954             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, Vulkan does not work on this configuration." >&5
 21975             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
 21955 $as_echo "$as_me: WARNING: Sorry, Vulkan does not work on this configuration." >&2;}
 21976 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
 21956         fi
 21977         fi
 21957     fi
 21978     fi
 21958     if test x$enable_video_vulkan = xyes; then
 21979     if test x$enable_video_vulkan = xyes; then
 21959 
 21980 
 21960 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
 21981 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h