]> git.saurik.com Git - wxWidgets.git/blobdiff - configure
only configure programs which compile without GUI when building wxBase
[wxWidgets.git] / configure
index 97c1bb8191f2c89b35b77666f131baa63c986365..6e86d26164662a9c2dd2437507f30718b1e1d696 100755 (executable)
--- a/configure
+++ b/configure
           ac_config_commands="$ac_config_commands default"
 
 
+if test "$wxUSE_GUI" = "yes"; then
+    SUBDIRS="samples demos utils contrib"
+else         SUBDIRS="samples utils"
+fi
 
-for subdir in samples demos utils contrib ; do
+for subdir in `echo $SUBDIRS`; do
     if test -d ${srcdir}/${subdir} ; then
-        makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+        if test "$wxUSE_GUI" = "yes"; then
+            makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+        else                                     if test ${subdir} = "samples"; then
+                makefiles="samples/console/Makefile.in"
+            else                 makefiles="utils/HelpGen/Makefile.in \
+                           utils/HelpGen/src/Makefile.in \
+                           utils/makegen/Makefile.in"
+            fi
+        fi
+
         for mkin in $makefiles ; do
             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
                       ac_config_files="$ac_config_files $mk"
@@ -34737,7 +34750,6 @@ for subdir in samples demos utils contrib ; do
     fi
 done
 
-
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure