This commit was generated by cvs2svn to compensate for changes in r10640,
[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.8, which was
395 generated by GNU Autoconf 2.65.  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/fastcgi_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       --config     print configuration, then exit
419   -q, --quiet, --silent
420                    do not print progress messages
421   -d, --debug      don't remove temporary files
422       --recheck    update $as_me by reconfiguring in the same conditions
423       --file=FILE[:TEMPLATE]
424                    instantiate the configuration file FILE
425
426 Configuration files:
427 $config_files
428
429 Report bugs to <rt-bugs@bestpractical.com>."
430
431 ac_cs_config="'PERL=/usr/bin/perl'"
432 ac_cs_version="\
433 RT config.status 3.8.8
434 configured by ./configure, generated by GNU Autoconf 2.65,
435   with options \"$ac_cs_config\"
436
437 Copyright (C) 2009 Free Software Foundation, Inc.
438 This config.status script is free software; the Free Software Foundation
439 gives unlimited permission to copy, distribute and modify it."
440
441 ac_pwd='/Users/ruz/projs/RT/core/rt-3.8.8'
442 srcdir='.'
443 INSTALL='/opt/local/bin/ginstall -c'
444 AWK='gawk'
445 test -n "$AWK" || AWK=awk
446 # The default lists apply if the user does not specify any file.
447 ac_need_defaults=:
448 while test $# != 0
449 do
450   case $1 in
451   --*=*)
452     ac_option=`expr "X$1" : 'X\([^=]*\)='`
453     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
454     ac_shift=:
455     ;;
456   *)
457     ac_option=$1
458     ac_optarg=$2
459     ac_shift=shift
460     ;;
461   esac
462
463   case $ac_option in
464   # Handling of the options.
465   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
466     ac_cs_recheck=: ;;
467   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
468     $as_echo "$ac_cs_version"; exit ;;
469   --config | --confi | --conf | --con | --co | --c )
470     $as_echo "$ac_cs_config"; exit ;;
471   --debug | --debu | --deb | --de | --d | -d )
472     debug=: ;;
473   --file | --fil | --fi | --f )
474     $ac_shift
475     case $ac_optarg in
476     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
477     esac
478     as_fn_append CONFIG_FILES " '$ac_optarg'"
479     ac_need_defaults=false;;
480   --he | --h |  --help | --hel | -h )
481     $as_echo "$ac_cs_usage"; exit ;;
482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
483   | -silent | --silent | --silen | --sile | --sil | --si | --s)
484     ac_cs_silent=: ;;
485
486   # This is an error.
487   -*) as_fn_error "unrecognized option: \`$1'
488 Try \`$0 --help' for more information." ;;
489
490   *) as_fn_append ac_config_targets " $1"
491      ac_need_defaults=false ;;
492
493   esac
494   shift
495 done
496
497 ac_configure_extra_args=
498
499 if $ac_cs_silent; then
500   exec 6>/dev/null
501   ac_configure_extra_args="$ac_configure_extra_args --silent"
502 fi
503
504 if $ac_cs_recheck; then
505   set X '/bin/sh' './configure'  'PERL=/usr/bin/perl' $ac_configure_extra_args --no-create --no-recursion
506   shift
507   $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
508   CONFIG_SHELL='/bin/sh'
509   export CONFIG_SHELL
510   exec "$@"
511 fi
512
513 exec 5>>config.log
514 {
515   echo
516   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
517 ## Running $as_me. ##
518 _ASBOX
519   $as_echo "$ac_log"
520 } >&5
521
522
523 # Handling of arguments.
524 for ac_config_target in $ac_config_targets
525 do
526   case $ac_config_target in
527     "etc/upgrade/3.8-branded-queues-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-branded-queues-extension" ;;
528     "etc/upgrade/3.8-ical-extension") CONFIG_FILES="$CONFIG_FILES etc/upgrade/3.8-ical-extension" ;;
529     "etc/upgrade/split-out-cf-categories") CONFIG_FILES="$CONFIG_FILES etc/upgrade/split-out-cf-categories" ;;
530     "sbin/rt-attributes-viewer") CONFIG_FILES="$CONFIG_FILES sbin/rt-attributes-viewer" ;;
531     "sbin/rt-dump-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-database" ;;
532     "sbin/rt-setup-database") CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
533     "sbin/rt-test-dependencies") CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
534     "sbin/rt-email-digest") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-digest" ;;
535     "sbin/rt-email-dashboards") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-dashboards" ;;
536     "sbin/rt-clean-sessions") CONFIG_FILES="$CONFIG_FILES sbin/rt-clean-sessions" ;;
537     "sbin/rt-shredder") CONFIG_FILES="$CONFIG_FILES sbin/rt-shredder" ;;
538     "sbin/rt-validator") CONFIG_FILES="$CONFIG_FILES sbin/rt-validator" ;;
539     "sbin/rt-email-group-admin") CONFIG_FILES="$CONFIG_FILES sbin/rt-email-group-admin" ;;
540     "sbin/rt-server") CONFIG_FILES="$CONFIG_FILES sbin/rt-server" ;;
541     "bin/fastcgi_server") CONFIG_FILES="$CONFIG_FILES bin/fastcgi_server" ;;
542     "bin/mason_handler.fcgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
543     "bin/mason_handler.scgi") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
544     "bin/standalone_httpd") CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
545     "bin/rt-crontool") CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
546     "bin/rt-mailgate") CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
547     "bin/rt") CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
548     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
549     "etc/RT_Config.pm") CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
550     "lib/RT.pm") CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
551     "bin/mason_handler.svc") CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
552     "bin/webmux.pl") CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
553     "t/data/configs/apache2.2+mod_perl.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+mod_perl.conf" ;;
554     "t/data/configs/apache2.2+fastcgi.conf") CONFIG_FILES="$CONFIG_FILES t/data/configs/apache2.2+fastcgi.conf" ;;
555
556   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
557   esac
558 done
559
560
561 # If the user did not use the arguments to specify the items to instantiate,
562 # then the envvar interface is used.  Set only those that are not.
563 # We use the long form for the default assignment because of an extremely
564 # bizarre bug on SunOS 4.1.3.
565 if $ac_need_defaults; then
566   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
567 fi
568
569 # Have a temporary directory for convenience.  Make it in the build tree
570 # simply because there is no reason against having it here, and in addition,
571 # creating and moving files from /tmp can sometimes cause problems.
572 # Hook for its removal unless debugging.
573 # Note that there is a small window in which the directory will not be cleaned:
574 # after its creation but before its name has been assigned to `$tmp'.
575 $debug ||
576 {
577   tmp=
578   trap 'exit_status=$?
579   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
580 ' 0
581   trap 'as_fn_exit 1' 1 2 13 15
582 }
583 # Create a (secure) tmp directory for tmp files.
584
585 {
586   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
587   test -n "$tmp" && test -d "$tmp"
588 }  ||
589 {
590   tmp=./conf$$-$RANDOM
591   (umask 077 && mkdir "$tmp")
592 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
593
594 # Set up the scripts for CONFIG_FILES section.
595 # No need to generate them if there are no CONFIG_FILES.
596 # This happens for instance with `./config.status config.h'.
597 if test -n "$CONFIG_FILES"; then
598
599
600 ac_cr=`echo X | tr X '\015'`
601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
602 # But we know of no other shell where ac_cr would be empty at this
603 # point, so we can use a bashism as a fallback.
604 if test "x$ac_cr" = x; then
605   eval ac_cr=\$\'\\r\'
606 fi
607 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
609   ac_cs_awk_cr='\r'
610 else
611   ac_cs_awk_cr=$ac_cr
612 fi
613
614 echo 'BEGIN {' >"$tmp/subs1.awk" &&
615 cat >>"$tmp/subs1.awk" <<\_ACAWK &&
616 S["LTLIBOBJS"]=""
617 S["LIBOBJS"]=""
618 S["RT_LOG_PATH_R"]="/opt/rt3/var/log"
619 S["LOCAL_LIB_PATH_R"]="/opt/rt3/local/lib"
620 S["LOCAL_LEXICON_PATH_R"]="/opt/rt3/local/po"
621 S["MASON_LOCAL_HTML_PATH_R"]="/opt/rt3/local/html"
622 S["LOCAL_ETC_PATH_R"]="/opt/rt3/local/etc"
623 S["MASON_HTML_PATH_R"]="/opt/rt3/share/html"
624 S["MASON_SESSION_PATH_R"]="/opt/rt3/var/session_data"
625 S["MASON_DATA_PATH_R"]="/opt/rt3/var/mason_data"
626 S["RT_PLUGIN_PATH_R"]="/opt/rt3/plugins"
627 S["RT_FONT_PATH_R"]="/opt/rt3/share/fonts"
628 S["RT_MAN_PATH_R"]="/opt/rt3/man"
629 S["RT_VAR_PATH_R"]="/opt/rt3/var"
630 S["RT_SBIN_PATH_R"]="/opt/rt3/sbin"
631 S["RT_BIN_PATH_R"]="/opt/rt3/bin"
632 S["CONFIG_FILE_PATH_R"]="/opt/rt3/etc"
633 S["RT_ETC_PATH_R"]="/opt/rt3/etc"
634 S["RT_LIB_PATH_R"]="/opt/rt3/lib"
635 S["RT_LOCAL_PATH_R"]="/opt/rt3/local"
636 S["RT_DOC_PATH_R"]="/opt/rt3/share/doc"
637 S["RT_PATH_R"]="/opt/rt3"
638 S["RT_LOG_PATH"]="var/log"
639 S["LOCAL_LIB_PATH"]="local/lib"
640 S["LOCAL_LEXICON_PATH"]="local/po"
641 S["MASON_LOCAL_HTML_PATH"]="local/html"
642 S["LOCAL_ETC_PATH"]="local/etc"
643 S["MASON_HTML_PATH"]="share/html"
644 S["MASON_SESSION_PATH"]="var/session_data"
645 S["MASON_DATA_PATH"]="var/mason_data"
646 S["RT_PLUGIN_PATH"]="plugins"
647 S["RT_FONT_PATH"]="share/fonts"
648 S["RT_MAN_PATH"]="man"
649 S["RT_VAR_PATH"]="var"
650 S["RT_SBIN_PATH"]="sbin"
651 S["RT_BIN_PATH"]="bin"
652 S["CONFIG_FILE_PATH"]="etc"
653 S["RT_ETC_PATH"]="etc"
654 S["RT_LIB_PATH"]="lib"
655 S["RT_LOCAL_PATH"]="local"
656 S["RT_DOC_PATH"]="share/doc"
657 S["RT_PATH"]="/opt/rt3"
658 S["RT_VERSION_PATCH"]="8"
659 S["RT_VERSION_MINOR"]="8"
660 S["RT_VERSION_MAJOR"]="3"
661 S["RT_GPG"]="1"
662 S["RT_GD"]="1"
663 S["RT_GRAPHVIZ"]="0"
664 S["OBJEXT"]="o"
665 S["EXEEXT"]=""
666 S["ac_ct_CC"]="gcc"
667 S["CPPFLAGS"]=""
668 S["LDFLAGS"]=""
669 S["CFLAGS"]="-g -O2"
670 S["CC"]="gcc"
671 S["RT_DEVEL_MODE"]="0"
672 S["APACHECTL"]="/usr/sbin/apachectl"
673 S["RTGROUP"]="www"
674 S["WEB_GROUP"]="www"
675 S["WEB_USER"]="www"
676 S["DB_RT_PASS"]="rt_pass"
677 S["DB_RT_USER"]="rt_user"
678 S["DB_DATABASE"]="rt3"
679 S["DB_DBA"]="root"
680 S["DB_RT_HOST"]="localhost"
681 S["DB_PORT"]=""
682 S["DB_HOST"]="localhost"
683 S["DATABASE_ENV_PREF"]=""
684 S["DB_TYPE"]="mysql"
685 S["LIBS_GROUP"]="bin"
686 S["LIBS_OWNER"]="root"
687 S["BIN_OWNER"]="root"
688 S["COMMENT_INPLACE_LAYOUT"]=""
689 S["rt_layout_name"]="relative"
690 S["exp_customlibdir"]="local/lib"
691 S["customlibdir"]="local/lib"
692 S["exp_customlexdir"]="local/po"
693 S["customlexdir"]="local/po"
694 S["exp_customhtmldir"]="local/html"
695 S["customhtmldir"]="local/html"
696 S["exp_custometcdir"]="local/etc"
697 S["custometcdir"]="local/etc"
698 S["exp_customdir"]="local"
699 S["customdir"]="local"
700 S["exp_sessionstatedir"]="var/session_data"
701 S["sessionstatedir"]="var/session_data"
702 S["exp_masonstatedir"]="var/mason_data"
703 S["masonstatedir"]="var/mason_data"
704 S["exp_logfiledir"]="var/log"
705 S["logfiledir"]="var/log"
706 S["exp_localstatedir"]="var"
707 S["exp_plugindir"]="plugins"
708 S["plugindir"]="plugins"
709 S["exp_manualdir"]="share/doc"
710 S["manualdir"]="share/doc"
711 S["exp_fontdir"]="share/fonts"
712 S["fontdir"]="share/fonts"
713 S["exp_htmldir"]="share/html"
714 S["exp_datadir"]="share"
715 S["exp_libdir"]="lib"
716 S["exp_mandir"]="man"
717 S["exp_sysconfdir"]="etc"
718 S["exp_sbindir"]="sbin"
719 S["exp_bindir"]="bin"
720 S["exp_exec_prefix"]="/opt/rt3"
721 S["exp_prefix"]="/opt/rt3"
722 S["SPEEDY_BIN"]="/usr/local/bin/speedy"
723 S["WEB_HANDLER"]="fastcgi"
724 S["PERL"]="/usr/bin/perl"
725 S["AWK"]="gawk"
726 S["INSTALL_DATA"]="${INSTALL} -m 644"
727 S["INSTALL_SCRIPT"]="${INSTALL}"
728 S["INSTALL_PROGRAM"]="${INSTALL}"
729 S["rt_version_patch"]="8"
730 S["rt_version_minor"]="8"
731 S["rt_version_major"]="3"
732 S["target_alias"]=""
733 S["host_alias"]=""
734 S["build_alias"]=""
735 S["LIBS"]=""
736 S["ECHO_T"]=""
737 S["ECHO_N"]=""
738 S["ECHO_C"]="\\c"
739 S["DEFS"]="-DPACKAGE_NAME=\\\"RT\\\" -DPACKAGE_TARNAME=\\\"rt\\\" -DPACKAGE_VERSION=\\\"3.8.8\\\" -DPACKAGE_STRING=\\\"RT\\ 3.8.8\\\" -DPACKAGE_BUGREPORT=\\\"rt-bugs@bestpractica"\
740 "l.com\\\" -DPACKAGE_URL=\\\"\\\""
741 S["mandir"]="man"
742 S["localedir"]="${datarootdir}/locale"
743 S["libdir"]="lib"
744 S["psdir"]="${docdir}"
745 S["pdfdir"]="${docdir}"
746 S["dvidir"]="${docdir}"
747 S["htmldir"]="share/html"
748 S["infodir"]="${datarootdir}/info"
749 S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
750 S["oldincludedir"]="/usr/include"
751 S["includedir"]="${prefix}/include"
752 S["localstatedir"]="var"
753 S["sharedstatedir"]="${prefix}/com"
754 S["sysconfdir"]="etc"
755 S["datadir"]="share"
756 S["datarootdir"]="${prefix}/share"
757 S["libexecdir"]="${exec_prefix}/libexec"
758 S["sbindir"]="sbin"
759 S["bindir"]="bin"
760 S["program_transform_name"]="s,x,x,"
761 S["prefix"]="/opt/rt3"
762 S["exec_prefix"]="/opt/rt3"
763 S["PACKAGE_URL"]=""
764 S["PACKAGE_BUGREPORT"]="rt-bugs@bestpractical.com"
765 S["PACKAGE_STRING"]="RT 3.8.8"
766 S["PACKAGE_VERSION"]="3.8.8"
767 S["PACKAGE_TARNAME"]="rt"
768 S["PACKAGE_NAME"]="RT"
769 S["PATH_SEPARATOR"]=":"
770 S["SHELL"]="/bin/sh"
771 _ACAWK
772 cat >>"$tmp/subs1.awk" <<_ACAWK &&
773   for (key in S) S_is_set[key] = 1
774   FS = "\a"
775
776 }
777 {
778   line = $ 0
779   nfields = split(line, field, "@")
780   substed = 0
781   len = length(field[1])
782   for (i = 2; i < nfields; i++) {
783     key = field[i]
784     keylen = length(key)
785     if (S_is_set[key]) {
786       value = S[key]
787       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
788       len += length(value) + length(field[++i])
789       substed = 1
790     } else
791       len += 1 + keylen
792   }
793
794   print line
795 }
796
797 _ACAWK
798 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
799   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
800 else
801   cat
802 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
803   || as_fn_error "could not setup config files machinery" "$LINENO" 5
804 fi # test -n "$CONFIG_FILES"
805
806
807 eval set X "  :F $CONFIG_FILES      "
808 shift
809 for ac_tag
810 do
811   case $ac_tag in
812   :[FHLC]) ac_mode=$ac_tag; continue;;
813   esac
814   case $ac_mode$ac_tag in
815   :[FHL]*:*);;
816   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
817   :[FH]-) ac_tag=-:-;;
818   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
819   esac
820   ac_save_IFS=$IFS
821   IFS=:
822   set x $ac_tag
823   IFS=$ac_save_IFS
824   shift
825   ac_file=$1
826   shift
827
828   case $ac_mode in
829   :L) ac_source=$1;;
830   :[FH])
831     ac_file_inputs=
832     for ac_f
833     do
834       case $ac_f in
835       -) ac_f="$tmp/stdin";;
836       *) # Look for the file first in the build tree, then in the source tree
837          # (if the path is not absolute).  The absolute path cannot be DOS-style,
838          # because $ac_f cannot contain `:'.
839          test -f "$ac_f" ||
840            case $ac_f in
841            [\\/$]*) false;;
842            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
843            esac ||
844            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
845       esac
846       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
847       as_fn_append ac_file_inputs " '$ac_f'"
848     done
849
850     # Let's still pretend it is `configure' which instantiates (i.e., don't
851     # use $as_me), people would be surprised to read:
852     #    /* config.h.  Generated by config.status.  */
853     configure_input='Generated from '`
854           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
855         `' by configure.'
856     if test x"$ac_file" != x-; then
857       configure_input="$ac_file.  $configure_input"
858       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
859 $as_echo "$as_me: creating $ac_file" >&6;}
860     fi
861     # Neutralize special characters interpreted by sed in replacement strings.
862     case $configure_input in #(
863     *\&* | *\|* | *\\* )
864        ac_sed_conf_input=`$as_echo "$configure_input" |
865        sed 's/[\\\\&|]/\\\\&/g'`;; #(
866     *) ac_sed_conf_input=$configure_input;;
867     esac
868
869     case $ac_tag in
870     *:-:* | *:-) cat >"$tmp/stdin" \
871       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
872     esac
873     ;;
874   esac
875
876   ac_dir=`$as_dirname -- "$ac_file" ||
877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$ac_file" : 'X\(//\)[^/]' \| \
879          X"$ac_file" : 'X\(//\)$' \| \
880          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
881 $as_echo X"$ac_file" |
882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
883             s//\1/
884             q
885           }
886           /^X\(\/\/\)[^/].*/{
887             s//\1/
888             q
889           }
890           /^X\(\/\/\)$/{
891             s//\1/
892             q
893           }
894           /^X\(\/\).*/{
895             s//\1/
896             q
897           }
898           s/.*/./; q'`
899   as_dir="$ac_dir"; as_fn_mkdir_p
900   ac_builddir=.
901
902 case "$ac_dir" in
903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
904 *)
905   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
906   # A ".." for each directory in $ac_dir_suffix.
907   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
908   case $ac_top_builddir_sub in
909   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
910   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
911   esac ;;
912 esac
913 ac_abs_top_builddir=$ac_pwd
914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
915 # for backward compatibility:
916 ac_top_builddir=$ac_top_build_prefix
917
918 case $srcdir in
919   .)  # We are building in place.
920     ac_srcdir=.
921     ac_top_srcdir=$ac_top_builddir_sub
922     ac_abs_top_srcdir=$ac_pwd ;;
923   [\\/]* | ?:[\\/]* )  # Absolute name.
924     ac_srcdir=$srcdir$ac_dir_suffix;
925     ac_top_srcdir=$srcdir
926     ac_abs_top_srcdir=$srcdir ;;
927   *) # Relative name.
928     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
929     ac_top_srcdir=$ac_top_build_prefix$srcdir
930     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
931 esac
932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
933
934
935   case $ac_mode in
936   :F)
937   #
938   # CONFIG_FILE
939   #
940
941   case $INSTALL in
942   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
943   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
944   esac
945 # If the template does not know about datarootdir, expand it.
946 # FIXME: This hack should be removed a few years after 2.60.
947 ac_datarootdir_hack=; ac_datarootdir_seen=
948 ac_sed_dataroot='
949 /datarootdir/ {
950   p
951   q
952 }
953 /@datadir@/p
954 /@docdir@/p
955 /@infodir@/p
956 /@localedir@/p
957 /@mandir@/p'
958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
959 *datarootdir*) ac_datarootdir_seen=yes;;
960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
961   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
963   ac_datarootdir_hack='
964   s&@datadir@&share&g
965   s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
966   s&@infodir@&${datarootdir}/info&g
967   s&@localedir@&${datarootdir}/locale&g
968   s&@mandir@&man&g
969   s&\${datarootdir}&${prefix}/share&g' ;;
970 esac
971 ac_sed_extra="/^[        ]*VPATH[        ]*=/{
972 s/:*\$(srcdir):*/:/
973 s/:*\${srcdir}:*/:/
974 s/:*@srcdir@:*/:/
975 s/^\([^=]*=[     ]*\):*/\1/
976 s/:*$//
977 s/^[^=]*=[       ]*$//
978 }
979
980 :t
981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
982 s|@configure_input@|$ac_sed_conf_input|;t t
983 s&@top_builddir@&$ac_top_builddir_sub&;t t
984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
985 s&@srcdir@&$ac_srcdir&;t t
986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
987 s&@top_srcdir@&$ac_top_srcdir&;t t
988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
989 s&@builddir@&$ac_builddir&;t t
990 s&@abs_builddir@&$ac_abs_builddir&;t t
991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
992 s&@INSTALL@&$ac_INSTALL&;t t
993 $ac_datarootdir_hack
994 "
995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
996   || as_fn_error "could not create $ac_file" "$LINENO" 5
997
998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
999   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
1000   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1001   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1002 which seems to be undefined.  Please make sure it is defined." >&5
1003 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1004 which seems to be undefined.  Please make sure it is defined." >&2;}
1005
1006   rm -f "$tmp/stdin"
1007   case $ac_file in
1008   -) cat "$tmp/out" && rm -f "$tmp/out";;
1009   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1010   esac \
1011   || as_fn_error "could not create $ac_file" "$LINENO" 5
1012  ;;
1013
1014
1015
1016   esac
1017
1018
1019   case $ac_file$ac_mode in
1020     "etc/upgrade/3.8-branded-queues-extension":F) chmod ug+x $ac_file
1021                 ;;
1022     "etc/upgrade/3.8-ical-extension":F) chmod ug+x $ac_file
1023                 ;;
1024     "etc/upgrade/split-out-cf-categories":F) chmod ug+x $ac_file
1025                 ;;
1026     "sbin/rt-attributes-viewer":F) chmod ug+x $ac_file
1027                 ;;
1028     "sbin/rt-dump-database":F) chmod ug+x $ac_file
1029                 ;;
1030     "sbin/rt-setup-database":F) chmod ug+x $ac_file
1031                 ;;
1032     "sbin/rt-test-dependencies":F) chmod ug+x $ac_file
1033                 ;;
1034     "sbin/rt-email-digest":F) chmod ug+x $ac_file
1035                 ;;
1036     "sbin/rt-email-dashboards":F) chmod ug+x $ac_file
1037                 ;;
1038     "sbin/rt-clean-sessions":F) chmod ug+x $ac_file
1039                 ;;
1040     "sbin/rt-shredder":F) chmod ug+x $ac_file
1041                 ;;
1042     "sbin/rt-validator":F) chmod ug+x $ac_file
1043                 ;;
1044     "sbin/rt-email-group-admin":F) chmod ug+x $ac_file
1045                 ;;
1046     "sbin/rt-server":F) chmod ug+x $ac_file
1047                 ;;
1048     "bin/fastcgi_server":F) chmod ug+x $ac_file
1049                 ;;
1050     "bin/mason_handler.fcgi":F) chmod ug+x $ac_file
1051                 ;;
1052     "bin/mason_handler.scgi":F) chmod ug+x $ac_file
1053                 ;;
1054     "bin/standalone_httpd":F) chmod ug+x $ac_file
1055                 ;;
1056     "bin/rt-crontool":F) chmod ug+x $ac_file
1057                 ;;
1058     "bin/rt-mailgate":F) chmod ug+x $ac_file
1059                 ;;
1060     "bin/rt":F) chmod ug+x $ac_file
1061                 ;;
1062
1063   esac
1064 done # for ac_tag
1065
1066
1067 as_fn_exit 0