git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47499
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
AC_DEFUN([WX_ARG_WITH],
[
withstring=$4
AC_DEFUN([WX_ARG_WITH],
[
withstring=$4
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
AC_MSG_CHECKING([for --${withstring:-with}-$1])
no_cache=0
AC_ARG_WITH($1, [$2],
AC_MSG_CHECKING([for --${withstring:-with}-$1])
no_cache=0
AC_ARG_WITH($1, [$2],
- AS_TR_SH(wx_cv_use_$1)='$3=${'DEFAULT_$3":-$wxUSE_ALL_FEATURES}"
+ AS_TR_SH(wx_cv_use_$1)='$3=${'DEFAULT_$3":-$defaultval}"
])
eval "$AS_TR_SH(wx_cv_use_$1)"
])
eval "$AS_TR_SH(wx_cv_use_$1)"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$withstring" = xwithout; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
no_cache=0
{ echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
no_cache=0
- wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$wxUSE_ALL_FEATURES}"
+ wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"