configure.in
changeset 30 57bf11a5efd7
parent 21 75a95f82bc1f
child 35 d3bc792e136d
     1.1 --- a/configure.in	Fri May 11 00:35:31 2001 +0000
     1.2 +++ b/configure.in	Fri May 11 01:13:35 2001 +0000
     1.3 @@ -403,6 +403,49 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Find the nanox include and library directories
     1.8 +CheckNANOX()
     1.9 +{
    1.10 +	AC_ARG_ENABLE(video-nanox,
    1.11 +		[  --enable-video-nanox use nanox video driver [default=no]],
    1.12 +	        , enable_video_nanox=no)
    1.13 +	AC_ARG_ENABLE(nanox-debug,  
    1.14 +		[  --enable-nanox-debug print debug messages [default=no]],
    1.15 +		, enable_nanox_debug=no)
    1.16 +	AC_ARG_ENABLE(nanox-share-memory,  
    1.17 +		[  --enable-nanox-share-memory use share memory [default=no]],
    1.18 +		, enable_nanox_share_memory=no)
    1.19 +
    1.20 +	AC_ARG_WITH(nanox_pixel_type, 
    1.21 +		[  --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]])
    1.22 +
    1.23 +	if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
    1.24 +		if test x$enable_nanox_debug = xyes; then
    1.25 +			CFLAGS="$CFLAGS -DENABLE_NANOX_DEBUG"
    1.26 +		fi
    1.27 +
    1.28 +		if test x$enable_nanox_share_memory = xyes; then
    1.29 +			CFLAGS="$CFLAGS -DNANOX_SHARE_MEMORY"
    1.30 +		fi
    1.31 +
    1.32 +		case "$with_nanox_pixel_type" in
    1.33 +			 rgb) CFLAGS="$CFLAGS -DNANOX_PIXEL_RGB" ;;
    1.34 +			0888) CFLAGS="$CFLAGS -DNANOX_PIXEL_0888" ;;
    1.35 +			 888) CFLAGS="$CFLAGS -DNANOX_PIXEL_888"  ;;
    1.36 +			 565) CFLAGS="$CFLAGS -DNANOX_PIXEL_565"  ;;
    1.37 +			 555) CFLAGS="$CFLAGS -DNANOX_PIXEL_555"  ;;
    1.38 +			 332) CFLAGS="$CFLAGS -DNANOX_PIXEL_332"  ;;
    1.39 +			 pal) CFLAGS="$CFLAGS -DNANOX_PIXEL_PAL"  ;;
    1.40 +			   *) AC_MSG_ERROR([Invalid nanox_pixel_type]);;
    1.41 +		esac
    1.42 +
    1.43 +		CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_NANOX"
    1.44 +		SYSTEM_LIBS="$SYSTEM_LIBS -lnano-X"
    1.45 +		VIDEO_SUBDIRS="$VIDEO_SUBDIRS nanox"
    1.46 +		VIDEO_DRIVERS="$VIDEO_DRIVERS nanox/libvideo_nanox.la"
    1.47 +	fi
    1.48 +}
    1.49 +
    1.50  dnl Find the X11 include and library directories
    1.51  CheckX11()
    1.52  {
    1.53 @@ -1042,6 +1085,7 @@
    1.54          CheckESD
    1.55          CheckNAS
    1.56          CheckX11
    1.57 +        CheckNANOX
    1.58          CheckDGA
    1.59          CheckFBCON
    1.60          CheckGGI
    1.61 @@ -1921,6 +1965,7 @@
    1.62  src/video/cybergfx/Makefile
    1.63  src/video/x11/Makefile
    1.64  src/video/dga/Makefile
    1.65 +src/video/nanox/Makefile
    1.66  src/video/fbcon/Makefile
    1.67  src/video/ggi/Makefile
    1.68  src/video/maccommon/Makefile