configure.in
changeset 30 57bf11a5efd7
parent 21 75a95f82bc1f
child 35 d3bc792e136d
equal deleted inserted replaced
29:a8360daed17d 30:57bf11a5efd7
   399             CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes"
   399             CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes"
   400             SDL_EXTRADIRS="$SDL_EXTRADIRS hermes"
   400             SDL_EXTRADIRS="$SDL_EXTRADIRS hermes"
   401             SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la"
   401             SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la"
   402         fi
   402         fi
   403     fi
   403     fi
       
   404 }
       
   405 
       
   406 dnl Find the nanox include and library directories
       
   407 CheckNANOX()
       
   408 {
       
   409 	AC_ARG_ENABLE(video-nanox,
       
   410 		[  --enable-video-nanox use nanox video driver [default=no]],
       
   411 	        , enable_video_nanox=no)
       
   412 	AC_ARG_ENABLE(nanox-debug,  
       
   413 		[  --enable-nanox-debug print debug messages [default=no]],
       
   414 		, enable_nanox_debug=no)
       
   415 	AC_ARG_ENABLE(nanox-share-memory,  
       
   416 		[  --enable-nanox-share-memory use share memory [default=no]],
       
   417 		, enable_nanox_share_memory=no)
       
   418 
       
   419 	AC_ARG_WITH(nanox_pixel_type, 
       
   420 		[  --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]])
       
   421 
       
   422 	if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
       
   423 		if test x$enable_nanox_debug = xyes; then
       
   424 			CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG"
       
   425 		fi
       
   426 
       
   427 		if test x$enable_nanox_share_memory = xyes; then
       
   428 			CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY"
       
   429 		fi
       
   430 
       
   431 		case "$with_nanox_pixel_type" in
       
   432 			 rgb) CFLAGS="$CFLAGS -DNANOX_PIXEL_RGB" ;;
       
   433 			0888) CFLAGS="$CFLAGS -DNANOX_PIXEL_0888" ;;
       
   434 			 888) CFLAGS="$CFLAGS -DNANOX_PIXEL_888"  ;;
       
   435 			 565) CFLAGS="$CFLAGS -DNANOX_PIXEL_565"  ;;
       
   436 			 555) CFLAGS="$CFLAGS -DNANOX_PIXEL_555"  ;;
       
   437 			 332) CFLAGS="$CFLAGS -DNANOX_PIXEL_332"  ;;
       
   438 			 pal) CFLAGS="$CFLAGS -DNANOX_PIXEL_PAL"  ;;
       
   439 			   *) AC_MSG_ERROR([Invalid nanox_pixel_type]);;
       
   440 		esac
       
   441 
       
   442 		CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX"
       
   443 		SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X"
       
   444 		VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox"
       
   445 		VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la"
       
   446 	fi
   404 }
   447 }
   405 
   448 
   406 dnl Find the X11 include and library directories
   449 dnl Find the X11 include and library directories
   407 CheckX11()
   450 CheckX11()
   408 {
   451 {
  1040         CheckALSA
  1083         CheckALSA
  1041         CheckARTSC
  1084         CheckARTSC
  1042         CheckESD
  1085         CheckESD
  1043         CheckNAS
  1086         CheckNAS
  1044         CheckX11
  1087         CheckX11
       
  1088         CheckNANOX
  1045         CheckDGA
  1089         CheckDGA
  1046         CheckFBCON
  1090         CheckFBCON
  1047         CheckGGI
  1091         CheckGGI
  1048         CheckSVGA
  1092         CheckSVGA
  1049         CheckAAlib
  1093         CheckAAlib
  1919 src/audio/windx5/Makefile
  1963 src/audio/windx5/Makefile
  1920 src/video/Makefile
  1964 src/video/Makefile
  1921 src/video/cybergfx/Makefile
  1965 src/video/cybergfx/Makefile
  1922 src/video/x11/Makefile
  1966 src/video/x11/Makefile
  1923 src/video/dga/Makefile
  1967 src/video/dga/Makefile
       
  1968 src/video/nanox/Makefile
  1924 src/video/fbcon/Makefile
  1969 src/video/fbcon/Makefile
  1925 src/video/ggi/Makefile
  1970 src/video/ggi/Makefile
  1926 src/video/maccommon/Makefile
  1971 src/video/maccommon/Makefile
  1927 src/video/macdsp/Makefile
  1972 src/video/macdsp/Makefile
  1928 src/video/macrom/Makefile
  1973 src/video/macrom/Makefile