~vibhavp/ubuntu/raring/spl/merge-from-debian

« back to all changes in this revision

Viewing changes to syscheck.sh

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2006-08-21 08:21:06 UTC
  • mto: (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060821082106-6glercj8mn0un53l
Tags: upstream-1.0~pre2
ImportĀ upstreamĀ versionĀ 1.0~pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                if pkg-config --silence-errors --modversion fann | grep -qx '2.0.0'
91
91
                then result=1; else result=0; fi
92
92
                ;;
 
93
        opengl|opengl_file)
 
94
                set -vx
 
95
                result=0
 
96
                for file in /usr/{,X11/}include/GL/gl.h; do
 
97
                        [ -f "$file" ] && { result="$file"; break; }
 
98
                done
 
99
                if [ "$1" = "opengl" ]; then
 
100
                        [ "$result" == "0" ] || result=1
 
101
                else
 
102
                        [ "$result" == "0" ] && result=""
 
103
                fi
 
104
                ;;
93
105
        libsmoke)
94
106
                cc_lang="c++"; CC="$CXX"
95
107
                CFLAGS="`echo $CFLAGS | sed 's,-std=gnu99,,'`"
159
171
                retcode=1
160
172
esac
161
173
 
162
 
if [ "$result" = "0" -o "$result" = "1" ]; then
 
174
if [ -n "$result" ]; then
163
175
        echo "cached_syscheck_result_$1=$result" >> config.cache
164
176
        [ "$result" = "0" ] && echo " not found." >&3
165
 
        [ "$result" = "1" ] && echo " found." >&3
 
177
        [ "$result" = "0" ] || echo " found." >&3
166
178
else
167
179
        echo " done." >&3
168
180
fi