openbsd-ports/security/nessus/files/nasl-config
matt 7328d212f1 - up to 1.0.6
- patch included libtools
- use ports gmp now that our gmp is gone
- make included scripts more readable
2000-12-28 16:07:05 +00:00

55 lines
734 B
Bash
Executable File

#!/bin/sh
#
# NASL configuration script
#
# Original by dug song <dugsong@monkey.org>
# Enhanced by Matt Behrens <matt@openbsd.org>
#
PREFIX=@@WRKSRC@@/libnasl
LIBDIR=$PREFIX/nasl/.libs
INCLUDEDIR=$PREFIX/include
VERSION=0.98.3
usage()
{
echo "Usage : nasl-config [ --cflags | --libs | --version ]"
exit $1
}
test $# -gt 0 || usage 1
# check whether we have echo -n, depending
# on the current shell, used
case `echo -n` in
\-n) Xn= ; Xc='\c' ;;
*) Xn=-n ; Xc=
esac
while test $# -gt 0; do
case "$1" in
--version)
echo $VERSION
exit 0
;;
--libs)
echo $Xn "-L$LIBDIR -lnasl $Xc"
;;
--cflags)
echo $Xn "-I$INCLUDEDIR $Xc"
;;
--help | -h)
usage 0
;;
*)
usage 1
;;
esac
shift
done
echo