In AC_WIRESHARK_GCC_CFLAGS_CHECK() don't check if $3 (the program to be run)
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 4 Jan 2013 02:12:51 +0000 (02:12 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 4 Jan 2013 02:12:51 +0000 (02:12 -0000)
commit3be49bedd126c4a4446d6f05fafe653fa2578b03
tree22502b2c5c29ef9b000979ad6a6759d0bbf35204
parent6ea36c51c3b912d139833f033bd5d23649e9aea3
In AC_WIRESHARK_GCC_CFLAGS_CHECK() don't check if $3 (the program to be run)
exists by doing:

if test "x$3" != "x" ; then

because if the program contains quotes it breaks the shell's parsing.
Instead test for the existence of $4 (which is mandatory if $3 is given).

Fix up the test program for -Wlogical-op so that it actually compiles
warning-free (at least on my system) when the compiler doesn't have the bug
we're checking for.

svn path=/trunk/; revision=46926
acinclude.m4
configure.ac