fix build on multiple versions of wx-config
[ctsim.git] / configure
index 8c25f9cd7ddd34ab22773397d5e7c5d5f2fe3edb..9e1d2ff203452ab761ccc4925755d369ac3745be 100755 (executable)
--- a/configure
+++ b/configure
@@ -4969,7 +4969,7 @@ echo "${ECHO_T}no" >&6; }
 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
@@ -11133,7 +11133,7 @@ echo "${ECHO_T}yes" >&6; }
     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