fix build on multiple versions of wx-config
[ctsim.git] / configure.ac
index f0c72fefd4cbeac126fcfdc4c9faa8b5ae481142..78bcb8a1bf64ff381034bf1eb3863b3f40bad0d3 100644 (file)
@@ -20,7 +20,7 @@ AC_PROG_CXX
 AC_C_BIGENDIAN
 
 AC_PATH_PROG(wxconfig,wxgtk-2.4-config)
-if [ ! "$wxconfig" ]; then
+if test -z "$wxconfig" ; then
   AC_PATH_PROG(wxconfig,wx-config)
 fi
 
@@ -338,7 +338,7 @@ if test "$with_x" != "no" && test "$wxwin" = "true"; then
     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