mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
Added "--enable-unicode" option to configure. This adds -DUNICODE to
SYS_DEFS (which also covers the demos). Users must still define UNICODE before including curses.h.
This commit is contained in:
16
configure
vendored
16
configure
vendored
@@ -847,6 +847,7 @@ Optional Features:
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--enable-debug turn on debugging
|
||||
--enable-latin1 include support for LATIN1 keys
|
||||
--enable-unicode include support for Unicode
|
||||
--enable-purify link with Purify (TM)
|
||||
|
||||
Optional Packages:
|
||||
@@ -5068,6 +5069,17 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
# Check whether --enable-unicode or --disable-unicode was given.
|
||||
if test "${enable_unicode+set}" = set; then
|
||||
enableval="$enable_unicode"
|
||||
with_unicode=$enableval
|
||||
else
|
||||
with_unicode=no
|
||||
fi;
|
||||
if test "$with_unicode" = yes; then
|
||||
SYS_DEFS="$SYS_DEFS -DUNICODE"
|
||||
fi
|
||||
|
||||
# Check whether --enable-purify or --disable-purify was given.
|
||||
if test "${enable_purify+set}" = set; then
|
||||
enableval="$enable_purify"
|
||||
@@ -5298,7 +5310,7 @@ echo "$as_me:$LINENO: checking compiler flags for a dynamic object" >&5
|
||||
echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6
|
||||
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 5301 "configure"
|
||||
#line 5313 "configure"
|
||||
int a=0
|
||||
EOF
|
||||
|
||||
@@ -5337,7 +5349,7 @@ echo "${ECHO_T}none of $mh_cv_flags supported" >&6
|
||||
|
||||
mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 5340 "configure"
|
||||
#line 5352 "configure"
|
||||
int foo()
|
||||
{
|
||||
return(0);
|
||||
|
||||
11
configure.ac
11
configure.ac
@@ -153,6 +153,17 @@ if test "$with_latin1" = yes; then
|
||||
AC_DEFINE(INCLUDE_LATIN1)
|
||||
fi
|
||||
|
||||
dnl ----------------- check for Unicode support ---------------------
|
||||
dnl allow --enable-unicode to include Unicode support
|
||||
AC_ARG_ENABLE(unicode,
|
||||
[ --enable-unicode include support for Unicode],
|
||||
[with_unicode=$enableval],
|
||||
[with_unicode=no],
|
||||
)
|
||||
if test "$with_unicode" = yes; then
|
||||
SYS_DEFS="$SYS_DEFS -DUNICODE"
|
||||
fi
|
||||
|
||||
dnl ----------------- check for Purify support -----------------------
|
||||
dnl allow --enable-purify to enable linking with Purify
|
||||
AC_ARG_ENABLE(purify,
|
||||
|
||||
Reference in New Issue
Block a user