The extra flags that "net-snmp-config --cflags" might emit might cause

problems with compilation, so, if they do, the "net-snmp-config" in
question would need to be fixed; back out the previous change.

svn path=/trunk/; revision=9603
This commit is contained in:
Guy Harris 2004-01-09 00:34:20 +00:00
parent e1b4e5d968
commit 2357e3c90c
1 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# $Id: configure.in,v 1.241 2004/01/08 22:52:22 guy Exp $
# $Id: configure.in,v 1.242 2004/01/09 00:34:20 guy Exp $
dnl
dnl Process this file with autoconf 2.13 or later to produce a
dnl configure script; 2.12 doesn't generate a "configure" script that
@ -665,18 +665,10 @@ if test "x$NETSNMPCONFIG" != "xno" -a "x$NETSNMPCONFIG" != "x" -a -x "$NETSNMPCO
# searching for the Net-SNMP headers, we look in whatever
# directory that output specifies.
#
# XXX - some versions of net-snmp-config, when run with --cflags,
# might set flags that won't work with cpp, and AC_CHECK_HEADERS
# might use cpp. To work around this, we just use --prefix to
# get the directory in which to search for header files, and
# construct CPPFLAGS from that, although that might miss -D or
# -U flags you get from --cflags; the -I flag should be
# sufficient for AC_CHECK_HEADERS' purpose.
#
ethereal_save_CFLAGS="$CFLAGS"
ethereal_save_CPPFLAGS="$CPPFLAGS"
CFLAGS="$CFLAGS `$NETSNMPCONFIG --cflags`"
CPPFLAGS="$CPPFLAGS -I`$NETSNMPCONFIG --prefix`/include"
CPPFLAGS="$CPPFLAGS `$NETSNMPCONFIG --cflags`"
AC_CHECK_HEADERS(net-snmp/net-snmp-config.h net-snmp/library/default_store.h)
if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = "xyes" -a "x$ac_cv_header_net_snmp_library_default_store_h" = "xyes" ; then