import rt 3.8.7
[freeside.git] / rt / config.status
1 #! /bin/sh
2 # Generated by configure.
3 # Run this file to recreate the current configuration.
4 # Compiler output produced by configure, useful for debugging
5 # configure, is in config.log if it exists.
6
7 debug=false
8 ac_cs_recheck=false
9 ac_cs_silent=false
10
11 SHELL=${CONFIG_SHELL-/bin/sh}
12 export SHELL
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136
137 # as_fn_error ERROR [LINENO LOG_FD]
138 # ---------------------------------
139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
141 # script with status $?, using 1 if that was 0.
142 as_fn_error ()
143 {
144   as_status=$?; test $as_status -eq 0 && as_status=1
145   if test "$3"; then
146     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
148   fi
149   $as_echo "$as_me: error: $1" >&2
150   as_fn_exit $as_status
151 } # as_fn_error
152
153
154 # as_fn_set_status STATUS
155 # -----------------------
156 # Set $? to STATUS, without forking.
157 as_fn_set_status ()
158 {
159   return $1
160 } # as_fn_set_status
161
162 # as_fn_exit STATUS
163 # -----------------
164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
165 as_fn_exit ()
166 {
167   set +e
168   as_fn_set_status $1
169   exit $1
170 } # as_fn_exit
171
172 # as_fn_unset VAR
173 # ---------------
174 # Portably unset VAR.
175 as_fn_unset ()
176 {
177   { eval $1=; unset $1;}
178 }
179 as_unset=as_fn_unset
180 # as_fn_append VAR VALUE
181 # ----------------------
182 # Append the text in VALUE to the end of the definition contained in VAR. Take
183 # advantage of any shell optimizations that allow amortized linear growth over
184 # repeated appends, instead of the typical quadratic growth present in naive
185 # implementations.
186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
187   eval 'as_fn_append ()
188   {
189     eval $1+=\$2
190   }'
191 else
192   as_fn_append ()
193   {
194     eval $1=\$$1\$2
195   }
196 fi # as_fn_append
197
198 # as_fn_arith ARG...
199 # ------------------
200 # Perform arithmetic evaluation on the ARGs, and store the result in the
201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
202 # must be portable across $(()) and expr.
203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
204   eval 'as_fn_arith ()
205   {
206     as_val=$(( $* ))
207   }'
208 else
209   as_fn_arith ()
210   {
211     as_val=`expr "$@" || test $? -eq 1`
212   }
213 fi # as_fn_arith
214
215
216 if expr a : '\(a\)' >/dev/null 2>&1 &&
217    test "X`expr 00001 : '.*\(...\)'`" = X001; then
218   as_expr=expr
219 else
220   as_expr=false
221 fi
222
223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
224   as_basename=basename
225 else
226   as_basename=false
227 fi
228
229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
230   as_dirname=dirname
231 else
232   as_dirname=false
233 fi
234
235 as_me=`$as_basename -- "$0" ||
236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
237          X"$0" : 'X\(//\)$' \| \
238          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
239 $as_echo X/"$0" |
240     sed '/^.*\/\([^/][^/]*\)\/*$/{
241             s//\1/
242             q
243           }
244           /^X\/\(\/\/\)$/{
245             s//\1/
246             q
247           }
248           /^X\/\(\/\).*/{
249             s//\1/
250             q
251           }
252           s/.*/./; q'`
253
254 # Avoid depending upon Character Ranges.
255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
258 as_cr_digits='0123456789'
259 as_cr_alnum=$as_cr_Letters$as_cr_digits
260
261 ECHO_C= ECHO_N= ECHO_T=
262 case `echo -n x` in #(((((
263 -n*)
264   case `echo 'xy\c'` in
265   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
266   xy)  ECHO_C='\c';;
267   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
268        ECHO_T=' ';;
269   esac;;
270 *)
271   ECHO_N='-n';;
272 esac
273
274 rm -f conf$$ conf$$.exe conf$$.file
275 if test -d conf$$.dir; then
276   rm -f conf$$.dir/conf$$.file
277 else
278   rm -f conf$$.dir
279   mkdir conf$$.dir 2>/dev/null
280 fi
281 if (echo >conf$$.file) 2>/dev/null; then
282   if ln -s conf$$.file conf$$ 2>/dev/null; then
283     as_ln_s='ln -s'
284     # ... but there are two gotchas:
285     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
286     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
287     # In both cases, we have to default to `cp -p'.
288     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
289       as_ln_s='cp -p'
290   elif ln conf$$.file conf$$ 2>/dev/null; then
291     as_ln_s=ln
292   else
293     as_ln_s='cp -p'
294   fi
295 else
296   as_ln_s='cp -p'
297 fi
298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
299 rmdir conf$$.dir 2>/dev/null
300
301
302 # as_fn_mkdir_p
303 # -------------
304 # Create "$as_dir" as a directory, including parents if necessary.
305 as_fn_mkdir_p ()
306 {
307
308   case $as_dir in #(
309   -*) as_dir=./$as_dir;;
310   esac
311   test -d "$as_dir" || eval $as_mkdir_p || {
312     as_dirs=
313     while :; do
314       case $as_dir in #(
315       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
316       *) as_qdir=$as_dir;;
317       esac
318       as_dirs="'$as_qdir' $as_dirs"
319       as_dir=`$as_dirname -- "$as_dir" ||
320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
321          X"$as_dir" : 'X\(//\)[^/]' \| \
322          X"$as_dir" : 'X\(//\)$' \| \
323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
324 $as_echo X"$as_dir" |
325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326             s//\1/
327             q
328           }
329           /^X\(\/\/\)[^/].*/{
330             s//\1/
331             q
332           }
333           /^X\(\/\/\)$/{
334             s//\1/
335             q
336           }
337           /^X\(\/\).*/{
338             s//\1/
339             q
340           }
341           s/.*/./; q'`
342       test -d "$as_dir" && break
343     done
344     test -z "$as_dirs" || eval "mkdir $as_dirs"
345   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
346
347
348 } # as_fn_mkdir_p
349 if mkdir -p . 2>/dev/null; then
350   as_mkdir_p='mkdir -p "$as_dir"'
351 else
352   test -d ./-p && rmdir ./-p
353   as_mkdir_p=false
354 fi
355
356 if test -x / >/dev/null 2>&1; then
357   as_test_x='test -x'
358 else
359   if ls -dL / >/dev/null 2>&1; then
360     as_ls_L_option=L
361   else
362     as_ls_L_option=
363   fi
364   as_test_x='
365     eval sh -c '\''
366       if test -d "$1"; then
367         test -d "$1/.";
368       else
369         case $1 in #(
370         -*)set "./$1";;
371         esac;
372         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
373         ???[sx]*):;;*)false;;esac;fi
374     '\'' sh
375   '
376 fi
377 as_executable_p=$as_test_x
378
379 # Sed expression to map a string onto a valid CPP name.
380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
381
382 # Sed expression to map a string onto a valid variable name.
383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
384
385
386 exec 6>&1
387 ## ----------------------------------- ##
388 ## Main body of $CONFIG_STATUS script. ##
389 ## ----------------------------------- ##
390 # Save the log message, to keep $0 and so on meaningful, and to
391 # report actual input values of CONFIG_FILES etc. instead of their
392 # values after options handling.
393 ac_log="
394 This file was extended by RT $as_me 3.8.7, which was
395 generated by GNU Autoconf 2.64.  Invocation command line was
396
397   CONFIG_FILES    = $CONFIG_FILES
398   CONFIG_HEADERS  = $CONFIG_HEADERS
399   CONFIG_LINKS    = $CONFIG_LINKS
400   CONFIG_COMMANDS = $CONFIG_COMMANDS
401   $ $0 $@
402
403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
404 "
405
406 # Files that config.status was made for.
407 config_files=" etc/upgrade/3.8-branded-queues-extension etc/upgrade/3.8-ical-extension etc/upgrade/split-out-cf-categories sbin/rt-attributes-viewer sbin/rt-dump-database 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-email-group-admin sbin/rt-server bin/mason_handler.fcgi bin/mason_handler.scgi bin/standalone_httpd bin/rt-crontool bin/rt-mailgate bin/rt Makefile etc/RT_Config.pm lib/RT.pm bin/mason_handler.svc bin/webmux.pl t/data/configs/apache2.2+mod_perl.conf t/data/configs/apache2.2+fastcgi.conf"
408
409 ac_cs_usage="\
410 \`$as_me' instantiates files and other configuration actions
411 from templates according to the current configuration.  Unless the files
412 and actions are specified as TAGs, all are instantiated by default.
413
414 Usage: $0 [OPTION]... [TAG]...
415
416   -h, --help       print this help, then exit
417   -V, --version    print version number and configuration settings, then exit
418   -q, --quiet, --silent
419                    do not print progress messages
420   -d, --debug      don't remove temporary files
421       --recheck    update $as_me by reconfiguring in the same conditions
422       --file=FILE[:TEMPLATE]
423                    instantiate the configuration file FILE
424
425 Configuration files:
426 $config_files
427
428 Report bugs to <rt-bugs@bestpractical.com>."
429
430 ac_cs_version="\
431 RT config.status 3.8.7
432 configured by ./configure, generated by GNU Autoconf 2.64,
433   with options \"'--with-db-type=SQLite' '--enable-layout=relative' '--with-web-handler=standalone' 'PERL=/usr/bin/perl'\"
434
435 Copyright (C) 2009 Free Software Foundation, Inc.
436 This config.status script is free software; the Free Software Foundation
437 gives unlimited permission to copy, distribute and modify it."
438
439 ac_pwd='/Users/falcone/work/rt/releases/rt-3.8.7'
440 srcdir='.'
441 INSTALL='install-sh'
442 AWK='gawk'
443 test -n "$AWK" || AWK=awk
444 # The default lists apply if the user does not specify any file.
445 ac_need_defaults=:
446 while test $# != 0
447 do
448   case $1 in
449   --*=*)
450     ac_option=`expr "X$1" : 'X\([^=]*\)='`
451     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
452     ac_shift=:
453     ;;
454   *)
455     ac_option=$1
456     ac_optarg=$2
457     ac_shift=shift
458     ;;
459   esac
460
461   case $ac_option in
462   # Handling of the options.
463   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
464     ac_cs_recheck=: ;;
465   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
466     $as_echo "$ac_cs_version"; exit ;;
467   --debug | --debu | --deb | --de | --d | -d )
468     debug=: ;;
469   --file | --fil | --fi | --f )
470     $ac_shift
471     case $ac_optarg in
472     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
473     esac
474     as_fn_append CONFIG_FILES " '$ac_optarg'"
475     ac_need_defaults=false;;
476   --he | --h |  --help | --hel | -h )
477     $as_echo "$ac_cs_usage"; exit ;;
478   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
479   | -silent | --silent | --silen | --sile | --sil | --si | --s)
480     ac_cs_silent=: ;;
481
482   # This is an error.
483   -*) as_fn_error "unrecognized option: \`$1'
484 Try \`$0 --help' for more information." ;;
485
486   *) as_fn_append ac_config_targets " $1"
487      ac_need_defaults=false ;;
488
489   esac
490   shift
491 done
492
493 ac_configure_extra_args=
494
495 if $ac_cs_silent; then
496   exec 6>/dev/null
497   ac_configure_extra_args="$ac_configure_extra_args --silent"
498 fi
499
500 if $ac_cs_recheck; then
501   set X '/bin/sh' './configure'  '--with-db-type=SQLite' '--enable-layout=relative' '--with-web-handler=standalone' 'PERL=/usr/bin/perl' $ac_configure_extra_args --no-create --no-recursion
502   shift
503   $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
504   CONFIG_SHELL='/bin/sh'
505   export CONFIG_SHELL
506   exec "$@"
507 fi
508
509 exec 5>>config.log
510 {
511   echo
512   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
513 ## Running $as_me. ##
514 _ASBOX
515   $as_echo "$ac_log"
516 } >&5
517
518
519 # Handling of arguments.
520 for ac_config_target in $ac_config_targets
521 do
522   case $ac_config_target in
523     "etc/upgrade/3.8-branded-queues-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-branded-queues-extension" ;;
524     "etc/upgrade/3.8-ical-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-ical-extension" ;;
525     "etc/upgrade/split-out-cf-categories") CONFIG_FILES="$CONFIG_FILES etc/upgrade/split-out-cf-categories" ;;
526     "sbin/rt-attributes-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-attributes-viewer" ;;
527     "sbin/rt-dump-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-database" ;;
528     "sbin/rt-setup-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
529     "sbin/rt-test-dependencies") CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
530     "sbin/rt-email-digest") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-digest" ;;
531     "sbin/rt-email-dashboards") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-dashboards" ;;
532     "sbin/rt-clean-sessions") CONFIG_FILES="$CONFIG_FILES sbin/rt-clean-sessions" ;;
533     "sbin/rt-shredder") CONFIG_FILES="$CONFIG_FILES sbin/rt-shredder" ;;
534     "sbin/rt-validator") CONFIG_FILES="$CONFIG_FILES sbin/rt-validator" ;;
535     "sbin/rt-email-group-admin") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-group-admin" ;;
536     "sbin/rt-server") CONFIG_FILES="$CONFIG_FILES sbin/rt-server" ;;
537     "bin/mason_handler.fcgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
538     "bin/mason_handler.scgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
539     "bin/standalone_httpd") CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
540     "bin/rt-crontool") CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
541     "bin/rt-mailgate") CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
542     "bin/rt") CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
543     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
544     "etc/RT_Config.pm") CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
545     "lib/RT.pm") CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
546     "bin/mason_handler.svc") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
547     "bin/webmux.pl") CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
548     "t/data/configs/apache2.2+mod_perl.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+mod_perl.conf" ;;
549     "t/data/configs/apache2.2+fastcgi.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+fastcgi.conf" ;;
550
551   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
552   esac
553 done
554
555
556 # If the user did not use the arguments to specify the items to instantiate,
557 # then the envvar interface is used.  Set only those that are not.
558 # We use the long form for the default assignment because of an extremely
559 # bizarre bug on SunOS 4.1.3.
560 if $ac_need_defaults; then
561   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
562 fi
563
564 # Have a temporary directory for convenience.  Make it in the build tree
565 # simply because there is no reason against having it here, and in addition,
566 # creating and moving files from /tmp can sometimes cause problems.
567 # Hook for its removal unless debugging.
568 # Note that there is a small window in which the directory will not be cleaned:
569 # after its creation but before its name has been assigned to `$tmp'.
570 $debug ||
571 {
572   tmp=
573   trap 'exit_status=$?
574   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
575 ' 0
576   trap 'as_fn_exit 1' 1 2 13 15
577 }
578 # Create a (secure) tmp directory for tmp files.
579
580 {
581   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
582   test -n "$tmp" && test -d "$tmp"
583 }  ||
584 {
585   tmp=./conf$$-$RANDOM
586   (umask 077 && mkdir "$tmp")
587 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
588
589 # Set up the scripts for CONFIG_FILES section.
590 # No need to generate them if there are no CONFIG_FILES.
591 # This happens for instance with `./config.status config.h'.
592 if test -n "$CONFIG_FILES"; then
593
594
595 ac_cr=`echo X | tr X '\015'`
596 # On cygwin, bash can eat \r inside `` if the user requested igncr.
597 # But we know of no other shell where ac_cr would be empty at this
598 # point, so we can use a bashism as a fallback.
599 if test "x$ac_cr" = x; then
600   eval ac_cr=\$\'\\r\'
601 fi
602 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
603 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
604   ac_cs_awk_cr='\r'
605 else
606   ac_cs_awk_cr=$ac_cr
607 fi
608
609 echo 'BEGIN {' >"$tmp/subs1.awk" &&
610 cat >>"$tmp/subs1.awk" <<\_ACAWK &&
611 S["LTLIBOBJS"]=""
612 S["LIBOBJS"]=""
613 S["RT_LOG_PATH_R"]="/opt/rt3/var/log"
614 S["LOCAL_LIB_PATH_R"]="/opt/rt3/local/lib"
615 S["LOCAL_LEXICON_PATH_R"]="/opt/rt3/local/po"
616 S["MASON_LOCAL_HTML_PATH_R"]="/opt/rt3/local/html"
617 S["LOCAL_ETC_PATH_R"]="/opt/rt3/local/etc"
618 S["MASON_HTML_PATH_R"]="/opt/rt3/share/html"
619 S["MASON_SESSION_PATH_R"]="/opt/rt3/var/session_data"
620 S["MASON_DATA_PATH_R"]="/opt/rt3/var/mason_data"
621 S["RT_PLUGIN_PATH_R"]="/opt/rt3/plugins"
622 S["RT_MAN_PATH_R"]="/opt/rt3/man"
623 S["RT_VAR_PATH_R"]="/opt/rt3/var"
624 S["RT_SBIN_PATH_R"]="/opt/rt3/sbin"
625 S["RT_BIN_PATH_R"]="/opt/rt3/bin"
626 S["CONFIG_FILE_PATH_R"]="/opt/rt3/etc"
627 S["RT_ETC_PATH_R"]="/opt/rt3/etc"
628 S["RT_LIB_PATH_R"]="/opt/rt3/lib"
629 S["RT_LOCAL_PATH_R"]="/opt/rt3/local"
630 S["RT_DOC_PATH_R"]="/opt/rt3/share/doc"
631 S["RT_PATH_R"]="/opt/rt3"
632 S["RT_LOG_PATH"]="var/log"
633 S["LOCAL_LIB_PATH"]="local/lib"
634 S["LOCAL_LEXICON_PATH"]="local/po"
635 S["MASON_LOCAL_HTML_PATH"]="local/html"
636 S["LOCAL_ETC_PATH"]="local/etc"
637 S["MASON_HTML_PATH"]="share/html"
638 S["MASON_SESSION_PATH"]="var/session_data"
639 S["MASON_DATA_PATH"]="var/mason_data"
640 S["RT_PLUGIN_PATH"]="plugins"
641 S["RT_MAN_PATH"]="man"
642 S["RT_VAR_PATH"]="var"
643 S["RT_SBIN_PATH"]="sbin"
644 S["RT_BIN_PATH"]="bin"
645 S["CONFIG_FILE_PATH"]="etc"
646 S["RT_ETC_PATH"]="etc"
647 S["RT_LIB_PATH"]="lib"
648 S["RT_LOCAL_PATH"]="local"
649 S["RT_DOC_PATH"]="share/doc"
650 S["RT_PATH"]="/opt/rt3"
651 S["RT_VERSION_PATCH"]="7"
652 S["RT_VERSION_MINOR"]="8"
653 S["RT_VERSION_MAJOR"]="3"
654 S["RT_GPG"]="1"
655 S["RT_GD"]="1"
656 S["RT_GRAPHVIZ"]="0"
657 S["OBJEXT"]="o"
658 S["EXEEXT"]=""
659 S["ac_ct_CC"]="gcc"
660 S["CPPFLAGS"]=""
661 S["LDFLAGS"]=""
662 S["CFLAGS"]="-g -O2"
663 S["CC"]="gcc"
664 S["RT_DEVEL_MODE"]="0"
665 S["APACHECTL"]="/usr/sbin/apachectl"
666 S["RTGROUP"]="www"
667 S["WEB_GROUP"]="www"
668 S["WEB_USER"]="www"
669 S["DB_RT_PASS"]="rt_pass"
670 S["DB_RT_USER"]="rt_user"
671 S["DB_DATABASE"]="rt3"
672 S["DB_DBA"]="root"
673 S["DB_RT_HOST"]="localhost"
674 S["DB_PORT"]=""
675 S["DB_HOST"]="localhost"
676 S["DATABASE_ENV_PREF"]=""
677 S["DB_TYPE"]="SQLite"
678 S["LIBS_GROUP"]="bin"
679 S["LIBS_OWNER"]="root"
680 S["BIN_OWNER"]="root"
681 S["COMMENT_INPLACE_LAYOUT"]=""
682 S["rt_layout_name"]="relative"
683 S["exp_customlibdir"]="local/lib"
684 S["customlibdir"]="local/lib"
685 S["exp_customlexdir"]="local/po"
686 S["customlexdir"]="local/po"
687 S["exp_customhtmldir"]="local/html"
688 S["customhtmldir"]="local/html"
689 S["exp_custometcdir"]="local/etc"
690 S["custometcdir"]="local/etc"
691 S["exp_customdir"]="local"
692 S["customdir"]="local"
693 S["exp_sessionstatedir"]="var/session_data"
694 S["sessionstatedir"]="var/session_data"
695 S["exp_masonstatedir"]="var/mason_data"
696 S["masonstatedir"]="var/mason_data"
697 S["exp_logfiledir"]="var/log"
698 S["logfiledir"]="var/log"
699 S["exp_localstatedir"]="var"
700 S["exp_plugindir"]="plugins"
701 S["plugindir"]="plugins"
702 S["exp_manualdir"]="share/doc"
703 S["manualdir"]="share/doc"
704 S["exp_htmldir"]="share/html"
705 S["exp_datadir"]="share"
706 S["exp_libdir"]="lib"
707 S["exp_mandir"]="man"
708 S["exp_sysconfdir"]="etc"
709 S["exp_sbindir"]="sbin"
710 S["exp_bindir"]="bin"
711 S["exp_exec_prefix"]="/opt/rt3"
712 S["exp_prefix"]="/opt/rt3"
713 S["SPEEDY_BIN"]="/usr/local/bin/speedy"
714 S["WEB_HANDLER"]="standalone"
715 S["PERL"]="/usr/bin/perl"
716 S["AWK"]="gawk"
717 S["INSTALL_DATA"]="${INSTALL} -m 644"
718 S["INSTALL_SCRIPT"]="${INSTALL}"
719 S["INSTALL_PROGRAM"]="${INSTALL}"
720 S["rt_version_patch"]="7"
721 S["rt_version_minor"]="8"
722 S["rt_version_major"]="3"
723 S["target_alias"]=""
724 S["host_alias"]=""
725 S["build_alias"]=""
726 S["LIBS"]=""
727 S["ECHO_T"]=""
728 S["ECHO_N"]=""
729 S["ECHO_C"]="\\c"
730 S["DEFS"]="-DPACKAGE_NAME=\\\"RT\\\" -DPACKAGE_TARNAME=\\\"rt\\\" -DPACKAGE_VERSION=\\\"3.8.7\\\" -DPACKAGE_STRING=\\\"RT\\ 3.8.7\\\" -DPACKAGE_BUGREPORT=\\\"rt-bugs@bestpractica"\
731 "l.com\\\" -DPACKAGE_URL=\\\"\\\""
732 S["mandir"]="man"
733 S["localedir"]="${datarootdir}/locale"
734 S["libdir"]="lib"
735 S["psdir"]="${docdir}"
736 S["pdfdir"]="${docdir}"
737 S["dvidir"]="${docdir}"
738 S["htmldir"]="share/html"
739 S["infodir"]="${datarootdir}/info"
740 S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
741 S["oldincludedir"]="/usr/include"
742 S["includedir"]="${prefix}/include"
743 S["localstatedir"]="var"
744 S["sharedstatedir"]="${prefix}/com"
745 S["sysconfdir"]="etc"
746 S["datadir"]="share"
747 S["datarootdir"]="${prefix}/share"
748 S["libexecdir"]="${exec_prefix}/libexec"
749 S["sbindir"]="sbin"
750 S["bindir"]="bin"
751 S["program_transform_name"]="s,x,x,"
752 S["prefix"]="/opt/rt3"
753 S["exec_prefix"]="/opt/rt3"
754 S["PACKAGE_URL"]=""
755 S["PACKAGE_BUGREPORT"]="rt-bugs@bestpractical.com"
756 S["PACKAGE_STRING"]="RT 3.8.7"
757 S["PACKAGE_VERSION"]="3.8.7"
758 S["PACKAGE_TARNAME"]="rt"
759 S["PACKAGE_NAME"]="RT"
760 S["PATH_SEPARATOR"]=":"
761 S["SHELL"]="/bin/sh"
762 _ACAWK
763 cat >>"$tmp/subs1.awk" <<_ACAWK &&
764   for (key in S) S_is_set[key] = 1
765   FS = "\a"
766
767 }
768 {
769   line = $ 0
770   nfields = split(line, field, "@")
771   substed = 0
772   len = length(field[1])
773   for (i = 2; i < nfields; i++) {
774     key = field[i]
775     keylen = length(key)
776     if (S_is_set[key]) {
777       value = S[key]
778       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
779       len += length(value) + length(field[++i])
780       substed = 1
781     } else
782       len += 1 + keylen
783   }
784
785   print line
786 }
787
788 _ACAWK
789 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
790   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
791 else
792   cat
793 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
794   || as_fn_error "could not setup config files machinery" "$LINENO" 5
795 fi # test -n "$CONFIG_FILES"
796
797
798 eval set X "  :F $CONFIG_FILES      "
799 shift
800 for ac_tag
801 do
802   case $ac_tag in
803   :[FHLC]) ac_mode=$ac_tag; continue;;
804   esac
805   case $ac_mode$ac_tag in
806   :[FHL]*:*);;
807   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
808   :[FH]-) ac_tag=-:-;;
809   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
810   esac
811   ac_save_IFS=$IFS
812   IFS=:
813   set x $ac_tag
814   IFS=$ac_save_IFS
815   shift
816   ac_file=$1
817   shift
818
819   case $ac_mode in
820   :L) ac_source=$1;;
821   :[FH])
822     ac_file_inputs=
823     for ac_f
824     do
825       case $ac_f in
826       -) ac_f="$tmp/stdin";;
827       *) # Look for the file first in the build tree, then in the source tree
828          # (if the path is not absolute).  The absolute path cannot be DOS-style,
829          # because $ac_f cannot contain `:'.
830          test -f "$ac_f" ||
831            case $ac_f in
832            [\\/$]*) false;;
833            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
834            esac ||
835            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
836       esac
837       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
838       as_fn_append ac_file_inputs " '$ac_f'"
839     done
840
841     # Let's still pretend it is `configure' which instantiates (i.e., don't
842     # use $as_me), people would be surprised to read:
843     #    /* config.h.  Generated by config.status.  */
844     configure_input='Generated from '`
845           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
846         `' by configure.'
847     if test x"$ac_file" != x-; then
848       configure_input="$ac_file.  $configure_input"
849       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
850 $as_echo "$as_me: creating $ac_file" >&6;}
851     fi
852     # Neutralize special characters interpreted by sed in replacement strings.
853     case $configure_input in #(
854     *\&* | *\|* | *\\* )
855        ac_sed_conf_input=`$as_echo "$configure_input" |
856        sed 's/[\\\\&|]/\\\\&/g'`;; #(
857     *) ac_sed_conf_input=$configure_input;;
858     esac
859
860     case $ac_tag in
861     *:-:* | *:-) cat >"$tmp/stdin" \
862       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
863     esac
864     ;;
865   esac
866
867   ac_dir=`$as_dirname -- "$ac_file" ||
868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$ac_file" : 'X\(//\)[^/]' \| \
870          X"$ac_file" : 'X\(//\)$' \| \
871          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
872 $as_echo X"$ac_file" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
874             s//\1/
875             q
876           }
877           /^X\(\/\/\)[^/].*/{
878             s//\1/
879             q
880           }
881           /^X\(\/\/\)$/{
882             s//\1/
883             q
884           }
885           /^X\(\/\).*/{
886             s//\1/
887             q
888           }
889           s/.*/./; q'`
890   as_dir="$ac_dir"; as_fn_mkdir_p
891   ac_builddir=.
892
893 case "$ac_dir" in
894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
895 *)
896   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
897   # A ".." for each directory in $ac_dir_suffix.
898   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
899   case $ac_top_builddir_sub in
900   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
901   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
902   esac ;;
903 esac
904 ac_abs_top_builddir=$ac_pwd
905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
906 # for backward compatibility:
907 ac_top_builddir=$ac_top_build_prefix
908
909 case $srcdir in
910   .)  # We are building in place.
911     ac_srcdir=.
912     ac_top_srcdir=$ac_top_builddir_sub
913     ac_abs_top_srcdir=$ac_pwd ;;
914   [\\/]* | ?:[\\/]* )  # Absolute name.
915     ac_srcdir=$srcdir$ac_dir_suffix;
916     ac_top_srcdir=$srcdir
917     ac_abs_top_srcdir=$srcdir ;;
918   *) # Relative name.
919     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_build_prefix$srcdir
921     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
922 esac
923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
924
925
926   case $ac_mode in
927   :F)
928   #
929   # CONFIG_FILE
930   #
931
932   case $INSTALL in
933   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
934   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
935   esac
936 # If the template does not know about datarootdir, expand it.
937 # FIXME: This hack should be removed a few years after 2.60.
938 ac_datarootdir_hack=; ac_datarootdir_seen=
939 ac_sed_dataroot='
940 /datarootdir/ {
941   p
942   q
943 }
944 /@datadir@/p
945 /@docdir@/p
946 /@infodir@/p
947 /@localedir@/p
948 /@mandir@/p'
949 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
950 *datarootdir*) ac_datarootdir_seen=yes;;
951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
952   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
953 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
954   ac_datarootdir_hack='
955   s&@datadir@&share&g
956   s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
957   s&@infodir@&${datarootdir}/info&g
958   s&@localedir@&${datarootdir}/locale&g
959   s&@mandir@&man&g
960   s&\${datarootdir}&${prefix}/share&g' ;;
961 esac
962 ac_sed_extra="/^[        ]*VPATH[        ]*=/{
963 s/:*\$(srcdir):*/:/
964 s/:*\${srcdir}:*/:/
965 s/:*@srcdir@:*/:/
966 s/^\([^=]*=[     ]*\):*/\1/
967 s/:*$//
968 s/^[^=]*=[       ]*$//
969 }
970
971 :t
972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
973 s|@configure_input@|$ac_sed_conf_input|;t t
974 s&@top_builddir@&$ac_top_builddir_sub&;t t
975 s&@top_build_prefix@&$ac_top_build_prefix&;t t
976 s&@srcdir@&$ac_srcdir&;t t
977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
978 s&@top_srcdir@&$ac_top_srcdir&;t t
979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
980 s&@builddir@&$ac_builddir&;t t
981 s&@abs_builddir@&$ac_abs_builddir&;t t
982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
983 s&@INSTALL@&$ac_INSTALL&;t t
984 $ac_datarootdir_hack
985 "
986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
987   || as_fn_error "could not create $ac_file" "$LINENO" 5
988
989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
990   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
991   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
992   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
993 which seems to be undefined.  Please make sure it is defined." >&5
994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
995 which seems to be undefined.  Please make sure it is defined." >&2;}
996
997   rm -f "$tmp/stdin"
998   case $ac_file in
999   -) cat "$tmp/out" && rm -f "$tmp/out";;
1000   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1001   esac \
1002   || as_fn_error "could not create $ac_file" "$LINENO" 5
1003  ;;
1004
1005
1006
1007   esac
1008
1009
1010   case $ac_file$ac_mode in
1011     "etc/upgrade/3.8-branded-queues-extension":F) chmod ug+x $ac_file
1012                 ;;
1013     "etc/upgrade/3.8-ical-extension":F) chmod ug+x $ac_file
1014                 ;;
1015     "etc/upgrade/split-out-cf-categories":F) chmod ug+x $ac_file
1016                 ;;
1017     "sbin/rt-attributes-viewer":F) chmod ug+x $ac_file
1018                 ;;
1019     "sbin/rt-dump-database":F) chmod ug+x $ac_file
1020                 ;;
1021     "sbin/rt-setup-database":F) chmod ug+x $ac_file
1022                 ;;
1023     "sbin/rt-test-dependencies":F) chmod ug+x $ac_file
1024                 ;;
1025     "sbin/rt-email-digest":F) chmod ug+x $ac_file
1026                 ;;
1027     "sbin/rt-email-dashboards":F) chmod ug+x $ac_file
1028                 ;;
1029     "sbin/rt-clean-sessions":F) chmod ug+x $ac_file
1030                 ;;
1031     "sbin/rt-shredder":F) chmod ug+x $ac_file
1032                 ;;
1033     "sbin/rt-validator":F) chmod ug+x $ac_file
1034                 ;;
1035     "sbin/rt-email-group-admin":F) chmod ug+x $ac_file
1036                 ;;
1037     "sbin/rt-server":F) chmod ug+x $ac_file
1038                 ;;
1039     "bin/mason_handler.fcgi":F) chmod ug+x $ac_file
1040                 ;;
1041     "bin/mason_handler.scgi":F) chmod ug+x $ac_file
1042                 ;;
1043     "bin/standalone_httpd":F) chmod ug+x $ac_file
1044                 ;;
1045     "bin/rt-crontool":F) chmod ug+x $ac_file
1046                 ;;
1047     "bin/rt-mailgate":F) chmod ug+x $ac_file
1048                 ;;
1049     "bin/rt":F) chmod ug+x $ac_file
1050                 ;;
1051
1052   esac
1053 done # for ac_tag
1054
1055
1056 as_fn_exit 0