Mailing List Archive

NessusClient configure.in, 1.4.2.2, 1.4.2.3 configure, 1.3.2.1, 1.3.2.2 nessus.tmpl.in, 1.2, 1.2.2.1
Update of /usr/local/cvs/NessusClient
In directory raccoon.nessus.org:/tmp/cvs-serv74297

Modified Files:
Tag: release-1-0
configure.in configure nessus.tmpl.in
Log Message:
solaris 10 magic

Index: configure.in
===================================================================
RCS file: /usr/local/cvs/NessusClient/configure.in,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -u -d -r1.4.2.2 -r1.4.2.3
--- configure.in 17 May 2006 14:56:45 -0000 1.4.2.2
+++ configure.in 29 May 2006 17:03:00 -0000 1.4.2.3
@@ -340,6 +340,14 @@
AC_SYS_LONG_FILE_NAMES


+if test "`uname`" != "IRIX" ;
+then
+ AC_HAVE_LIBRARY(socket, [socket_lib="-lsocket";LIBS="-lsocket $LIBS";])
+ AC_HAVE_LIBRARY(nsl, [nsl_lib="-lnsl";LIBS="-lnsl $LIBS";])
+ AC_HAVE_LIBRARY(resolv, [resolv_lib="-lresolv";LIBS="-lresolv $LIBS";])
+fi
+
+
AC_CHECK_LIB(c, inet_aton, AC_DEFINE(HAVE_INET_ATON))
AC_CHECK_LIB(resolv, inet_aton, AC_DEFINE(HAVE_INET_ATON))
AC_CHECK_LIB(z, compress, , AC_ERROR("libz is needed"))
@@ -542,6 +550,8 @@
AC_SUBST(RUN_LIBS)
AC_SUBST(resolv_lib)
AC_SUBST(socket_lib)
+AC_SUBST(nsl_lib)
+AC_SUBST(resolv_lib)
AC_SUBST(ssl_lib)
AC_SUBST(gtk_flags)
AC_SUBST(debug_flags)

Index: configure
===================================================================
RCS file: /usr/local/cvs/NessusClient/configure,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -u -d -r1.3.2.1 -r1.3.2.2
--- configure 17 May 2006 15:32:16 -0000 1.3.2.1
+++ configure 29 May 2006 17:03:01 -0000 1.3.2.2
@@ -3943,8 +3943,79 @@



