提交 1608b4fb 编写于 作者: I ihse

8176467: --with-cacerts-file should fail during configure if file does not exist

Reviewed-by: erikj
上级 51089cb1
......@@ -5115,7 +5115,7 @@ VS_SDK_PLATFORM_NAME_2013=
#CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1506329089
DATE_WHEN_GENERATED=1506329225
###############################################################################
#
......@@ -25080,8 +25080,20 @@ if test "${with_cacerts_file+set}" = set; then :
withval=$with_cacerts_file;
fi
if test "x$with_cacerts_file" != x; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
$as_echo_n "checking for cacerts file... " >&6; }
if test "x$with_cacerts_file" == x; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
$as_echo "default" >&6; }
else
CACERTS_FILE=$with_cacerts_file
if test ! -f "$CACERTS_FILE"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
$as_echo "fail" >&6; }
as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
$as_echo "$CACERTS_FILE" >&6; }
fi
......@@ -206,8 +206,16 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
# Choose cacerts source file
AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file],
[specify alternative cacerts file])])
if test "x$with_cacerts_file" != x; then
AC_MSG_CHECKING([for cacerts file])
if test "x$with_cacerts_file" == x; then
AC_MSG_RESULT([default])
else
CACERTS_FILE=$with_cacerts_file
if test ! -f "$CACERTS_FILE"; then
AC_MSG_RESULT([fail])
AC_MSG_ERROR([Specified cacerts file "$CACERTS_FILE" does not exist])
fi
AC_MSG_RESULT([$CACERTS_FILE])
fi
AC_SUBST(CACERTS_FILE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册