Lines 27-43
Link Here
|
27 |
exits_ok=no |
27 |
exits_ok=no |
28 |
if test "x$exits_ok" = "xno"; then |
28 |
if test "x$exits_ok" = "xno"; then |
29 |
for d in /usr/local /usr ; do |
29 |
for d in /usr/local /usr ; do |
30 |
AC_CHECK_FILE(${d}/lib${LIB_LOCATION_SUFFIX}/libqwt.so,exits_ok=yes,exits_ok=no) |
30 |
AC_CHECK_FILE(${d}/lib${LIB_LOCATION_SUFFIX}/libqwt.so.4,exits_ok=yes,exits_ok=no) |
31 |
if test "x$exits_ok" = "xyes"; then |
31 |
if test "x$exits_ok" = "xyes"; then |
32 |
QWTHOME=$d |
32 |
QWTHOME=$d |
33 |
AC_MSG_RESULT(libqwt.so detected in $d/lib) |
33 |
AC_MSG_RESULT(libqwt.so.4 detected in $d/lib) |
34 |
fi |
34 |
fi |
35 |
done |
35 |
done |
36 |
fi |
36 |
fi |
37 |
if test "x$exits_ok" = "xno"; then |
37 |
if test "x$exits_ok" = "xno"; then |
38 |
for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do |
38 |
for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do |
39 |
if test -f $d/libqwt.so ; then |
39 |
if test -f $d/libqwt.so.4 ; then |
40 |
AC_MSG_RESULT(libqwt.so detected in $d) |
40 |
AC_MSG_RESULT(libqwt.so.4 detected in $d) |
41 |
QWTHOME=$d |
41 |
QWTHOME=$d |
42 |
QWTHOME=`echo ${QWTHOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` |
42 |
QWTHOME=`echo ${QWTHOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` |
43 |
exits_ok=yes |
43 |
exits_ok=yes |