comparison configure.in @ 814:5a417d2a8603

Use sigaction instead of signal to preserve handler flags (thanks Matthew!)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 12 Feb 2004 16:29:24 +0000
parents 674df5617bba
children a3bf0451c79b
comparison
equal deleted inserted replaced
813:6a2c6717b386 814:5a417d2a8603
761 { 761 {
762 AC_ARG_ENABLE(video-fbcon, 762 AC_ARG_ENABLE(video-fbcon,
763 [ --enable-video-fbcon use framebuffer console video driver [default=yes]], 763 [ --enable-video-fbcon use framebuffer console video driver [default=yes]],
764 , enable_video_fbcon=yes) 764 , enable_video_fbcon=yes)
765 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then 765 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
766 CFLAGS="$CFLAGS -D__KERNEL_STRICT_NAMES"
766 AC_MSG_CHECKING(for framebuffer console support) 767 AC_MSG_CHECKING(for framebuffer console support)
767 video_fbcon=no 768 video_fbcon=no
768 AC_TRY_COMPILE([ 769 AC_TRY_COMPILE([
769 #include <linux/fb.h> 770 #include <linux/fb.h>
770 #include <linux/kd.h> 771 #include <linux/kd.h>
1385 *** No thread support detected 1386 *** No thread support detected
1386 ]) 1387 ])
1387 fi 1388 fi
1388 } 1389 }
1389 1390
1391 dnl See if we can use sigaction() instead of signal()
1392 CheckSIGACTION()
1393 {
1394 dnl Check for sigaction support
1395 AC_ARG_ENABLE(sigaction,
1396 [ --enable-sigaction use sigaction instead of signal [default=yes]],
1397 , enable_sigaction=yes)
1398 if test x$enable_sigaction = xyes; then
1399 AC_MSG_CHECKING(sigaction)
1400 have_sigaction=no
1401 AC_TRY_COMPILE([
1402 #include <signal.h>
1403 ],[
1404 struct sigaction junk;
1405 sigaction(0, &junk, &junk);
1406 ],[
1407 have_sigaction=yes
1408 ])
1409 AC_MSG_RESULT($have_sigaction)
1410 if test x$have_sigaction = xyes; then
1411 CFLAGS="$CFLAGS -DHAVE_SIGACTION"
1412 fi
1413 fi
1414 }
1415
1390 dnl Determine whether the compiler can produce Win32 executables 1416 dnl Determine whether the compiler can produce Win32 executables
1391 CheckWIN32() 1417 CheckWIN32()
1392 { 1418 {
1393 AC_MSG_CHECKING(Win32 compiler) 1419 AC_MSG_CHECKING(Win32 compiler)
1394 have_win32_gcc=no 1420 have_win32_gcc=no
1773 CheckQtopia 1799 CheckQtopia
1774 CheckPicoGUI 1800 CheckPicoGUI
1775 CheckOpenGL 1801 CheckOpenGL
1776 CheckInputEvents 1802 CheckInputEvents
1777 CheckPTHREAD 1803 CheckPTHREAD
1804 CheckSIGACTION
1778 CheckAltivec 1805 CheckAltivec
1779 # Set up files for the main() stub 1806 # Set up files for the main() stub
1780 if test "x$video_qtopia" = "xyes"; then 1807 if test "x$video_qtopia" = "xyes"; then
1781 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 1808 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
1782 SDL_LIBS="-lSDLmain $SDL_LIBS" 1809 SDL_LIBS="-lSDLmain $SDL_LIBS"
1849 CheckDGA 1876 CheckDGA
1850 CheckSVGA 1877 CheckSVGA
1851 CheckAAlib 1878 CheckAAlib
1852 CheckOpenGL 1879 CheckOpenGL
1853 CheckPTHREAD 1880 CheckPTHREAD
1881 CheckSIGACTION
1854 # Set up files for the audio library 1882 # Set up files for the audio library
1855 # We use the OSS and ALSA API's, not the Sun audio API 1883 # We use the OSS and ALSA API's, not the Sun audio API
1856 #if test x$enable_audio = xyes; then 1884 #if test x$enable_audio = xyes; then
1857 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 1885 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
1858 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 1886 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1893 CheckDGA 1921 CheckDGA
1894 CheckSVGA 1922 CheckSVGA
1895 CheckAAlib 1923 CheckAAlib
1896 CheckOpenGL 1924 CheckOpenGL
1897 CheckPTHREAD 1925 CheckPTHREAD
1926 CheckSIGACTION
1898 CheckUSBHID 1927 CheckUSBHID
1899 # Set up files for the audio library 1928 # Set up files for the audio library
1900 # We use the OSS and ALSA API's, not the Sun audio API 1929 # We use the OSS and ALSA API's, not the Sun audio API
1901 #if test x$enable_audio = xyes; then 1930 #if test x$enable_audio = xyes; then
1902 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 1931 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
1929 CheckNAS 1958 CheckNAS
1930 CheckX11 1959 CheckX11
1931 CheckAAlib 1960 CheckAAlib
1932 CheckOpenGL 1961 CheckOpenGL
1933 CheckPTHREAD 1962 CheckPTHREAD
1963 CheckSIGACTION
1934 CheckUSBHID 1964 CheckUSBHID
1935 # Set up files for the audio library 1965 # Set up files for the audio library
1936 if test x$enable_audio = xyes; then 1966 if test x$enable_audio = xyes; then
1937 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 1967 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
1938 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 1968 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
1969 CheckNAS 1999 CheckNAS
1970 CheckX11 2000 CheckX11
1971 CheckAAlib 2001 CheckAAlib
1972 CheckOpenGL 2002 CheckOpenGL
1973 CheckPTHREAD 2003 CheckPTHREAD
2004 CheckSIGACTION
1974 CheckUSBHID 2005 CheckUSBHID
1975 # Set up files for the audio library 2006 # Set up files for the audio library
1976 if test x$enable_audio = xyes; then 2007 if test x$enable_audio = xyes; then
1977 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" 2008 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT"
1978 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd" 2009 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"
2010 CheckNAS 2041 CheckNAS
2011 CheckX11 2042 CheckX11
2012 CheckAAlib 2043 CheckAAlib
2013 CheckOpenGL 2044 CheckOpenGL
2014 CheckPTHREAD 2045 CheckPTHREAD
2046 CheckSIGACTION
2015 # Set up files for the audio library 2047 # Set up files for the audio library
2016 if test x$enable_audio = xyes; then 2048 if test x$enable_audio = xyes; then
2017 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2049 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2018 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2050 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
2019 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" 2051 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
2051 CheckNAS 2083 CheckNAS
2052 CheckX11 2084 CheckX11
2053 CheckAAlib 2085 CheckAAlib
2054 CheckOpenGL 2086 CheckOpenGL
2055 CheckPTHREAD 2087 CheckPTHREAD
2088 CheckSIGACTION
2056 # Set up files for the audio library 2089 # Set up files for the audio library
2057 if test x$enable_audio = xyes; then 2090 if test x$enable_audio = xyes; then
2058 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2091 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2059 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2092 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
2060 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" 2093 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
2089 CheckNAS 2122 CheckNAS
2090 CheckX11 2123 CheckX11
2091 CheckAAlib 2124 CheckAAlib
2092 CheckOpenGL 2125 CheckOpenGL
2093 CheckPTHREAD 2126 CheckPTHREAD
2127 CheckSIGACTION
2094 # We use the dmedia audio API, not the Sun audio API 2128 # We use the dmedia audio API, not the Sun audio API
2095 #if test x$enable_audio = xyes; then 2129 #if test x$enable_audio = xyes; then
2096 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2130 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2097 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2131 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
2098 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" 2132 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
2139 CheckX11 2173 CheckX11
2140 CheckGGI 2174 CheckGGI
2141 CheckAAlib 2175 CheckAAlib
2142 CheckOpenGL 2176 CheckOpenGL
2143 CheckPTHREAD 2177 CheckPTHREAD
2178 CheckSIGACTION
2144 # Set up files for the audio library 2179 # Set up files for the audio library
2145 if test x$enable_audio = xyes; then 2180 if test x$enable_audio = xyes; then
2146 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 2181 CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
2147 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 2182 AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
2148 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" 2183 AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
2178 CheckX11 2213 CheckX11
2179 CheckGGI 2214 CheckGGI
2180 CheckAAlib 2215 CheckAAlib
2181 CheckOpenGL 2216 CheckOpenGL
2182 CheckPTHREAD 2217 CheckPTHREAD
2218 CheckSIGACTION
2183 # Set up files for the audio library 2219 # Set up files for the audio library
2184 if test x$enable_audio = xyes; then 2220 if test x$enable_audio = xyes; then
2185 AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio" 2221 AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio"
2186 AUDIO_DRIVERS="$AUDIO_DRIVERS paudio/libaudio_paudio.la" 2222 AUDIO_DRIVERS="$AUDIO_DRIVERS paudio/libaudio_paudio.la"
2187 fi 2223 fi
2214 CheckX11 2250 CheckX11
2215 CheckGGI 2251 CheckGGI
2216 CheckAAlib 2252 CheckAAlib
2217 CheckOpenGL 2253 CheckOpenGL
2218 CheckPTHREAD 2254 CheckPTHREAD
2255 CheckSIGACTION
2219 SDL_LIBS="$SDL_LIBS -lrt" 2256 SDL_LIBS="$SDL_LIBS -lrt"
2220 # Set up files for the audio library 2257 # Set up files for the audio library
2221 if test x$enable_audio = xyes; then 2258 if test x$enable_audio = xyes; then
2222 CFLAGS="$CFLAGS -I/usr/include/mme -DMMEAUDIO_SUPPORT" 2259 CFLAGS="$CFLAGS -I/usr/include/mme -DMMEAUDIO_SUPPORT"
2223 SYSTEM_LIBS="$SYSTEM_LIBS -lmme" 2260 SYSTEM_LIBS="$SYSTEM_LIBS -lmme"
2253 CheckNAS 2290 CheckNAS
2254 CheckPHOTON 2291 CheckPHOTON
2255 CheckX11 2292 CheckX11
2256 CheckOpenGL 2293 CheckOpenGL
2257 CheckPTHREAD 2294 CheckPTHREAD
2295 CheckSIGACTION
2258 # Set up files for the audio library 2296 # Set up files for the audio library
2259 if test x$enable_audio = xyes; then 2297 if test x$enable_audio = xyes; then
2260 CFLAGS="$CFLAGS -DQNXNTOAUDIO_SUPPORT" 2298 CFLAGS="$CFLAGS -DQNXNTOAUDIO_SUPPORT"
2261 SYSTEM_LIBS="$SYSTEM_LIBS -lasound" 2299 SYSTEM_LIBS="$SYSTEM_LIBS -lasound"
2262 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto" 2300 AUDIO_SUBDIRS="$AUDIO_SUBDIRS nto"
2438 CheckDummyVideo 2476 CheckDummyVideo
2439 CheckDiskAudio 2477 CheckDiskAudio
2440 CheckQUARTZ 2478 CheckQUARTZ
2441 CheckMacGL 2479 CheckMacGL
2442 CheckPTHREAD 2480 CheckPTHREAD
2481 CheckSIGACTION
2443 # Set up files for the audio library 2482 # Set up files for the audio library
2444 if test x$enable_audio = xyes; then 2483 if test x$enable_audio = xyes; then
2445 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" 2484 AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
2446 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la" 2485 AUDIO_DRIVERS="$AUDIO_DRIVERS macrom/libaudio_macrom.la"
2447 fi 2486 fi