]> git.saurik.com Git - wxWidgets.git/commitdiff
added --enable-aboutdlg
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 12:21:57 +0000 (12:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 12:21:57 +0000 (12:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index f7e7b26977733a4bacd7473f9731ee6316b9e0dd..ea0ae1fdfb02068a383eece9e7d5e14a85e9c6a3 100755 (executable)
--- a/configure
+++ b/configure
@@ -1092,6 +1092,7 @@ Optional Features:
   --enable-tipwindow      use wxTipWindow class
   --enable-popupwin       use wxPopUpWindow class
   --enable-commondlg      use all common dialogs
+  --enable-aboutdlg       use wxAboutBox
   --enable-choicedlg      use wxChoiceDialog
   --enable-coldlg         use wxColourDialog
   --enable-filedlg        use wxFileDialog
@@ -2274,6 +2275,7 @@ if test $DEBUG_CONFIGURE = 1; then
   DEFAULT_wxUSE_URL=no
   DEFAULT_wxUSE_VARIANT=no
 
+  DEFAULT_wxUSE_ABOUTDLG=no
   DEFAULT_wxUSE_COMMONDLGS=no
   DEFAULT_wxUSE_CHOICEDLG=no
   DEFAULT_wxUSE_COLOURDLG=no
@@ -2489,6 +2491,7 @@ else
   DEFAULT_wxUSE_URL=yes
   DEFAULT_wxUSE_VARIANT=yes
 
+  DEFAULT_wxUSE_ABOUTDLG=yes
   DEFAULT_wxUSE_COMMONDLGS=yes
   DEFAULT_wxUSE_CHOICEDLG=yes
   DEFAULT_wxUSE_COLOURDLG=yes
@@ -10039,6 +10042,47 @@ echo "${ECHO_T}no" >&6
           fi
 
 
+         enablestring=
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
+          no_cache=0
+          # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
+if test "${enable_aboutdlg+set}" = set; then
+  enableval="$enable_aboutdlg"
+
+                          if test "$enableval" = yes; then
+                            ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
+                          else
+                            ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
+                          fi
+
+else
+
+                          LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
+                          if test "x$LINE" != x ; then
+                            eval "DEFAULT_$LINE"
+                          else
+                            no_cache=1
+                          fi
+
+                          ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
+
+fi;
+
+          eval "$ac_cv_use_aboutdlg"
+          if test "$no_cache" != 1; then
+            echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
+          fi
+
+          if test "$wxUSE_ABOUTDLG" = 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}-choicedlg" >&5
 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
@@ -45870,6 +45914,13 @@ _ACEOF
 fi
 
 
+if test "$wxUSE_ABOUTDLG" = "yes"; then
+    cat >>confdefs.h <<\_ACEOF
+#define wxUSE_ABOUTDLG 1
+_ACEOF
+
+fi
+
 if test "$wxUSE_CHOICEDLG" = "yes"; then
     cat >>confdefs.h <<\_ACEOF
 #define wxUSE_CHOICEDLG 1
index 4b4efc1eb6ddc32b924cc7c3aab7875fbd813d2d..5129ad0bd2d13a159292a987112ac70aaec8393f 100644 (file)
@@ -478,6 +478,7 @@ if test $DEBUG_CONFIGURE = 1; then
   DEFAULT_wxUSE_URL=no
   DEFAULT_wxUSE_VARIANT=no
 
+  DEFAULT_wxUSE_ABOUTDLG=no
   DEFAULT_wxUSE_COMMONDLGS=no
   DEFAULT_wxUSE_CHOICEDLG=no
   DEFAULT_wxUSE_COLOURDLG=no
@@ -693,6 +694,7 @@ else
   DEFAULT_wxUSE_URL=yes
   DEFAULT_wxUSE_VARIANT=yes
 
+  DEFAULT_wxUSE_ABOUTDLG=yes
   DEFAULT_wxUSE_COMMONDLGS=yes
   DEFAULT_wxUSE_CHOICEDLG=yes
   DEFAULT_wxUSE_COLOURDLG=yes
@@ -1207,6 +1209,7 @@ dnl common dialogs
 dnl ---------------------------------------------------------------------------
 
 WX_ARG_ENABLE(commondlg,   [  --enable-commondlg      use all common dialogs], wxUSE_COMMONDLGS)
+WX_ARG_ENABLE(aboutdlg,    [  --enable-aboutdlg       use wxAboutBox], wxUSE_ABOUTDLG)
 WX_ARG_ENABLE(choicedlg,   [  --enable-choicedlg      use wxChoiceDialog], wxUSE_CHOICEDLG)
 WX_ARG_ENABLE(coldlg,      [  --enable-coldlg         use wxColourDialog], wxUSE_COLOURDLG)
 WX_ARG_ENABLE(filedlg,     [  --enable-filedlg        use wxFileDialog], wxUSE_FILEDLG)
@@ -6952,6 +6955,10 @@ dnl ---------------------------------------------------------------------------
 dnl common dialogs
 dnl ---------------------------------------------------------------------------
 
+if test "$wxUSE_ABOUTDLG" = "yes"; then
+    AC_DEFINE(wxUSE_ABOUTDLG)
+fi
+
 if test "$wxUSE_CHOICEDLG" = "yes"; then
     AC_DEFINE(wxUSE_CHOICEDLG)
 fi