-# Check whether --with-ssl-mailgate was given.
-if test "${with_ssl_mailgate+set}" = set; then :
- withval=$with_ssl_mailgate; RT_SSL_MAILGATE=$withval
+
+# Extract the first word of "openssl", so it can be a program name with args.
+set dummy openssl; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_RT_SMIME_DEPS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RT_SMIME_DEPS"; then
+ ac_cv_prog_RT_SMIME_DEPS="$RT_SMIME_DEPS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RT_SMIME_DEPS=""yes""
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_prog_RT_SMIME_DEPS" && ac_cv_prog_RT_SMIME_DEPS=""no""
+fi
+fi
+RT_SMIME_DEPS=$ac_cv_prog_RT_SMIME_DEPS
+if test -n "$RT_SMIME_DEPS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_SMIME_DEPS" >&5
+$as_echo "$RT_SMIME_DEPS" >&6; }