+
+# handle libraries list:
+
+libs_list=""
+
+for arg in $*; do
+ case "$arg" in
+ -*)
+ ;;
+ *)
+ libs_list="$libs_list `echo "$arg" | tr ',' ' '`"
+ ;;
+ esac
+done
+
+if test "x$libs_list" = "x" ; then
+ if test "$is_monolithic" = "0" ; then
+ # link against all libs if none given explicitly:
+ libs_list="$CORE_GUI_LIBS $CORE_BASE_LIBS"
+ fi
+else
+ # always add wxBase, any wxApp needs it:
+ libs_list="$libs_list base"
+fi
+
+# determine if at least one gui lib was used:
+nogui_flag="yes"
+for i in $libs_list; do
+ case $i in
+ base|net)
+ ;;
+ *)
+ nogui_flag="no"
+ ;;
+ esac
+done
+
+
+# handle options:
+