+
+# Extract the first word of "gdlib-config", so it can be a program name with args.
+set dummy gdlib-config; 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_GD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RT_GD"; then
+ ac_cv_prog_RT_GD="$RT_GD" # 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_GD=""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_GD" && ac_cv_prog_RT_GD=""no""
+fi
+fi
+RT_GD=$ac_cv_prog_RT_GD
+if test -n "$RT_GD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GD" >&5
+$as_echo "$RT_GD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+# Check whether --with-gd was given.
+if test "${with_gd+set}" = set; then :
+ withval=$with_gd; RT_GD=$withval
+fi
+
+# Check whether --enable-gd was given.
+if test "${enable_gd+set}" = set; then :
+ enableval=$enable_gd; RT_GD=$enableval
+fi
+
+if test "$RT_GD" = yes; then
+ RT_GD="1"
+else
+ RT_GD="0"
+fi
+
+
+# Extract the first word of "gpg", so it can be a program name with args.
+set dummy gpg; 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_GPG_DEPS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RT_GPG_DEPS"; then
+ ac_cv_prog_RT_GPG_DEPS="$RT_GPG_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_GPG_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_GPG_DEPS" && ac_cv_prog_RT_GPG_DEPS=""no""
+fi
+fi
+RT_GPG_DEPS=$ac_cv_prog_RT_GPG_DEPS
+if test -n "$RT_GPG_DEPS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RT_GPG_DEPS" >&5
+$as_echo "$RT_GPG_DEPS" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$RT_GPG_DEPS" = yes; then
+ RT_GPG_DEPS="1"
+else
+ RT_GPG_DEPS="0"
+fi
+# Check whether --enable-gpg was given.
+if test "${enable_gpg+set}" = set; then :
+ enableval=$enable_gpg; RT_GPG=$enableval
+fi
+
+if test "$RT_GPG" = yes; then
+ RT_GPG="1"
+ RT_GPG_DEPS="1"
+else
+ if test "$RT_GPG" = no; then
+ RT_GPG="0"
+ RT_GPG_DEPS="0"
+ else
+ RT_GPG="0"
+ fi
+fi
+
+
+
+
+# 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; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+if test "$RT_SMIME_DEPS" = yes; then
+ RT_SMIME_DEPS="1"
+else
+ RT_SMIME_DEPS="0"
+fi
+# Check whether --enable-smime was given.
+if test "${enable_smime+set}" = set; then :
+ enableval=$enable_smime; RT_SMIME=$enableval
+fi
+
+if test "$RT_SMIME" = yes; then
+ RT_SMIME="1"
+ RT_SMIME_DEPS="1"
+else
+ if test "$RT_SMIME" = no; then
+ RT_SMIME="0"
+ RT_SMIME_DEPS="0"
+ else
+ RT_SMIME="0"
+ fi
+fi
+
+
+
+
+
+RT_VERSION_MAJOR=${rt_version_major}
+
+RT_VERSION_MINOR=${rt_version_minor}
+
+RT_VERSION_PATCH=${rt_version_patch}
+
+
+RT_PATH=${exp_prefix}
+
+RT_DOC_PATH=${exp_manualdir}
+
+RT_LOCAL_PATH=${exp_customdir}
+
+RT_LIB_PATH=${exp_libdir}
+
+RT_LEXICON_PATH=${exp_lexdir}
+
+RT_STATIC_PATH=${exp_staticdir}
+
+RT_ETC_PATH=${exp_sysconfdir}
+
+CONFIG_FILE_PATH=${exp_sysconfdir}
+
+RT_BIN_PATH=${exp_bindir}
+
+RT_SBIN_PATH=${exp_sbindir}
+
+RT_VAR_PATH=${exp_localstatedir}
+
+RT_MAN_PATH=${exp_mandir}
+
+RT_FONT_PATH=${exp_fontdir}
+
+RT_PLUGIN_PATH=${exp_plugindir}
+
+MASON_DATA_PATH=${exp_masonstatedir}
+
+MASON_SESSION_PATH=${exp_sessionstatedir}
+
+MASON_HTML_PATH=${exp_htmldir}
+
+LOCAL_ETC_PATH=${exp_custometcdir}
+
+MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
+
+LOCAL_LEXICON_PATH=${exp_customlexdir}
+
+LOCAL_STATIC_PATH=${exp_customstaticdir}
+
+LOCAL_LIB_PATH=${exp_customlibdir}
+
+LOCAL_PLUGIN_PATH=${exp_customplugindir}
+
+RT_LOG_PATH=${exp_logfiledir}
+
+
+if test ${exp_sysconfdir} = "etc" -o ${exp_sysconfdir} = "etc/rt"; then
+RT_PATH_R=${exp_prefix}
+
+RT_DOC_PATH_R=${exp_prefix}/${exp_manualdir}
+
+RT_LOCAL_PATH_R=${exp_prefix}/${exp_customdir}
+
+RT_LIB_PATH_R=${exp_prefix}/${exp_libdir}
+
+RT_ETC_PATH_R=${exp_prefix}/${exp_sysconfdir}
+
+CONFIG_FILE_PATH_R=${exp_prefix}/${exp_sysconfdir}
+
+RT_BIN_PATH_R=${exp_prefix}/${exp_bindir}
+
+RT_SBIN_PATH_R=${exp_prefix}/${exp_sbindir}
+
+RT_VAR_PATH_R=${exp_prefix}/${exp_localstatedir}
+
+RT_MAN_PATH_R=${exp_prefix}/${exp_mandir}
+
+RT_FONT_PATH_R=${exp_prefix}/${exp_fontdir}
+
+RT_LEXICON_PATH_R=${exp_prefix}/${exp_lexdir}
+
+RT_STATIC_PATH_R=${exp_prefix}/${exp_staticdir}
+
+RT_PLUGIN_PATH_R=${exp_prefix}/${exp_plugindir}
+
+MASON_DATA_PATH_R=${exp_prefix}/${exp_masonstatedir}
+
+MASON_SESSION_PATH_R=${exp_prefix}/${exp_sessionstatedir}
+
+MASON_HTML_PATH_R=${exp_prefix}/${exp_htmldir}
+
+LOCAL_ETC_PATH_R=${exp_prefix}/${exp_custometcdir}
+
+MASON_LOCAL_HTML_PATH_R=${exp_prefix}/${exp_customhtmldir}
+
+LOCAL_LEXICON_PATH_R=${exp_prefix}/${exp_customlexdir}
+
+LOCAL_STATIC_PATH_R=${exp_prefix}/${exp_customstaticdir}
+
+LOCAL_LIB_PATH_R=${exp_prefix}/${exp_customlibdir}
+
+LOCAL_PLUGIN_PATH_R=${exp_prefix}/${exp_customplugindir}
+
+RT_LOG_PATH_R=${exp_prefix}/${exp_logfiledir}
+
+else
+RT_PATH_R=${exp_prefix}
+
+RT_DOC_PATH_R=${exp_manualdir}
+
+RT_LOCAL_PATH_R=${exp_customdir}
+
+RT_LIB_PATH_R=${exp_libdir}
+
+RT_LEXICON_PATH_R=${exp_lexdir}
+
+RT_STATIC_PATH_R=${exp_staticdir}
+
+RT_ETC_PATH_R=${exp_sysconfdir}
+
+RT_PLUGIN_PATH_R=${exp_plugindir}
+
+CONFIG_FILE_PATH_R=${exp_sysconfdir}
+
+RT_BIN_PATH_R=${exp_bindir}
+
+RT_SBIN_PATH_R=${exp_sbindir}
+
+RT_VAR_PATH_R=${exp_localstatedir}
+
+RT_MAN_PATH_R=${exp_mandir}
+
+RT_FONT_PATH_R=${exp_fontdir}
+
+MASON_DATA_PATH_R=${exp_masonstatedir}
+
+MASON_SESSION_PATH_R=${exp_sessionstatedir}
+
+MASON_HTML_PATH_R=${exp_htmldir}
+
+LOCAL_ETC_PATH_R=${exp_custometcdir}
+
+MASON_LOCAL_HTML_PATH_R=${exp_customhtmldir}
+
+LOCAL_LEXICON_PATH_R=${exp_customlexdir}
+
+LOCAL_STATIC_PATH_R=${exp_customstaticdir}
+
+LOCAL_PLUGIN_PATH_R=${exp_customplugindir}
+
+LOCAL_LIB_PATH_R=${exp_customlibdir}
+
+RT_LOG_PATH_R=${exp_logfiledir}
+
+
+fi
+
+
+ac_config_files="$ac_config_files etc/upgrade/3.8-ical-extension etc/upgrade/4.0-customfield-checkbox-extension etc/upgrade/generate-rtaddressregexp etc/upgrade/sanity-check-stylesheets etc/upgrade/shrink-cgm-table etc/upgrade/shrink-transactions-table etc/upgrade/split-out-cf-categories etc/upgrade/switch-templates-to etc/upgrade/time-worked-history etc/upgrade/upgrade-articles etc/upgrade/vulnerable-passwords sbin/rt-attributes-viewer sbin/rt-preferences-viewer sbin/rt-session-viewer sbin/rt-dump-metadata sbin/rt-setup-database sbin/rt-test-dependencies sbin/rt-email-digest sbin/rt-email-dashboards sbin/rt-clean-sessions sbin/rt-shredder sbin/rt-validator sbin/rt-validate-aliases sbin/rt-email-group-admin sbin/rt-server sbin/rt-server.fcgi sbin/standalone_httpd sbin/rt-setup-fulltext-index sbin/rt-fulltext-indexer sbin/rt-serializer sbin/rt-importer bin/rt-crontool bin/rt-mailgate bin/rt"
+
+
+ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT/Generated.pm t/data/configs/apache2.2+mod_perl.conf t/data/configs/apache2.2+fastcgi.conf"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then branch to the quote section. Otherwise,
+# look for a macro that doesn't take arguments.
+ac_script='
+:mline
+/\\$/{
+ N
+ s,\\\n,,
+ b mline
+}
+t clear
+:clear
+s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g