Lines 173-178
Link Here
|
173 |
# -------------------------------------------------------------------------- |
173 |
# -------------------------------------------------------------------------- |
174 |
|
174 |
|
175 |
echo -e "\nWriting config.h..." |
175 |
echo -e "\nWriting config.h..." |
|
|
176 |
arh=`arch` |
177 |
if [ "$arh" == x86_64 ];then |
178 |
suf=64 |
179 |
echo $suf |
180 |
else |
181 |
suf='' |
182 |
echo !!!!!! |
183 |
fi |
184 |
|
176 |
rm -f config.h |
185 |
rm -f config.h |
177 |
echo -e "#ifndef __CONFIG_H__\n#define __CONFIG_H__\n" > config.h |
186 |
echo -e "#ifndef __CONFIG_H__\n#define __CONFIG_H__\n" > config.h |
178 |
|
187 |
|
Lines 189-194
Link Here
|
189 |
echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h |
198 |
echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h |
190 |
echo "#define LIBPREFIX \"/usr/lib64/hardinfo/\"" >> config.h |
199 |
echo "#define LIBPREFIX \"/usr/lib64/hardinfo/\"" >> config.h |
191 |
|
200 |
|
|
|
201 |
echo "#define LIBDIR \"/usr/lib$suf/\"" >> config.h |
202 |
echo "#define LIBEXECDIR \"/usr/lib/\"" >> config.h |
203 |
|
204 |
|
192 |
if [ "$SOUP" == "1" ]; then |
205 |
if [ "$SOUP" == "1" ]; then |
193 |
echo "#define HAS_LIBSOUP" >> config.h |
206 |
echo "#define HAS_LIBSOUP" >> config.h |
194 |
fi |
207 |
fi |