On Tuesday 26 September 2006 15:57, Wes Hardaker wrote:
> 
> I've just published 5.4.pre2 which has many good bugfixes over the
> .pre1 release.  Please report any errors you have!
> 

Hi,

I had to fix some points in configure.in because while crosscompile I don't 
want rpm, perl, and python support.
The options  '--without-rpm --without-perl-modules --without-python-modules' 
ditn't disable it.

Please check my patch.

claus


head -40 config.log:
---------------------------------------------------------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Net-SNMP configure 5.4.pre2, which was
generated by GNU Autoconf 2.59d.  Invocation command line was

  $ ./configure --with-cc=/tools/LinuxCDK/bin/powerpc-linux-gcc 
--with-ar=/tools/LinuxCDK/bin/powerpc-linux-ar --target=powerpc-linux 
--host=powerpc-linux --build=i386-pc-linux-gnu \
 --with-persistent-directory=/var/net-snmp --enable-shared --disable-static 
--with-logfile=none --disable-privacy --disable-des --without-rpm 
--without-dmalloc --without-efence --without-rsaref \
 --with-out-mib-modules=smux ucd-snmp/diskio ucd-snmp/lmSensors disman/schedule 
disman/event tunnel misc/ipfwacc ip-mib/ipv4InterfaceTable \
 --enable-mfd-rewrites --with-sys-contact=root --with-sys-location=Unknown 
--with-endianness=big --with-defaults --prefix=/ --sysconfdir=/etc 
--mandir=/man --infodir=/info \
 --disable-manuals --disable-scripts --disable-embedded-perl 
--without-perl-modules --without-python-modules --config-cache --disable-ipv6

## --------- ##
## Platform. ##
## --------- ##

hostname = DEBK1919
uname -m = i686
uname -r = 2.6.11-kanotix-7
uname -s = Linux
uname -v = #1 Fri Apr 8 13:42:38 CEST 2005

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /tools/LinuxCDK/bin
PATH: /scratch/buildroot/toolchain_build_powerpc/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin

...

configure:31327: checking For potential embedded perl support
configure:31335: result: disabled
configure:31351: checking If we can install the perl modules
configure:31371: result: yes -- not embeddable
configure:31400: checking If we should install the python bindings
configure:31411: result: yes


---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Net-SNMP Version:           5.4.pre2
  Building for:               linux
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:     usm
  Agent MIB code:             default_modules =>  snmpv3mibs mibII ucd_snmp 
notification notification-log-mib target agent_mibs agentx utilities host
  Embedded perl support:      disabled
  SNMP Perl modules:          building -- not embeddable
  SNMP Python modules:        building
  Authentication support:     MD5 SHA1
  Encryption support:         disabled

---------------------------------------------------------

after my patch:

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Net-SNMP Version:           5.4.pre2
  Building for:               linux
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:     usm
  Agent MIB code:             default_modules =>  snmpv3mibs mibII ucd_snmp 
notification notification-log-mib target agent_mibs agentx utilities host
  Embedded perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Authentication support:     MD5 SHA1
  Encryption support:         disabled

---------------------------------------------------------
--- configure.in.org	2006-09-26 04:58:39.000000000 +0000
+++ configure.in	2006-09-27 09:41:21.000000000 +0000
@@ -821,6 +821,9 @@
     install_perl=yes
     if test "$withval" = yes; then
       PERLARGS=""
+    elif test "$withval" = no; then
+      PERLARGS=""
+      install_perl=no
     else
       PERLARGS="$withval"
     fi
@@ -858,6 +861,9 @@
     install_python=yes
     if test "$withval" = yes; then
       PYTHONARGS=""
+    elif test "$withval" = no; then
+      PYTHONARGS=""
+      install_python=no
     else
       PYTHONARGS="$withval"
     fi
@@ -2654,13 +2660,14 @@
   fi
 ])
 
-AC_CHECK_HEADERS(rpm/rpmlib.h rpm/header.h)
-
-AC_CHECK_HEADER(rpm/rpmlib.h,rpmlib_h=yes,rpmlib_h=no)
-AC_CHECK_HEADER(rpm/header.h,rpmheader_h=yes,rpmheader_h=no)
+if test "x$with_rpm" != "xno" ; then
+  AC_CHECK_HEADERS(rpm/rpmlib.h rpm/header.h)
+  AC_CHECK_HEADER(rpm/rpmlib.h,rpmlib_h=yes,rpmlib_h=no)
+  AC_CHECK_HEADER(rpm/header.h,rpmheader_h=yes,rpmheader_h=no)
+fi
 
 if test "x$rpmheader_h" = "xno" -o "x$rpmlib_h" = "xno" ; then
-  if test "x$with_rpm" != "xyes" ; then
+  if test "x$with_rpm" != "xno" ; then
     AC_MSG_ERROR([Could not find either the RPM header files needed and was specifically asked to use RPM support])
   else
     with_rpm=no
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to