mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[configure.ac] -std=c++17 for C++ build
This commit is contained in:
parent
1e27359afa
commit
3d58236d15
22
configure.ac
22
configure.ac
@ -727,21 +727,8 @@ for package in mozjs-78; do
|
|||||||
LIBS="$SPIDERMONKEY_LIBS $LIBS_X"
|
LIBS="$SPIDERMONKEY_LIBS $LIBS_X"
|
||||||
CFLAGS="$CFLAGS_X $SPIDERMONKEY_CFLAGS"
|
CFLAGS="$CFLAGS_X $SPIDERMONKEY_CFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS_X $SPIDERMONKEY_CFLAGS"
|
CPPFLAGS="$CPPFLAGS_X $SPIDERMONKEY_CFLAGS"
|
||||||
AC_LANG_PUSH([C++])
|
CONFIG_SPIDERMONKEY=yes
|
||||||
AC_LINK_IFELSE(
|
AC_MSG_RESULT([yes])
|
||||||
[AC_LANG_PROGRAM([[
|
|
||||||
/* mozilla-js.pc may have -DXP_UNIX or similar in Cflags.
|
|
||||||
* Avoid warnings about conflicting definitions. */
|
|
||||||
#if !defined(XP_BEOS) && !defined(XP_OS2) && !defined(XP_UNIX) && !defined(XP_WIN)
|
|
||||||
# define XP_UNIX 1
|
|
||||||
#endif
|
|
||||||
#include <jsapi.h>
|
|
||||||
]], [])],
|
|
||||||
[CONFIG_SPIDERMONKEY=yes
|
|
||||||
AC_MSG_RESULT([yes])],
|
|
||||||
[# Leave CONFIG_SPIDERMONKEY blank, to continue the search.
|
|
||||||
AC_MSG_RESULT([found but unusable])])
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
@ -799,7 +786,7 @@ if test "x$CONFIG_ECMASCRIPT_SMJS" = xyes ||
|
|||||||
AC_SUBST(SPIDERMONKEY_CFLAGS)
|
AC_SUBST(SPIDERMONKEY_CFLAGS)
|
||||||
AC_SUBST(CONFIG_SPIDERMONKEY)
|
AC_SUBST(CONFIG_SPIDERMONKEY)
|
||||||
AC_SUBST(CONFIG_XML)
|
AC_SUBST(CONFIG_XML)
|
||||||
CFLAGS="$CFLAGS -fpermissive $SPIDERMONKEY_CFLAGS"
|
CFLAGS="$CFLAGS -fpermissive -std=c++17 $SPIDERMONKEY_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$CONFIG_QUICKJS" = xyes; then
|
if test "x$CONFIG_QUICKJS" = xyes; then
|
||||||
@ -807,7 +794,7 @@ if test "x$CONFIG_QUICKJS" = xyes; then
|
|||||||
EL_CONFIG(CONFIG_QUICKJS, [quickjs])
|
EL_CONFIG(CONFIG_QUICKJS, [quickjs])
|
||||||
AC_SUBST(CONFIG_QUICKJS)
|
AC_SUBST(CONFIG_QUICKJS)
|
||||||
AC_SUBST(CONFIG_XML)
|
AC_SUBST(CONFIG_XML)
|
||||||
CFLAGS="$CFLAGS -fpermissive"
|
CFLAGS="$CFLAGS -fpermissive -std=c++17"
|
||||||
fi
|
fi
|
||||||
# ===================================================================
|
# ===================================================================
|
||||||
# Check for Guile, optional even if installed.
|
# Check for Guile, optional even if installed.
|
||||||
@ -1613,7 +1600,6 @@ EL_ARG_ENABLE(CONFIG_UTF8, utf-8, [UTF-8],
|
|||||||
EL_ARG_DEPEND(CONFIG_COMBINE, combining, [CONFIG_UTF8:yes HAVE_WCWIDTH:yes], [Combining characters],
|
EL_ARG_DEPEND(CONFIG_COMBINE, combining, [CONFIG_UTF8:yes HAVE_WCWIDTH:yes], [Combining characters],
|
||||||
[ --enable-combining support Unicode combining characters (experimental)])
|
[ --enable-combining support Unicode combining characters (experimental)])
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(weehoofooboomookerchoo,
|
AC_ARG_ENABLE(weehoofooboomookerchoo,
|
||||||
[
|
[
|
||||||
Also check out the features.conf file for more information about features!
|
Also check out the features.conf file for more information about features!
|
||||||
|
Loading…
Reference in New Issue
Block a user