+if test "`uname`" != "IRIX" ;
+then
+ echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
+echo "configure:3950: checking for -lsocket" >&5
+if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lsocket $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 3957 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_lib_socket=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_lib_socket=no
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+echo "$ac_t""$ac_cv_lib_socket" 1>&6
+if test "$ac_cv_lib_socket" = yes; then
+ socket_lib="-lsocket";LIBS="-lsocket $LIBS";
+fi
+
+ echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
+echo "configure:3983: checking for -lnsl" >&5
+if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lnsl $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 3990 "configure"
+#include "confdefs.h"
+
+int main() {
+main()
+; return 0; }
+EOF
+if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ ac_cv_lib_nsl=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_lib_nsl=no
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+echo "$ac_t""$ac_cv_lib_nsl" 1>&6
+if test "$ac_cv_lib_nsl" = yes; then
+ nsl_lib="-lnsl";LIBS="-lnsl $LIBS";
+fi
+
+fi
+
+
echo $ac_n "checking for inet_aton in -lc""... $ac_c" 1>&6
-echo "configure:3948: checking for inet_aton in -lc" >&5
+echo "configure:4019: checking for inet_aton in -lc" >&5
ac_lib_var=`echo c'_'inet_aton | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -3952,7 +4023,7 @@
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3956 "configure"
+#line 4027 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -3963,7 +4034,7 @@
inet_aton()
; return 0; }
EOF
-if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -3987,7 +4058,7 @@
fi

echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
-echo "configure:3991: checking for inet_aton in -lresolv" >&5
+echo "configure:4062: checking for inet_aton in -lresolv" >&5
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -3995,7 +4066,7 @@
ac_save_LIBS="$LIBS"
LIBS="-lresolv $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 3999 "configure"
+#line 4070 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -4006,7 +4077,7 @@
inet_aton()
; return 0; }
EOF
-if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4030,7 +4101,7 @@
fi

echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
-echo "configure:4034: checking for compress in -lz" >&5
+echo "configure:4105: checking for compress in -lz" >&5
ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4038,7 +4109,7 @@
ac_save_LIBS="$LIBS"
LIBS="-lz $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4042 "configure"
+#line 4113 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -4049,7 +4120,7 @@
compress()
; return 0; }
EOF
-if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4079,7 +4150,7 @@


echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:4083: checking for dlopen in -ldl" >&5
+echo "configure:4154: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4087,7 +4158,7 @@
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4091 "configure"
+#line 4162 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -4098,7 +4169,7 @@
dlopen()
; return 0; }
EOF
-if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4124,12 +4195,12 @@
for ac_func in getopt_long snprintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4128: checking for $ac_func" >&5
+echo "configure:4199: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4133 "configure"
+#line 4204 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -4152,7 +4223,7 @@

; return 0; }
EOF
-if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -4186,12 +4257,12 @@


echo $ac_n "checking if sockaddr{} has sa_len member""... $ac_c" 1>&6
-echo "configure:4190: checking if sockaddr{} has sa_len member" >&5
+echo "configure:4261: checking if sockaddr{} has sa_len member" >&5
if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4195 "configure"
+#line 4266 "configure"
#include "confdefs.h"

# include <sys/types.h>
@@ -4200,7 +4271,7 @@
unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)
; return 0; }
EOF
-if { (eval echo configure:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_sockaddr_has_sa_len=yes
else
@@ -4374,9 +4445,9 @@


echo $ac_n "checking whether struct sigaction has sa_restorer""... $ac_c" 1>&6
-echo "configure:4378: checking whether struct sigaction has sa_restorer" >&5
+echo "configure:4449: checking whether struct sigaction has sa_restorer" >&5
cat > conftest.$ac_ext <<EOF
-#line 4380 "configure"
+#line 4451 "configure"
#include "confdefs.h"

#include <signal.h>
@@ -4389,7 +4460,7 @@

; return 0; }
EOF
-if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
signal_sa_restorer=yes
else
@@ -4427,7 +4498,7 @@
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4431: checking for $ac_word" >&5
+echo "configure:4502: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4471,19 +4542,19 @@
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
echo $ac_n "checking for $pkg_modules""... $ac_c" 1>&6
-echo "configure:4475: checking for $pkg_modules" >&5
+echo "configure:4546: checking for $pkg_modules" >&5

if $PKG_CONFIG --exists "$pkg_modules" ; then
echo "$ac_t""yes" 1>&6
succeeded=yes

echo $ac_n "checking GTKCONFIG_CFLAGS""... $ac_c" 1>&6
-echo "configure:4482: checking GTKCONFIG_CFLAGS" >&5
+echo "configure:4553: checking GTKCONFIG_CFLAGS" >&5
GTKCONFIG_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules"`
echo "$ac_t""$GTKCONFIG_CFLAGS" 1>&6

echo $ac_n "checking GTKCONFIG_LIBS""... $ac_c" 1>&6
-echo "configure:4487: checking GTKCONFIG_LIBS" >&5
+echo "configure:4558: checking GTKCONFIG_LIBS" >&5
GTKCONFIG_LIBS=`$PKG_CONFIG --libs "$pkg_modules"`
echo "$ac_t""$GTKCONFIG_LIBS" 1>&6
else
@@ -4542,7 +4613,7 @@
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4546: checking for $ac_word" >&5
+echo "configure:4617: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4620,6 +4691,7 @@



+
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
@@ -4798,6 +4870,7 @@
s%@RUN_LIBS@%$RUN_LIBS%g
s%@resolv_lib@%$resolv_lib%g
s%@socket_lib@%$socket_lib%g
+s%@nsl_lib@%$nsl_lib%g
s%@ssl_lib@%$ssl_lib%g
s%@gtk_flags@%$gtk_flags%g
s%@debug_flags@%$debug_flags%g

Index: nessus.tmpl.in
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus.tmpl.in,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- nessus.tmpl.in 10 Sep 2005 18:08:07 -0000 1.2
+++ nessus.tmpl.in 29 May 2006 17:03:01 -0000 1.2.2.1
@@ -124,6 +124,7 @@
CLIENT=@client@
CLIENT_INSTALL=@client_install@
NESSUS_LIB=@nessus_lib@
+SOCKET_LIB=@socket_lib@ @nsl_lib@ @resolv_lib@

# documentation
MAN_NESSUS_1=@man_nessus_1@

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs