]> git.saurik.com Git - wxWidgets.git/blobdiff - configure
[ 1559479 ] wxImageComboBox
[wxWidgets.git] / configure
index 2975718ef319fe417c12b763d3aa081759c9e824..0c626d1550ca4b40320d9a9c8d961daa482d88f4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1041,6 +1041,7 @@ Optional Features:
   --enable-accel          use accelerators
   --enable-button         use wxButton class
   --enable-bmpbutton      use wxBitmapButton class
+  --enable-bmpcombobox    use wxBitmapComboBox class
   --enable-calendar       use wxCalendarCtrl class
   --enable-caret          use wxCaret class
   --enable-checkbox       use wxCheckBox class
@@ -2302,6 +2303,7 @@ if test $DEBUG_CONFIGURE = 1; then
   DEFAULT_wxUSE_ACCEL=no
   DEFAULT_wxUSE_BUTTON=no
   DEFAULT_wxUSE_BMPBUTTON=no
+  DEFAULT_wxUSE_BITMAPCOMBOBOX=no
   DEFAULT_wxUSE_CALCTRL=no
   DEFAULT_wxUSE_CARET=no
   DEFAULT_wxUSE_CHECKBOX=no
@@ -2514,6 +2516,7 @@ else
   DEFAULT_wxUSE_ACCEL=yes
   DEFAULT_wxUSE_BUTTON=yes
   DEFAULT_wxUSE_BMPBUTTON=yes
+  DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
   DEFAULT_wxUSE_CALCTRL=yes
   DEFAULT_wxUSE_CARET=yes
   DEFAULT_wxUSE_CHECKBOX=yes
@@ -7927,6 +7930,47 @@ echo "${ECHO_T}no" >&6
           fi
 
 
+         enablestring=
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
+          no_cache=0
+          # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
+if test "${enable_bmpcombobox+set}" = set; then
+  enableval="$enable_bmpcombobox"
+
+                          if test "$enableval" = yes; then
+                            ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
+                          else
+                            ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
+                          fi
+
+else
+
+                          LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
+                          if test "x$LINE" != x ; then
+                            eval "DEFAULT_$LINE"
+                          else
+                            no_cache=1
+                          fi
+
+                          ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
+
+fi;
+
+          eval "$ac_cv_use_bmpcombobox"
+          if test "$no_cache" != 1; then
+            echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
+          fi
+
+          if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
+            echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+          else
+            echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+          fi
+
+
          enablestring=
           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
@@ -28555,22 +28599,25 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
             LIBS="$LIBS $wx_cv_libs_gtk"
 
-                                                            echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
-echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
-            cat >conftest.$ac_ext <<_ACEOF
+                                                            echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
+echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
+if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-
-                            #include <gtk/gtk.h>
+#include <gtk/gtk.h>
 
 int
 main ()
 {
-
-                            void *f = gtk_icon_size_lookup;
+#ifndef gtk_icon_size_lookup
+  char *p = (char *) gtk_icon_size_lookup;
+#endif
 
   ;
   return 0;
@@ -28598,24 +28645,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-
-                            echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-
+  ac_cv_have_decl_gtk_icon_size_lookup=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_have_decl_gtk_icon_size_lookup=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
+echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
+if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
 
-                            cat >>confdefs.h <<\_ACEOF
-#define NEED_GTK_ICON_SIZE_LOOKUP 1
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
 _ACEOF
 
-                            echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
+
+else
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
+_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
+#define NEED_GTK_ICON_SIZE_LOOKUP 1
+_ACEOF
 
 fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+
 
                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
@@ -45517,6 +45576,14 @@ _ACEOF
   USES_CONTROLS=1
 fi
 
+if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
+  cat >>confdefs.h <<\_ACEOF
+#define wxUSE_BITMAPCOMBOBOX 1
+_ACEOF
+
+  USES_CONTROLS=1
+fi
+
 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
   cat >>confdefs.h <<\_ACEOF
 #define wxUSE_DATAVIEWCTRL 1