File: configure.in

package info (click to toggle)
nessus-plugins 2.2.8-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 15,508 kB
  • ctags: 251
  • sloc: sh: 8,346; ansic: 4,452; pascal: 3,089; perl: 704; makefile: 172; php: 1
file content (132 lines) | stat: -rw-r--r-- 2,415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
dnl
dnl autoconf script for Nessus-plugins
dnl


AC_INIT(.root-dir)
AC_REVISION($Revision: 1.50 $)dnl


dnl Set up the main lines of the config script
AC_PREFIX_DEFAULT("/usr/local")


test "x$prefix" != "xNONE" || prefix=/usr/local

AC_LANG_C
AC_PROG_CC
#AC_CONFIG_HEADER()

AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_PROG_INSTALL

PWDD=`pwd`

dnl
dnl Do not use the system install script.
dnl
dnl INSTALL="`pwd`/install-sh -c"
INSTALL_DIR="$INSTALL -d"

dnl extending the search path for AC_PATH_PROG when searching for config scripts
XPATH="$DESTDIR$prefix/bin:$PATH"




AC_ARG_ENABLE(install,[  --enable-install=user	  for debugging, install as non-root user],
	installuser=$enable_install)
: ${installuser:=root}


case `uname` in
CYGWIN*)
  installuser=`whoami`
  ;;
esac


dnl containing funny things, like openpty, forkpty
dnl this library is deprecated because of portability
AC_CHECK_LIB(util, openpty, LIBUTIL="-lutil")

AC_PATH_PROG(NESSUSCONFIG, nessus-config,,$XPATH)

test "x$NESSUSCONFIG" = x && AC_ERROR(""
""
"*** nessus-libraries is not installed ! You need to install it before you"
"compile nessus-core."
"Get it at ftp://ftp.nessus.org/pub/nessus/")


CFLAGS="$CFLAGS `$NESSUSCONFIG --cflags`"
LIBS="$LIBS `$NESSUSCONFIG --libs`"


test "x$NESSUSCONFIG" = x && AC_ERROR(""
""
"*** nessus-libraries is not installed ! You need to install it before you"
"compile nessus-core."
"Get it at ftp://ftp.nessus.org/pub/nessus/")

test "x$prefix" = xNONE && prefix=/usr/local
AC_PATH_PROG(CP, cp)
AC_PATH_PROG(MV, mv)
AC_PATH_PROG(RM, rm)
AC_PATH_PROG(MAKE, gmake)
test "$MAKE" || {
	AC_PATH_PROG(MAKE, make)
	}

INSTALL_DIR="$INSTALL -d"

AC_PATH_PROG(ECHO, echo)
AC_PATH_PROG(TEST, test)
AC_PATH_PROG(MKDIR, mkdir)
AC_PATH_PROG(CAT, cat)
AC_PATH_PROG(GZIP, gzip)







dnl Make sure everything is complete for the updater
if test -z "$GZIP"
then
    AC_WARN(Could not find gzip. I will not install nessus-update-plugins)
else
    INSTALL_UPDATER=install-updater
fi


AC_CHECK_LIB(net, libnet_init, CFLAGS="$CFLAGS -DHAVE_LIBNET_1_1")

AC_SUBST(INSTALL_DIR)
AC_SUBST(INSTALL)
AC_SUBST(INSTALL_UPDATER)
AC_SUBST(CP)
AC_SUBST(MV)
AC_SUBST(RM)
AC_SUBST(MAKE)
AC_SUBST(ECHO)
AC_SUBST(TEST)
AC_SUBST(MKDIR)
AC_SUBST(CAT)
AC_SUBST(GZIP)
AC_SUBST(PWDD)
AC_SUBST(LIBUTIL)
AC_SUBST(installuser)



AC_OUTPUT(pf/nessus-build
nessus-update-plugins
nessus-update-plugins-gpl
nessus.tmpl)

exit 0