Lines 330-347
Link Here
|
330 |
#- check for xapian ----------------------------------------------------------- |
330 |
#- check for xapian ----------------------------------------------------------- |
331 |
|
331 |
|
332 |
if test "$f_search" = YES; then |
332 |
if test "$f_search" = YES; then |
333 |
if test -z "$XAPIAN"; then |
333 |
printf " Checking for Xapian..." |
334 |
printf " Checking for Xapian..." |
334 |
for d in /usr /usr/local /opt/local $XAPIAN; do |
335 |
for d in /usr /usr/local /opt/local; do |
335 |
if test -e "$d/include/xapian.h"; then |
336 |
if test -e "$d/include/xapian.h"; then |
336 |
XAPIAN=$d/include |
337 |
XAPIAN=$d |
337 |
fi |
338 |
fi |
338 |
if test -e "$d/xapian.h"; then |
339 |
done |
339 |
XAPIAN=$d |
340 |
fi |
340 |
fi |
341 |
if test -z "$XAPIAN"; then |
341 |
if test -e "$d/xapian-1.3/xapian.h"; then |
342 |
echo "XAPIAN not set and xapian.h not found at standard locations!" |
342 |
XAPIAN=$d/xapian-1.3 |
|
|
343 |
fi |
344 |
if test -e "$d/include/xapian-1.3/xapian.h"; then |
345 |
XAPIAN=$d/include/xapian-1.3 |
346 |
fi |
347 |
done |
348 |
if ! test -e "$XAPIAN/xapian.h"; then |
349 |
echo "xapian.h not found at standard locations or in path specified by XAPIAN." |
343 |
exit 2; |
350 |
exit 2; |
344 |
fi |
351 |
fi |
|
|
352 |
echo " using ${XAPIAN}" |
345 |
fi |
353 |
fi |
346 |
|
354 |
|
347 |
# - check for make ------------------------------------------------------------ |
355 |
# - check for make ------------------------------------------------------------ |
Lines 738-744
Link Here
|
738 |
if test "$f_search" = YES; then |
746 |
if test "$f_search" = YES; then |
739 |
cat >> .tmakeconfig <<EOF |
747 |
cat >> .tmakeconfig <<EOF |
740 |
LIBS += -L$XAPIAN/lib |
748 |
LIBS += -L$XAPIAN/lib |
741 |
INCLUDEPATH += $XAPIAN/include |
749 |
INCLUDEPATH += $XAPIAN |
742 |
EOF |
750 |
EOF |
743 |
fi |
751 |
fi |
744 |
|
752 |
|