aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-04-28 02:24:46 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-04-28 02:24:46 +0000
commited8ea7bb34e77a3db37d961894ac358d766ce317 (patch)
tree08b281040b9d9aecb631439138b09feb5694c454 /acinclude.m4
parent9cb00ac9fcb82607a34f74930ea923f1441377bd (diff)
After testing for the presence of python-config, fix typo so that we actually
test whether we found it or not. If the user asked for Python support, error out if we find we can't use it. svn path=/trunk/; revision=36924
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m424
1 files changed, 20 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2ef985fe73..56beb9e7a0 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -363,7 +363,7 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
#
CFLAGS="$CFLAGS `\"$PCAP_CONFIG\" --cflags`"
CPPFLAGS="$CPPFLAGS `\"$PCAP_CONFIG\" --cflags`"
- else
+ else
#
# Didn't find it; we have to look for libpcap ourselves.
# We assume that the current library search path will work,
@@ -1839,9 +1839,17 @@ AC_DEFUN([AC_WIRESHARK_PYTHON_CHECK],
#
# AC_CACHE_CHECK([checking python devel package], ac_cv_wireshark_python_devel,
# [
- AC_CHECK_PROG([ac_ws_python_config], [python-config], "yes", "no")
- if test ac_ws_python_config = "no"; then
- ac_cv_wireshark_python_devel = "no"
+ AC_CHECK_PROG([ac_ws_python_config], python-config, "yes", "no")
+ if test "x$ac_ws_python_config" = "xno"; then
+ ac_cv_wireshark_python_devel=no
+ if test "x$want_python" = "xyes"
+ then
+ #
+ # The user tried to force us to use Python, but we
+ # couldn't find the python-config tool; report an error.
+ #
+ AC_MSG_ERROR("python-config not found")
+ fi
else
AC_MSG_CHECKING([python devel])
ac_save_ws_cflags=$CFLAGS
@@ -1876,6 +1884,14 @@ AC_DEFUN([AC_WIRESHARK_PYTHON_CHECK],
ac_cv_wireshark_python_devel=no
CFLAGS=$ac_save_ws_cflags
LIBS=$ac_save_ws_libs
+ if test "x$want_python" = "xyes"
+ then
+ #
+ # The user tried to force us to use Python, but we
+ # couldn't compile the test program; report an error.
+ #
+ AC_MSG_ERROR("Python test program failed compilation")
+ fi
AC_MSG_RESULT([no])
])
fi