diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-02-21 12:59:39 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-02-21 12:59:39 -0300 |
commit | 6bc92795d0855cc08cf93e00a13f11595d36c7ec (patch) | |
tree | e9d06bfe56afa6ce0cc056011a657e064a915019 /hardinfo2/configure | |
parent | bd76c170d0b57077574e2d3f75c5ae029f8a379e (diff) |
Don't rely on hardcoded paths anymore
Diffstat (limited to 'hardinfo2/configure')
-rwxr-xr-x | hardinfo2/configure | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/hardinfo2/configure b/hardinfo2/configure index d8113727..c3d14c04 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -104,24 +104,6 @@ echo "" # --------------------------------------------------------------------------- -echo -n "Checking for lspci... " -LSPCIPATH="/sbin/lspci /usr/sbin/lspci /bin/lspci /usr/bin/lspci `which lspci 2>/dev/null`" -for i in $LSPCIPATH; do - if [ -x "$i" ]; then - LSPCI=$i - break - fi -done - -if [ -e "$LSPCI" ]; then - echo $LSPCI -else - echo "lspci cannot be found" - exit -fi - -# --------------------------------------------------------------------------- - GTK2=-1 MIN_VERSION="2.6.0" echo -n "Checking for GTK version >= ${MIN_VERSION}... " @@ -201,7 +183,6 @@ echo -e "#ifndef __CONFIG_H__\n#define __CONFIG_H__\n" > config.h echo "#define VERSION \"$VERSION\"" >> config.h -echo "#define LSPCI \"$LSPCI -v\"" >> config.h echo "#define $ARCH" >> config.h echo "#define ARCH \"$ARCH\"" >> config.h |