AC_LANG_SAVE
AC_LANG_CPLUSPLUS
- AC_CHECK_HEADERS(iostream)
+ AC_CHECK_HEADER(iostream,,, [ ])
if test "$ac_cv_header_iostream" = "yes" ; then
ifelse([$1], , :, [$1])
fi
],
[
- LINE=`grep "$3" ${wx_arg_cache_file}`
+ LINE=`grep "^$3=" ${wx_arg_cache_file}`
if test "x$LINE" != x ; then
eval "DEFAULT_$LINE"
else
fi
],
[
- LINE=`grep "$3" ${wx_arg_cache_file}`
+ LINE=`grep "^$3=" ${wx_arg_cache_file}`
if test "x$LINE" != x ; then
eval "DEFAULT_$LINE"
else
fi
],
[
- LINE=`grep "$3" ${wx_arg_cache_file}`
+ LINE=`grep "^$3=" ${wx_arg_cache_file}`
if test "x$LINE" != x ; then
eval "DEFAULT_$LINE"
else
dnl --enable-foo wxUSE_FOO=yes
dnl --disable-foo wxUSE_FOO=no
dnl --enable-foo=bar wxUSE_FOO=bar
-dnl <not given> value from configarg.cache or wxUSE_FOO=no
+dnl <not given> value from configarg.cache or
+dnl wxUSE_FOO=$DEFAULT_wxUSE_FOO
dnl
AC_DEFUN([WX_ARG_ENABLE_PARAM],
[
wx_cv_use_$1="$3='$enableval'"
],
[
- LINE=`grep "$3" ${wx_arg_cache_file}`
+ LINE=`grep "^$3=" ${wx_arg_cache_file}`
if test "x$LINE" != x ; then
eval "DEFAULT_$LINE"
- wx_cv_use_$1='$3='$DEFAULT_$3
else
no_cache=1
- wx_cv_use_$1="$3=no"
fi
+
+ wx_cv_use_$1='$3='$DEFAULT_$3
])
eval "$wx_cv_use_$1"