| 6 |
# ANY KIND, either express or implied. See the file COPYRIGHT for |
# ANY KIND, either express or implied. See the file COPYRIGHT for |
| 7 |
# details. |
# details. |
| 8 |
|
|
| 9 |
# $Id: Install,v 1.24 2002/12/14 20:20:03 weaselp Exp $ |
# $Id: Install,v 1.26 2002/12/14 20:56:04 weaselp Exp $ |
| 10 |
|
|
| 11 |
#whereis program default-path |
#whereis program default-path |
| 12 |
whereis() |
whereis() |
| 154 |
if [ "$type" = system ] |
if [ "$type" = system ] |
| 155 |
then |
then |
| 156 |
LIB= |
LIB= |
| 157 |
LDFLAG=-l`echo $lib | sed 's/^lib//;s/\.a$//'` |
LDFLAG="-l`echo $lib | sed 's/^lib//;s/\.a$//'` -L$found" |
| 158 |
|
if [ "$found" = "/usr/local/lib" ] |
| 159 |
|
then |
| 160 |
|
INCDIR="/usr/local/include $INCDIR" |
| 161 |
|
fi |
| 162 |
fi |
fi |
| 163 |
|
|
| 164 |
incdir=$INCDIR |
incdir=$INCDIR |
| 681 |
exit(0); |
exit(0); |
| 682 |
} |
} |
| 683 |
END |
END |
| 684 |
if gcc $INC tmptst.c -o /dev/null |
if gcc $LDFLAGS $INC tmptst.c -o /dev/null |
| 685 |
then |
then |
| 686 |
DEF="$DEF -DUSE_IDEA" |
DEF="$DEF -DUSE_IDEA" |
| 687 |
else |
else |