comparison configure.in @ 1:cf2af46e9e2a

Changes since SDL 1.2.0 release
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:50:19 +0000
parents 74212992fb08
children 735e5a8696d0
comparison
equal deleted inserted replaced
0:74212992fb08 1:cf2af46e9e2a
12 # if backwards compatibility has been broken, 12 # if backwards compatibility has been broken,
13 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 13 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
14 # 14 #
15 SDL_MAJOR_VERSION=1 15 SDL_MAJOR_VERSION=1
16 SDL_MINOR_VERSION=2 16 SDL_MINOR_VERSION=2
17 SDL_MICRO_VERSION=0 17 SDL_MICRO_VERSION=1
18 SDL_INTERFACE_AGE=0 18 SDL_INTERFACE_AGE=1
19 SDL_BINARY_AGE=0 19 SDL_BINARY_AGE=1
20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
21 21
22 AC_SUBST(SDL_MAJOR_VERSION) 22 AC_SUBST(SDL_MAJOR_VERSION)
23 AC_SUBST(SDL_MINOR_VERSION) 23 AC_SUBST(SDL_MINOR_VERSION)
24 AC_SUBST(SDL_MICRO_VERSION) 24 AC_SUBST(SDL_MICRO_VERSION)
248 #ifdef __FreeBSD__ 248 #ifdef __FreeBSD__
249 #include <machine/soundcard.h> 249 #include <machine/soundcard.h>
250 #endif 250 #endif
251 #ifdef __bsdi__ 251 #ifdef __bsdi__
252 #include <sys/soundcard.h> 252 #include <sys/soundcard.h>
253 #endif
254 #ifdef __OpenBSD__
255 #include <soundcard.h>
253 #endif 256 #endif
254 #ifdef __USLC__ 257 #ifdef __USLC__
255 #include <sys/soundcard.h> 258 #include <sys/soundcard.h>
256 #endif 259 #endif
257 ],[ 260 ],[
678 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la" 681 VIDEO_DRIVERS="$VIDEO_DRIVERS aalib/libvideo_aa.la"
679 fi 682 fi
680 fi 683 fi
681 } 684 }
682 685
686 dnl rcg04172001 Set up the Null video driver.
687 CheckDummyVideo()
688 {
689 AC_ARG_ENABLE(video-dummy,
690 [ --enable-video-dummy use dummy video driver [default=no]],
691 , enable_video_dummy=no)
692 if test x$enable_video_dummy = xyes; then
693 CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO"
694 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
695 VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
696 fi
697 }
698
683 dnl Check to see if OpenGL support is desired 699 dnl Check to see if OpenGL support is desired
684 AC_ARG_ENABLE(video-opengl, 700 AC_ARG_ENABLE(video-opengl,
685 [ --enable-video-opengl include OpenGL context creation [default=yes]], 701 [ --enable-video-opengl include OpenGL context creation [default=yes]],
686 , enable_video_opengl=yes) 702 , enable_video_opengl=yes)
687 703
1010 } 1026 }
1011 1027
1012 case "$target" in 1028 case "$target" in
1013 *-*-linux*) 1029 *-*-linux*)
1014 ARCH=linux 1030 ARCH=linux
1031 CheckDummyVideo
1015 CheckNASM 1032 CheckNASM
1016 CheckOSS 1033 CheckOSS
1017 CheckALSA 1034 CheckALSA
1018 CheckARTSC 1035 CheckARTSC
1019 CheckESD 1036 CheckESD
1074 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1091 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1075 fi 1092 fi
1076 ;; 1093 ;;
1077 *-*-bsdi*) 1094 *-*-bsdi*)
1078 ARCH=bsdi 1095 ARCH=bsdi
1096 CheckDummyVideo
1079 CheckNASM 1097 CheckNASM
1080 CheckOSS 1098 CheckOSS
1081 CheckNAS 1099 CheckNAS
1082 CheckX11 1100 CheckX11
1083 CheckDGA 1101 CheckDGA
1114 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1132 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1115 fi 1133 fi
1116 ;; 1134 ;;
1117 *-*-freebsd*) 1135 *-*-freebsd*)
1118 ARCH=freebsd 1136 ARCH=freebsd
1137 CheckDummyVideo
1119 CheckNASM 1138 CheckNASM
1120 CheckOSS 1139 CheckOSS
1121 CheckARTSC 1140 CheckARTSC
1122 CheckESD 1141 CheckESD
1123 CheckNAS 1142 CheckNAS
1165 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1184 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1166 fi 1185 fi
1167 ;; 1186 ;;
1168 *-*-netbsd*) 1187 *-*-netbsd*)
1169 ARCH=netbsd 1188 ARCH=netbsd
1189 CheckDummyVideo
1170 CheckNASM 1190 CheckNASM
1171 CheckOSS 1191 CheckOSS
1172 CheckARTSC 1192 CheckARTSC
1173 CheckESD 1193 CheckESD
1174 CheckNAS 1194 CheckNAS
1197 if test x$enable_threads = xyes; then 1217 if test x$enable_threads = xyes; then
1198 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) 1218 COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
1199 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) 1219 COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
1200 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c) 1220 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex.c)
1201 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h) 1221 COPY_ARCH_SRC(src/thread, linux, SDL_sysmutex_c.h)
1202 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c) 1222 if test x$use_pthreads = xyes -a x$enable_pthread_sem != xyes; then
1223 COPY_ARCH_SRC(src/thread, generic, SDL_syssem.c)
1224 else
1225 COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
1226 fi
1203 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h) 1227 COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
1204 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c) 1228 COPY_ARCH_SRC(src/thread, linux, SDL_syscond.c)
1205 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h) 1229 COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
1206 fi 1230 fi
1207 # Set up files for the timer library 1231 # Set up files for the timer library
1211 # NetBSD does not define "unix" 1235 # NetBSD does not define "unix"
1212 CFLAGS="$CFLAGS -Dunix" 1236 CFLAGS="$CFLAGS -Dunix"
1213 ;; 1237 ;;
1214 *-*-openbsd*) 1238 *-*-openbsd*)
1215 ARCH=openbsd 1239 ARCH=openbsd
1240 CFLAGS="$CFLAGS -Dunix"
1241 CheckDummyVideo
1216 CheckNASM 1242 CheckNASM
1217 CheckOSS 1243 CheckOSS
1218 CheckARTSC 1244 CheckARTSC
1219 CheckESD 1245 CheckESD
1220 CheckNAS 1246 CheckNAS
1259 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1285 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1260 fi 1286 fi
1261 ;; 1287 ;;
1262 *-*-sysv5*) 1288 *-*-sysv5*)
1263 ARCH=sysv5 1289 ARCH=sysv5
1290 CheckDummyVideo
1264 CheckNASM 1291 CheckNASM
1265 CheckOSS 1292 CheckOSS
1266 CheckARTSC 1293 CheckARTSC
1267 CheckESD 1294 CheckESD
1268 CheckNAS 1295 CheckNAS
1304 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1331 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1305 fi 1332 fi
1306 ;; 1333 ;;
1307 *-*-solaris*) 1334 *-*-solaris*)
1308 ARCH=solaris 1335 ARCH=solaris
1336 CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86
1337 CheckDummyVideo
1309 CheckNASM 1338 CheckNASM
1310 CheckARTSC 1339 CheckARTSC
1311 CheckESD 1340 CheckESD
1312 CheckNAS 1341 CheckNAS
1313 CheckX11 1342 CheckX11
1348 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1377 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1349 fi 1378 fi
1350 ;; 1379 ;;
1351 *-*-irix*) 1380 *-*-irix*)
1352 ARCH=irix 1381 ARCH=irix
1382 CheckDummyVideo
1353 CheckNAS 1383 CheckNAS
1354 CheckX11 1384 CheckX11
1355 CheckAAlib 1385 CheckAAlib
1356 CheckOpenGL 1386 CheckOpenGL
1357 CheckPTHREAD 1387 CheckPTHREAD
1405 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1435 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1406 fi 1436 fi
1407 ;; 1437 ;;
1408 *-*-hpux*) 1438 *-*-hpux*)
1409 ARCH=hpux 1439 ARCH=hpux
1440 CheckDummyVideo
1410 CheckNAS 1441 CheckNAS
1411 CheckX11 1442 CheckX11
1412 CheckGGI 1443 CheckGGI
1413 CheckAAlib 1444 CheckAAlib
1414 CheckOpenGL 1445 CheckOpenGL
1447 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1478 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1448 fi 1479 fi
1449 ;; 1480 ;;
1450 *-*-aix*) 1481 *-*-aix*)
1451 ARCH=aix 1482 ARCH=aix
1483 CheckDummyVideo
1452 CheckNAS 1484 CheckNAS
1453 CheckX11 1485 CheckX11
1454 CheckGGI 1486 CheckGGI
1455 CheckAAlib 1487 CheckAAlib
1456 CheckOpenGL 1488 CheckOpenGL
1488 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1520 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1489 fi 1521 fi
1490 ;; 1522 ;;
1491 *-*-osf*) 1523 *-*-osf*)
1492 ARCH=osf 1524 ARCH=osf
1525 CheckDummyVideo
1493 CheckNAS 1526 CheckNAS
1494 CheckX11 1527 CheckX11
1495 CheckGGI 1528 CheckGGI
1496 CheckAAlib 1529 CheckAAlib
1497 CheckOpenGL 1530 CheckOpenGL
1530 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) 1563 COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
1531 fi 1564 fi
1532 ;; 1565 ;;
1533 *-*-qnx*) 1566 *-*-qnx*)
1534 ARCH=qnx 1567 ARCH=qnx
1568 CheckDummyVideo
1535 CheckNAS 1569 CheckNAS
1536 CheckPHOTON 1570 CheckPHOTON
1537 CheckX11 1571 CheckX11
1538 CheckOpenGL 1572 CheckOpenGL
1539 CheckPTHREAD 1573 CheckPTHREAD
1579 if test "$build" != "$target"; then # cross-compiling 1613 if test "$build" != "$target"; then # cross-compiling
1580 # Default cross-compile location 1614 # Default cross-compile location
1581 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc 1615 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
1582 else 1616 else
1583 # Look for the location of the tools and install there 1617 # Look for the location of the tools and install there
1584 ac_default_prefix=$BUILD_PREFIX 1618 if [ "$BUILD_PREFIX" != "" ]; then
1585 fi 1619 ac_default_prefix=$BUILD_PREFIX
1620 fi
1621 fi
1622 CheckDummyVideo
1586 CheckWIN32 1623 CheckWIN32
1587 CheckDIRECTX 1624 CheckDIRECTX
1588 CheckNASM 1625 CheckNASM
1589 # Set up files for the main() stub 1626 # Set up files for the main() stub
1590 COPY_ARCH_SRC(src/main, win32, SDL_main.c) 1627 COPY_ARCH_SRC(src/main, win32, SDL_main.c)
1621 if test x$enable_timers = xyes; then 1658 if test x$enable_timers = xyes; then
1622 COPY_ARCH_SRC(src/timer, win32, SDL_systimer.c) 1659 COPY_ARCH_SRC(src/timer, win32, SDL_systimer.c)
1623 fi 1660 fi
1624 # The Win32 platform requires special setup 1661 # The Win32 platform requires special setup
1625 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 1662 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
1626 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" 1663 case "$target" in
1664 *-*-cygwin*)
1665 CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix"
1666 SDL_CFLAGS="$SDL_CFLAGS -I/usr/include/mingw -DWIN32 -Uunix"
1667 LIBS="$LIBS -mno-cygwin"
1668 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows -mno-cygwin"
1669 ;;
1670 *-*-mingw32*)
1671 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
1672 ;;
1673 esac
1627 ;; 1674 ;;
1628 *-*-beos*) 1675 *-*-beos*)
1629 ARCH=beos 1676 ARCH=beos
1630 ac_default_prefix=/boot/develop/tools/gnupro 1677 ac_default_prefix=/boot/develop/tools/gnupro
1678 CheckDummyVideo
1631 CheckNASM 1679 CheckNASM
1632 CheckBWINDOW 1680 CheckBWINDOW
1633 CheckBeGL 1681 CheckBeGL
1634 # Set up files for the main() stub 1682 # Set up files for the main() stub
1635 COPY_ARCH_SRC(src/main, linux, SDL_main.c) 1683 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1670 *-*-macos*) 1718 *-*-macos*)
1671 # This would be used if cross-compiling to MacOS 9. No way to 1719 # This would be used if cross-compiling to MacOS 9. No way to
1672 # use it at present, but Apple is working on a X-to-9 compiler 1720 # use it at present, but Apple is working on a X-to-9 compiler
1673 # for which this case would be handy. 1721 # for which this case would be handy.
1674 ARCH=macos 1722 ARCH=macos
1723 CheckDummyVideo
1675 CheckTOOLBOX 1724 CheckTOOLBOX
1676 CheckMacGL 1725 CheckMacGL
1677 # Set up files for the main() stub 1726 # Set up files for the main() stub
1678 COPY_ARCH_SRC(src/main, macos, SDL_main.c) 1727 COPY_ARCH_SRC(src/main, macos, SDL_main.c)
1679 # Set up files for the audio library 1728 # Set up files for the audio library
1712 *-*-darwin* ) 1761 *-*-darwin* )
1713 # Strictly speaking, we want "Mac OS X", not "Darwin", which is 1762 # Strictly speaking, we want "Mac OS X", not "Darwin", which is
1714 # just the OS X kernel sans upper layers like Carbon. But 1763 # just the OS X kernel sans upper layers like Carbon. But
1715 # config.guess comes back with "darwin", so go with the flow. 1764 # config.guess comes back with "darwin", so go with the flow.
1716 ARCH=macos 1765 ARCH=macos
1766 CheckDummyVideo
1717 CheckCARBON 1767 CheckCARBON
1718 CheckMacGL 1768 CheckMacGL
1719 CheckPTHREAD 1769 CheckPTHREAD
1720 # Set up files for the main() stub 1770 # Set up files for the main() stub
1721 # COPY_ARCH_SRC(src/main, macos, SDL_main.c) 1771 # COPY_ARCH_SRC(src/main, macos, SDL_main.c)
1786 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" 1836 SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
1787 fi 1837 fi
1788 1838
1789 if test $ARCH = solaris; then 1839 if test $ARCH = solaris; then
1790 SDL_RLD_FLAGS="-R\${exec_prefix}/lib" 1840 SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
1841 fi
1842
1843 if test $ARCH = openbsd; then
1844 SDL_RLD_FLAGS="-Wl,-R\${exec_prefix}/lib -Wl,-R\${X11BASE}/lib"
1791 fi 1845 fi
1792 1846
1793 dnl Output the video drivers we use 1847 dnl Output the video drivers we use
1794 if test x$enable_video = xtrue; then 1848 if test x$enable_video = xtrue; then
1795 if test "$VIDEO_SUBDIRS" = ""; then 1849 if test "$VIDEO_SUBDIRS" = ""; then
1871 src/video/wincommon/Makefile 1925 src/video/wincommon/Makefile
1872 src/video/windib/Makefile 1926 src/video/windib/Makefile
1873 src/video/windx5/Makefile 1927 src/video/windx5/Makefile
1874 src/video/bwindow/Makefile 1928 src/video/bwindow/Makefile
1875 src/video/photon/Makefile 1929 src/video/photon/Makefile
1930 src/video/dummy/Makefile
1876 src/events/Makefile 1931 src/events/Makefile
1877 src/joystick/Makefile 1932 src/joystick/Makefile
1878 src/joystick/beos/Makefile 1933 src/joystick/beos/Makefile
1879 src/joystick/dummy/Makefile 1934 src/joystick/dummy/Makefile
1880 src/joystick/linux/Makefile 1935 src/joystick/linux/Makefile