changeset 661:f87dc2cc16a8

Added simple libcss autodetect.
author atmosfear
date Sun, 29 Apr 2001 19:14:43 +0000
parents 29c9635aa144
children 4a959b73d51e
files configure
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Apr 29 17:39:09 2001 +0000
+++ b/configure	Sun Apr 29 19:14:43 2001 +0000
@@ -111,6 +111,7 @@
         --with-win32libdir=DIR  windows codec files
         --with-csslibdir=DIR    directory contains libcss.so shared library
         --with-cssincdir=DIR    directory contains libcss header file (css.h)
+				(--with-css* only needed, if libCSS autodetect fails)
 
 	--size-x=SIZE		default screen width
 	--size-y=SIZE		default screen height
@@ -415,6 +416,33 @@
 	fi
 fi	
 
+# Atmosfear: added libcss autodetect
+_css=no
+if test -e "/usr/local/lib/libcss.so" ; then
+	_csslibdir="/usr/local/lib/"
+	if test -e "/usr/local/include/css.h" ; then
+		_cssincdir="/usr/local/include"
+		_css=yes
+	else
+		if test -e "/usr/include/css.h" ; then
+			_cssincdir="/usr/include/"
+			_css=yes
+		fi	
+	fi	
+fi
+if test -e "/usr/lib/libcss.so" ; then
+	_csslibdir="/usr/lib/"
+	if test -e "/usr/include/css.h" ; then
+		_cssincdir="/usr/include/"
+		_css=yes
+	else	
+		if test -e "/usr/local/include/css.h" ; then
+			_cssincdir="/usr/local/include"
+			_css=yes
+		fi	
+	fi	
+fi
+	
 _termcap=no
 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes