diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-27 14:51:46 +0000 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-27 14:51:46 +0000 | 
| commit | 0f224e134234a6fb880613babd45942ece918f92 (patch) | |
| tree | d453a4912c514a45955c2badcd8e0b187b6af5da /hardinfo2/configure | |
| parent | e5c7cba7ec1deb207ff5b6b93815d8d15e84d270 (diff) | |
Cleanups. Fallback to using hardcoded paths if binreloc fails. Add GTK+ log handler (shows errors and warnings in a graphical window).
Diffstat (limited to 'hardinfo2/configure')
| -rwxr-xr-x | hardinfo2/configure | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/hardinfo2/configure b/hardinfo2/configure index 978b476c..869541ea 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -82,9 +82,6 @@ case $PROC in  		if [ "$?" == "0" ]; then  			ln -sf linux/m68k arch/this  			ARCH="ARCH_m68k" -		else -			echo "Architeture \"$ARCH\" not supported."  -			exit  		fi  		;; @@ -136,7 +133,8 @@ for i in `which pkg-config`; do  			GTK_FLAGS=`pkg-config gtk+-2.0 --cflags`  			GTK_LIBS=`pkg-config gtk+-2.0 --libs`  			echo "found `pkg-config gtk+-2.0 --modversion`" -			GTK2=1 ;; +			GTK2=1 +			break ;;  		*)  			echo "not found." ;;  	esac @@ -147,7 +145,7 @@ done  if [ $GTK2 -eq -1 ]; then  	echo -e "\nYou need the GTK libraries, including the development stuff."  	echo "If you're using Debian, running the command as root:" -	echo -e "\n\tapt-get install libgtk2.0-dev\n" +	echo -e "\n\taptitude install libgtk2.0-dev\n"  	echo "Will do the trick."  	exit  fi @@ -171,6 +169,7 @@ echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h  echo "#define LIBPREFIX \"/usr/lib/hardinfo/\"" >> config.h  echo "#define DEBUG 1" >> config.h  echo "#define ENABLE_BINRELOC" >> config.h +echo "#define RELEASE $RELEASE" >> config.h  echo -e "\n#endif	/* __CONFIG_H__ */" >> config.h | 
