-# No need to generate the scripts if there are no CONFIG_FILES.
-# This happens for instance when ./config.status config.h
-if test -n "$CONFIG_FILES"; then
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
- s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
-s,@SHELL@,/bin/sh,;t t
-s,@PATH_SEPARATOR@,:,;t t
-s,@PACKAGE_NAME@,RT,;t t
-s,@PACKAGE_TARNAME@,rt,;t t
-s,@PACKAGE_VERSION@,3.0.9,;t t
-s,@PACKAGE_STRING@,RT 3.0.9,;t t
-s,@PACKAGE_BUGREPORT@,rt-3.0-bugs@fsck.com,;t t
-s,@exec_prefix@,/opt/rt3,;t t
-s,@prefix@,/opt/rt3,;t t
-s,@program_transform_name@,s,x,x,,;t t
-s,@bindir@,/opt/rt3/bin,;t t
-s,@sbindir@,/opt/rt3/sbin,;t t
-s,@libexecdir@,${exec_prefix}/libexec,;t t
-s,@datadir@,/opt/rt3/share,;t t
-s,@sysconfdir@,/opt/rt3/etc,;t t
-s,@sharedstatedir@,${prefix}/com,;t t
-s,@localstatedir@,/opt/rt3/var,;t t
-s,@libdir@,/opt/rt3/lib,;t t
-s,@includedir@,${prefix}/include,;t t
-s,@oldincludedir@,/usr/include,;t t
-s,@infodir@,${prefix}/info,;t t
-s,@mandir@,/opt/rt3/man,;t t
-s,@build_alias@,,;t t
-s,@host_alias@,,;t t
-s,@target_alias@,,;t t
-s,@DEFS@,-DPACKAGE_NAME=\"RT\" -DPACKAGE_TARNAME=\"rt\" -DPACKAGE_VERSION=\"3.0.9\" -DPACKAGE_STRING=\"RT\ 3.0.9\" -DPACKAGE_BUGREPORT=\"rt-3.0-bugs@fsck.com\" ,;t t
-s,@ECHO_C@,,;t t
-s,@ECHO_N@,-n,;t t
-s,@ECHO_T@,,;t t
-s,@LIBS@,,;t t
-s,@rt_version_major@,3,;t t
-s,@rt_version_minor@,0,;t t
-s,@rt_version_patch@,9,;t t
-s,@INSTALL_PROGRAM@,${INSTALL},;t t
-s,@INSTALL_SCRIPT@,${INSTALL},;t t
-s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
-s,@PERL@,/usr/bin/perl,;t t
-s,@SPEEDY_BIN@,/usr/local/bin/speedy,;t t
-s,@exp_prefix@,/opt/rt3,;t t
-s,@exp_exec_prefix@,/opt/rt3,;t t
-s,@exp_bindir@,/opt/rt3/bin,;t t
-s,@exp_sbindir@,/opt/rt3/sbin,;t t
-s,@exp_sysconfdir@,/opt/rt3/etc,;t t
-s,@exp_mandir@,/opt/rt3/man,;t t
-s,@exp_libdir@,/opt/rt3/lib,;t t
-s,@exp_datadir@,/opt/rt3/share,;t t
-s,@htmldir@,/opt/rt3/share/html,;t t
-s,@exp_htmldir@,/opt/rt3/share/html,;t t
-s,@manualdir@,/opt/rt3/share/doc,;t t
-s,@exp_manualdir@,/opt/rt3/share/doc,;t t
-s,@exp_localstatedir@,/opt/rt3/var,;t t
-s,@logfiledir@,/opt/rt3/var/log,;t t
-s,@exp_logfiledir@,/opt/rt3/var/log,;t t
-s,@masonstatedir@,/opt/rt3/var/mason_data,;t t
-s,@exp_masonstatedir@,/opt/rt3/var/mason_data,;t t
-s,@sessionstatedir@,/opt/rt3/var/session_data,;t t
-s,@exp_sessionstatedir@,/opt/rt3/var/session_data,;t t
-s,@customdir@,/opt/rt3/local,;t t
-s,@exp_customdir@,/opt/rt3/local,;t t
-s,@custometcdir@,/opt/rt3/local/etc,;t t
-s,@exp_custometcdir@,/opt/rt3/local/etc,;t t
-s,@customhtmldir@,/opt/rt3/local/html,;t t
-s,@exp_customhtmldir@,/opt/rt3/local/html,;t t
-s,@customlexdir@,/opt/rt3/local/po,;t t
-s,@exp_customlexdir@,/opt/rt3/local/po,;t t
-s,@customlibdir@,/opt/rt3/local/lib,;t t
-s,@exp_customlibdir@,/opt/rt3/local/lib,;t t
-s,@rt_layout_name@,RT3,;t t
-s,@RTGROUP@,rt,;t t
-s,@BIN_OWNER@,root,;t t
-s,@LIBS_OWNER@,root,;t t
-s,@LIBS_GROUP@,bin,;t t
-s,@DB_TYPE@,mysql,;t t
-s,@ORACLE_ENV_PREF@,,;t t
-s,@DB_HOST@,localhost,;t t
-s,@DB_PORT@,,;t t
-s,@DB_RT_HOST@,localhost,;t t
-s,@DB_DBA@,root,;t t
-s,@DB_DATABASE@,rt3,;t t
-s,@DB_RT_USER@,rt_user,;t t
-s,@DB_RT_PASS@,rt_pass,;t t
-s,@WEB_USER@,www,;t t
-s,@WEB_GROUP@,www,;t t
-s,@RT_VERSION_MAJOR@,3,;t t
-s,@RT_VERSION_MINOR@,0,;t t
-s,@RT_VERSION_PATCH@,9,;t t
-s,@RT_PATH@,/opt/rt3,;t t
-s,@RT_DOC_PATH@,/opt/rt3/share/doc,;t t
-s,@RT_LOCAL_PATH@,/opt/rt3/local,;t t
-s,@RT_LIB_PATH@,/opt/rt3/lib,;t t
-s,@RT_ETC_PATH@,/opt/rt3/etc,;t t
-s,@CONFIG_FILE_PATH@,/opt/rt3/etc,;t t
-s,@RT_BIN_PATH@,/opt/rt3/bin,;t t
-s,@RT_SBIN_PATH@,/opt/rt3/sbin,;t t
-s,@RT_VAR_PATH@,/opt/rt3/var,;t t
-s,@RT_MAN_PATH@,/opt/rt3/man,;t t
-s,@MASON_DATA_PATH@,/opt/rt3/var/mason_data,;t t
-s,@MASON_SESSION_PATH@,/opt/rt3/var/session_data,;t t
-s,@MASON_HTML_PATH@,/opt/rt3/share/html,;t t
-s,@LOCAL_ETC_PATH@,/opt/rt3/local/etc,;t t
-s,@MASON_LOCAL_HTML_PATH@,/opt/rt3/local/html,;t t
-s,@LOCAL_LEXICON_PATH@,/opt/rt3/local/po,;t t
-s,@LOCAL_LIB_PATH@,/opt/rt3/local/lib,;t t
-s,@DESTDIR@,/opt/rt3,;t t
-s,@RT_LOG_PATH@,/opt/rt3/var/log,;t t
-CEOF
-
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_lines=48
- ac_sed_frag=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_lines # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- else
- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- fi
- if test ! -s $tmp/subs.frag; then
- ac_more_lines=false
- else
- # The purpose of the label and of the branching condition is to
- # speed up the sed processing (if there are no `@' at all, there
- # is no need to browse any of the substitutions).
- # These are the two extra sed commands mentioned above.
- (echo ':t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
- fi
- ac_sed_frag=`expr $ac_sed_frag + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_lines`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
+S["LTLIBOBJS"]=""
+S["LIBOBJS"]=""
+S["RT_LOG_PATH_R"]="/opt/rt3/var/log"
+S["LOCAL_LIB_PATH_R"]="/opt/rt3/local/lib"
+S["LOCAL_LEXICON_PATH_R"]="/opt/rt3/local/po"
+S["MASON_LOCAL_HTML_PATH_R"]="/opt/rt3/local/html"
+S["LOCAL_ETC_PATH_R"]="/opt/rt3/local/etc"
+S["MASON_HTML_PATH_R"]="/opt/rt3/share/html"
+S["MASON_SESSION_PATH_R"]="/opt/rt3/var/session_data"
+S["MASON_DATA_PATH_R"]="/opt/rt3/var/mason_data"
+S["RT_PLUGIN_PATH_R"]="/opt/rt3/plugins"
+S["RT_FONT_PATH_R"]="/opt/rt3/share/fonts"
+S["RT_MAN_PATH_R"]="/opt/rt3/man"
+S["RT_VAR_PATH_R"]="/opt/rt3/var"
+S["RT_SBIN_PATH_R"]="/opt/rt3/sbin"
+S["RT_BIN_PATH_R"]="/opt/rt3/bin"
+S["CONFIG_FILE_PATH_R"]="/opt/rt3/etc"
+S["RT_ETC_PATH_R"]="/opt/rt3/etc"
+S["RT_LIB_PATH_R"]="/opt/rt3/lib"
+S["RT_LOCAL_PATH_R"]="/opt/rt3/local"
+S["RT_DOC_PATH_R"]="/opt/rt3/share/doc"
+S["RT_PATH_R"]="/opt/rt3"
+S["RT_LOG_PATH"]="var/log"
+S["LOCAL_LIB_PATH"]="local/lib"
+S["LOCAL_LEXICON_PATH"]="local/po"
+S["MASON_LOCAL_HTML_PATH"]="local/html"
+S["LOCAL_ETC_PATH"]="local/etc"
+S["MASON_HTML_PATH"]="share/html"
+S["MASON_SESSION_PATH"]="var/session_data"
+S["MASON_DATA_PATH"]="var/mason_data"
+S["RT_PLUGIN_PATH"]="plugins"
+S["RT_FONT_PATH"]="share/fonts"
+S["RT_MAN_PATH"]="man"
+S["RT_VAR_PATH"]="var"
+S["RT_SBIN_PATH"]="sbin"
+S["RT_BIN_PATH"]="bin"
+S["CONFIG_FILE_PATH"]="etc"
+S["RT_ETC_PATH"]="etc"
+S["RT_LIB_PATH"]="lib"
+S["RT_LOCAL_PATH"]="local"
+S["RT_DOC_PATH"]="share/doc"
+S["RT_PATH"]="/opt/rt3"
+S["RT_VERSION_PATCH"]="10"
+S["RT_VERSION_MINOR"]="8"
+S["RT_VERSION_MAJOR"]="3"
+S["RT_GPG"]="1"
+S["RT_GD"]="1"
+S["RT_GRAPHVIZ"]="0"
+S["OBJEXT"]="o"
+S["EXEEXT"]=""
+S["ac_ct_CC"]="gcc"
+S["CPPFLAGS"]=""
+S["LDFLAGS"]=""
+S["CFLAGS"]="-g -O2"
+S["CC"]="gcc"
+S["RT_DEVEL_MODE"]="0"
+S["APACHECTL"]="/usr/sbin/apachectl"
+S["RTGROUP"]="www"
+S["WEB_GROUP"]="www"
+S["WEB_USER"]="www"
+S["DB_RT_PASS"]="rt_pass"
+S["DB_RT_USER"]="rt_user"
+S["DB_DATABASE"]="rt3"
+S["DB_DBA"]="root"
+S["DB_RT_HOST"]="localhost"
+S["DB_PORT"]=""
+S["DB_HOST"]="localhost"
+S["DATABASE_ENV_PREF"]=""
+S["DB_TYPE"]="mysql"
+S["LIBS_GROUP"]="bin"
+S["LIBS_OWNER"]="root"
+S["BIN_OWNER"]="root"
+S["COMMENT_INPLACE_LAYOUT"]=""
+S["rt_layout_name"]="relative"
+S["exp_customlibdir"]="local/lib"
+S["customlibdir"]="local/lib"
+S["exp_customlexdir"]="local/po"
+S["customlexdir"]="local/po"
+S["exp_customhtmldir"]="local/html"
+S["customhtmldir"]="local/html"
+S["exp_custometcdir"]="local/etc"
+S["custometcdir"]="local/etc"
+S["exp_customdir"]="local"
+S["customdir"]="local"
+S["exp_sessionstatedir"]="var/session_data"
+S["sessionstatedir"]="var/session_data"
+S["exp_masonstatedir"]="var/mason_data"
+S["masonstatedir"]="var/mason_data"
+S["exp_logfiledir"]="var/log"
+S["logfiledir"]="var/log"
+S["exp_localstatedir"]="var"
+S["exp_plugindir"]="plugins"
+S["plugindir"]="plugins"
+S["exp_manualdir"]="share/doc"
+S["manualdir"]="share/doc"
+S["exp_fontdir"]="share/fonts"
+S["fontdir"]="share/fonts"
+S["exp_htmldir"]="share/html"
+S["exp_datadir"]="share"
+S["exp_libdir"]="lib"
+S["exp_mandir"]="man"
+S["exp_sysconfdir"]="etc"
+S["exp_sbindir"]="sbin"
+S["exp_bindir"]="bin"
+S["exp_exec_prefix"]="/opt/rt3"
+S["exp_prefix"]="/opt/rt3"
+S["SPEEDY_BIN"]="/usr/local/bin/speedy"
+S["WEB_HANDLER"]="fastcgi"
+S["PERL"]="/usr/bin/perl"
+S["AWK"]="gawk"
+S["INSTALL_DATA"]="${INSTALL} -m 644"
+S["INSTALL_SCRIPT"]="${INSTALL}"
+S["INSTALL_PROGRAM"]="${INSTALL}"
+S["rt_version_patch"]="10"
+S["rt_version_minor"]="8"
+S["rt_version_major"]="3"
+S["target_alias"]=""
+S["host_alias"]=""
+S["build_alias"]=""
+S["LIBS"]=""
+S["ECHO_T"]=""
+S["ECHO_N"]=""
+S["ECHO_C"]="\\c"
+S["DEFS"]="-DPACKAGE_NAME=\\\"RT\\\" -DPACKAGE_TARNAME=\\\"rt\\\" -DPACKAGE_VERSION=\\\"3.8.10\\\" -DPACKAGE_STRING=\\\"RT\\ 3.8.10\\\" -DPACKAGE_BUGREPORT=\\\"rt-bugs@bestpracti"\
+"cal.com\\\" -DPACKAGE_URL=\\\"\\\""
+S["mandir"]="man"
+S["localedir"]="${datarootdir}/locale"
+S["libdir"]="lib"
+S["psdir"]="${docdir}"
+S["pdfdir"]="${docdir}"
+S["dvidir"]="${docdir}"
+S["htmldir"]="share/html"
+S["infodir"]="${datarootdir}/info"
+S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
+S["oldincludedir"]="/usr/include"
+S["includedir"]="${prefix}/include"
+S["localstatedir"]="var"
+S["sharedstatedir"]="${prefix}/com"
+S["sysconfdir"]="etc"
+S["datadir"]="share"
+S["datarootdir"]="${prefix}/share"
+S["libexecdir"]="${exec_prefix}/libexec"
+S["sbindir"]="sbin"
+S["bindir"]="bin"
+S["program_transform_name"]="s,x,x,"
+S["prefix"]="/opt/rt3"
+S["exec_prefix"]="/opt/rt3"
+S["PACKAGE_URL"]=""
+S["PACKAGE_BUGREPORT"]="rt-bugs@bestpractical.com"
+S["PACKAGE_STRING"]="RT 3.8.10"
+S["PACKAGE_VERSION"]="3.8.10"
+S["PACKAGE_TARNAME"]="rt"
+S["PACKAGE_NAME"]="RT"
+S["PATH_SEPARATOR"]=":"
+S["SHELL"]="/bin/sh"
+_ACAWK
+cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = "\a"
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5