--- configure.ac.orig 2012-08-13 02:35:26.000000000 -0500
+++ configure.ac 2013-02-07 18:07:04.000000000 -0600
dnl> generate the config header
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS([config.h])
echo "Checking C compiler program and features..."
-if test ".${ac_cv_prog_cc_stdc}" = ".no"; then
- echo "*******************************************************************"
- echo "* WARNING: Attempting to configure for non ANSI standard C."
- echo "*>>> This is unsupported."
- echo "*>>> It will probably fail."
- echo "* You are welcome to try - but please, keep the ntop-dev"
- echo "* mailing list updated with your successes or failures..."
- echo "*******************************************************************"
dnl> NTOPCONFIGDEBUG_SETTINGS([After cc stdc test])
LOCALEDIR="/usr/lib/locale"
-dnl> Add /usr/local/ /opt/local
-CFLAGS="${CFLAGS} -I/usr/local/include -I/opt/local/include"
-CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/opt/local/include"
-LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/opt/local/lib"
AC_CHECK_TOOL(PYTHON, python-config)
+ PYTHON_CONFIG="$ac_cv_prog_ac_ct_PYTHON"
- if test "x$ac_cv_prog_ac_ct_PYTHON" != "xpython-config"; then
- if test -f "/etc/debian_version"; then
- AC_MSG_RESULT(Please install python-dev and rerun configure)
- AC_MSG_RESULT(>>>> Unable to locate python-config: using workaround <<<<)
- dnl> Silly workaround for RedHat-like distro
- AC_CHECK_TOOL(PYTHON, python)
- if test "x$ac_cv_prog_ac_ct_PYTHON" = "xpython"; then
- PYTHON_CONFIG="./configureextra/python-config"
- PYTHON_CONFIG="python-config"
- PYTHON_CONFIG="python-config"
if test "x$PYTHON_CONFIG" != "x"; then
PYTHON_LIBS="`$PYTHON_CONFIG --libs`"
echo "#endif /* MEMORY_DEBUG */" >> version.c
- if test -f /usr/bin/glibtool; then
- ln -s /usr/bin/glibtool libtool
- echo "Copying patched versions of some configure-related files for Mac OS X"
- cp packages/MacOSX/lt* .
- if test -f /usr/bin/libtool; then
- ln -s /usr/bin/libtool libtool