From: Andrey C. <sku...@us...> - 2007-01-16 14:23:31
|
Update of /cvsroot/eas-dev/eas In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv9766 Modified Files: ChangeLog README VERSION configure Log Message: check glibc version for build with or without thread support Index: ChangeLog =================================================================== RCS file: /cvsroot/eas-dev/eas/ChangeLog,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ChangeLog 21 Jun 2006 07:43:39 -0000 1.5 +++ ChangeLog 16 Jan 2007 14:23:25 -0000 1.6 @@ -1,3 +1,6 @@ +2007-01-16 + - check glibc version for build with or without thread support + 2006-06-21 eas-0.2.1 - support several databases - completely rewrited component support Index: README =================================================================== RCS file: /cvsroot/eas-dev/eas/README,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- README 15 Nov 2006 10:37:18 -0000 1.7 +++ README 16 Jan 2007 14:23:25 -0000 1.8 @@ -7,8 +7,8 @@ Type: Software platform Name: E/AS -Version: 20061113 -Date: 13 Nov 2006 +Version: 20070116 (snapshot) +Date: 16 Jan 2007 Author: Andrey (Skull) Cherepanov <sk...@ea...> License: GNU General Public License (GPL) v.2 Index: VERSION =================================================================== RCS file: /cvsroot/eas-dev/eas/VERSION,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- VERSION 20 Nov 2006 12:57:55 -0000 1.9 +++ VERSION 16 Jan 2007 14:23:25 -0000 1.10 @@ -1 +1 @@ -20061116 +20070116 Index: configure =================================================================== RCS file: /cvsroot/eas-dev/eas/configure,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- configure 23 Nov 2006 11:24:03 -0000 1.7 +++ configure 16 Jan 2007 14:23:25 -0000 1.8 @@ -20,6 +20,7 @@ # Required versions REQUIRED_CLIP_VERSION="1.2.0.0" +BAD_LIBPTHREAD="2.4" # clip-ui drivers DRIVERS=( gtk2 gtk ) @@ -429,3 +430,20 @@ echo "PODIR=$podir" >> Makefile.var echo "EASDEF=$def" >> Makefile.var echo "BUILDFLAGS=$flags" >> Makefile.var + +# Check libpthread version +thread="" +v=`ls --file-type /lib/libpthread-*.so | sed -n '1p' | tr -d '\n' | sed 's|/lib/libpthread-\([0-9.]*\)\.so|\1|'` +rv=( `echo "$BAD_LIBPTHREAD" | tr '.' ' '` ) +v=( `echo "$v" | tr '.' ' '` ) +# Compare pair of elements in rv and v +i=0 +for vp in ${rv[@]}; do + if test "$vp" -le "${v[$i]}"; then + echo -e "\nWARNING!\nYour glibc version does not support CLIP threads correctly.\nSoftware will be build to use only one thread (one connection to server).\n" 2>&6 + thread="-DSINGLE_CONNECTION" + break + fi + (( i += 1 )) +done +echo "THREAD=$thread" >> Makefile.var |