fi
-if ! "$wxconfig" ; then
+if test -z "$wxconfig" ; then
# Extract the first word of "wx-config", so it can be a program name with args.
set dummy wx-config; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
ctlib_graphics="$ctlib_graphics -lGL -lGLU"
if test "$wxwin" = "true" ; then
if "$wx_gtk" ; then
- ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
+ ctlib_graphics="$ctlib_graphics `$wxconfig --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
elif "$wx_mac" ; then
ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
fi