2 # From configure.ac Revision: 3739 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for RT 3.4.5.
6 # Report bugs to <rt-bugs@fsck.com>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
273 PACKAGE_VERSION='3.4.5'
274 PACKAGE_STRING='RT 3.4.5'
275 PACKAGE_BUGREPORT='rt-bugs@fsck.com'
277 ac_unique_file="lib/RT.pm.in"
278 ac_default_prefix=/opt/rt3
279 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS rt_version_major rt_version_minor rt_version_patch INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK PERL SPEEDY_BIN exp_prefix exp_exec_prefix exp_bindir exp_sbindir exp_sysconfdir exp_mandir exp_libdir exp_datadir htmldir exp_htmldir manualdir exp_manualdir exp_localstatedir logfiledir exp_logfiledir masonstatedir exp_masonstatedir sessionstatedir exp_sessionstatedir customdir exp_customdir custometcdir exp_custometcdir customhtmldir exp_customhtmldir customlexdir exp_customlexdir customlibdir exp_customlibdir rt_layout_name BIN_OWNER LIBS_OWNER LIBS_GROUP DB_TYPE DATABASE_ENV_PREF DB_HOST DB_PORT DB_RT_HOST DB_DBA DB_DATABASE DB_RT_USER DB_RT_PASS WEB_USER WEB_GROUP RTGROUP APACHECTL RT_DEVEL_MODE RT_VERSION_MAJOR RT_VERSION_MINOR RT_VERSION_PATCH RT_PATH RT_DOC_PATH RT_LOCAL_PATH RT_LIB_PATH RT_ETC_PATH CONFIG_FILE_PATH RT_BIN_PATH RT_SBIN_PATH RT_VAR_PATH RT_MAN_PATH MASON_DATA_PATH MASON_SESSION_PATH MASON_HTML_PATH LOCAL_ETC_PATH MASON_LOCAL_HTML_PATH LOCAL_LEXICON_PATH LOCAL_LIB_PATH DESTDIR RT_LOG_PATH LIBOBJS LTLIBOBJS'
282 # Initialize some variables set by options.
284 ac_init_version=false
285 # The variables have the same names as the options, with
286 # dashes changed to underlines.
294 program_transform_name=s,x,x,
302 # Installation directory options.
303 # These are left unexpanded so users can "make install exec_prefix=/foo"
304 # and all the variables that are supposed to be based on exec_prefix
305 # by default will actually change.
306 # Use braces instead of parens because sh, perl, etc. also accept them.
307 bindir='${exec_prefix}/bin'
308 sbindir='${exec_prefix}/sbin'
309 libexecdir='${exec_prefix}/libexec'
310 datadir='${prefix}/share'
311 sysconfdir='${prefix}/etc'
312 sharedstatedir='${prefix}/com'
313 localstatedir='${prefix}/var'
314 libdir='${exec_prefix}/lib'
315 includedir='${prefix}/include'
316 oldincludedir='/usr/include'
317 infodir='${prefix}/info'
318 mandir='${prefix}/man'
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
330 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
332 # Accept the important Cygnus configure options, so we can diagnose typos.
336 -bindir | --bindir | --bindi | --bind | --bin | --bi)
338 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
341 -build | --build | --buil | --bui | --bu)
342 ac_prev=build_alias ;;
343 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
344 build_alias=$ac_optarg ;;
346 -cache-file | --cache-file | --cache-fil | --cache-fi \
347 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
348 ac_prev=cache_file ;;
349 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
350 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
351 cache_file=$ac_optarg ;;
354 cache_file=config.cache ;;
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
360 datadir=$ac_optarg ;;
362 -disable-* | --disable-*)
363 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
364 # Reject names that are not valid shell variable names.
365 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
366 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
367 { (exit 1); exit 1; }; }
368 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369 eval "enable_$ac_feature=no" ;;
371 -enable-* | --enable-*)
372 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
373 # Reject names that are not valid shell variable names.
374 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
375 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
376 { (exit 1); exit 1; }; }
377 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
379 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
382 eval "enable_$ac_feature='$ac_optarg'" ;;
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix=$ac_optarg ;;
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
397 -help | --help | --hel | --he | -h)
399 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
400 ac_init_help=recursive ;;
401 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
402 ac_init_help=short ;;
404 -host | --host | --hos | --ho)
405 ac_prev=host_alias ;;
406 -host=* | --host=* | --hos=* | --ho=*)
407 host_alias=$ac_optarg ;;
409 -includedir | --includedir | --includedi | --included | --include \
410 | --includ | --inclu | --incl | --inc)
411 ac_prev=includedir ;;
412 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
413 | --includ=* | --inclu=* | --incl=* | --inc=*)
414 includedir=$ac_optarg ;;
416 -infodir | --infodir | --infodi | --infod | --info | --inf)
418 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
419 infodir=$ac_optarg ;;
421 -libdir | --libdir | --libdi | --libd)
423 -libdir=* | --libdir=* | --libdi=* | --libd=*)
426 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
427 | --libexe | --libex | --libe)
428 ac_prev=libexecdir ;;
429 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
430 | --libexe=* | --libex=* | --libe=*)
431 libexecdir=$ac_optarg ;;
433 -localstatedir | --localstatedir | --localstatedi | --localstated \
434 | --localstate | --localstat | --localsta | --localst \
435 | --locals | --local | --loca | --loc | --lo)
436 ac_prev=localstatedir ;;
437 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
438 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
439 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
440 localstatedir=$ac_optarg ;;
442 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
448 # Obsolete; use --without-fp.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c | -n)
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
459 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
460 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
461 | --oldin | --oldi | --old | --ol | --o)
462 ac_prev=oldincludedir ;;
463 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
464 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
465 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
466 oldincludedir=$ac_optarg ;;
468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
473 -program-prefix | --program-prefix | --program-prefi | --program-pref \
474 | --program-pre | --program-pr | --program-p)
475 ac_prev=program_prefix ;;
476 -program-prefix=* | --program-prefix=* | --program-prefi=* \
477 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
478 program_prefix=$ac_optarg ;;
480 -program-suffix | --program-suffix | --program-suffi | --program-suff \
481 | --program-suf | --program-su | --program-s)
482 ac_prev=program_suffix ;;
483 -program-suffix=* | --program-suffix=* | --program-suffi=* \
484 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
485 program_suffix=$ac_optarg ;;
487 -program-transform-name | --program-transform-name \
488 | --program-transform-nam | --program-transform-na \
489 | --program-transform-n | --program-transform- \
490 | --program-transform | --program-transfor \
491 | --program-transfo | --program-transf \
492 | --program-trans | --program-tran \
493 | --progr-tra | --program-tr | --program-t)
494 ac_prev=program_transform_name ;;
495 -program-transform-name=* | --program-transform-name=* \
496 | --program-transform-nam=* | --program-transform-na=* \
497 | --program-transform-n=* | --program-transform-=* \
498 | --program-transform=* | --program-transfor=* \
499 | --program-transfo=* | --program-transf=* \
500 | --program-trans=* | --program-tran=* \
501 | --progr-tra=* | --program-tr=* | --program-t=*)
502 program_transform_name=$ac_optarg ;;
504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505 | -silent | --silent | --silen | --sile | --sil)
508 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512 sbindir=$ac_optarg ;;
514 -sharedstatedir | --sharedstatedir | --sharedstatedi \
515 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
516 | --sharedst | --shareds | --shared | --share | --shar \
518 ac_prev=sharedstatedir ;;
519 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
520 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
521 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523 sharedstatedir=$ac_optarg ;;
525 -site | --site | --sit)
527 -site=* | --site=* | --sit=*)
530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
535 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
536 | --syscon | --sysco | --sysc | --sys | --sy)
537 ac_prev=sysconfdir ;;
538 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
539 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
540 sysconfdir=$ac_optarg ;;
542 -target | --target | --targe | --targ | --tar | --ta | --t)
543 ac_prev=target_alias ;;
544 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
545 target_alias=$ac_optarg ;;
547 -v | -verbose | --verbose | --verbos | --verbo | --verb)
550 -version | --version | --versio | --versi | --vers | -V)
554 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid package name: $ac_package" >&2
558 { (exit 1); exit 1; }; }
559 ac_package=`echo $ac_package| sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "with_$ac_package='$ac_optarg'" ;;
566 -without-* | --without-*)
567 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
568 # Reject names that are not valid shell variable names.
569 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570 { echo "$as_me: error: invalid package name: $ac_package" >&2
571 { (exit 1); exit 1; }; }
572 ac_package=`echo $ac_package | sed 's/-/_/g'`
573 eval "with_$ac_package=no" ;;
576 # Obsolete; use --with-x.
579 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
580 | --x-incl | --x-inc | --x-in | --x-i)
581 ac_prev=x_includes ;;
582 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
583 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
584 x_includes=$ac_optarg ;;
586 -x-libraries | --x-libraries | --x-librarie | --x-librari \
587 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
588 ac_prev=x_libraries ;;
589 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
590 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
591 x_libraries=$ac_optarg ;;
593 -*) { echo "$as_me: error: unrecognized option: $ac_option
594 Try \`$0 --help' for more information." >&2
595 { (exit 1); exit 1; }; }
599 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
603 { (exit 1); exit 1; }; }
604 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
605 eval "$ac_envvar='$ac_optarg'"
609 # FIXME: should be removed in autoconf 3.0.
610 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
611 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
612 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
613 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
619 if test -n "$ac_prev"; then
620 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
621 { echo "$as_me: error: missing argument to $ac_option" >&2
622 { (exit 1); exit 1; }; }
625 # Be sure to have absolute paths.
626 for ac_var in exec_prefix prefix
628 eval ac_val=$`echo $ac_var`
630 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
631 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
632 { (exit 1); exit 1; }; };;
636 # Be sure to have absolute paths.
637 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
638 localstatedir libdir includedir oldincludedir infodir mandir
640 eval ac_val=$`echo $ac_var`
642 [\\/$]* | ?:[\\/]* ) ;;
643 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
644 { (exit 1); exit 1; }; };;
648 # There might be people who depend on the old broken behavior: `$host'
649 # used to hold the argument of --host etc.
650 # FIXME: To remove some day.
655 # FIXME: To remove some day.
656 if test "x$host_alias" != x; then
657 if test "x$build_alias" = x; then
658 cross_compiling=maybe
659 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
660 If a cross compiler is detected then cross compile mode will be used." >&2
661 elif test "x$build_alias" != "x$host_alias"; then
667 test -n "$host_alias" && ac_tool_prefix=$host_alias-
669 test "$silent" = yes && exec 6>/dev/null
672 # Find the source files, if location was not specified.
673 if test -z "$srcdir"; then
674 ac_srcdir_defaulted=yes
675 # Try the directory containing this script, then its parent.
676 ac_confdir=`(dirname "$0") 2>/dev/null ||
677 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
678 X"$0" : 'X\(//\)[^/]' \| \
679 X"$0" : 'X\(//\)$' \| \
680 X"$0" : 'X\(/\)' \| \
681 . : '\(.\)' 2>/dev/null ||
683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
685 /^X\(\/\/\)$/{ s//\1/; q; }
686 /^X\(\/\).*/{ s//\1/; q; }
689 if test ! -r $srcdir/$ac_unique_file; then
693 ac_srcdir_defaulted=no
695 if test ! -r $srcdir/$ac_unique_file; then
696 if test "$ac_srcdir_defaulted" = yes; then
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
698 { (exit 1); exit 1; }; }
700 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
701 { (exit 1); exit 1; }; }
704 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
705 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
706 { (exit 1); exit 1; }; }
707 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
708 ac_env_build_alias_set=${build_alias+set}
709 ac_env_build_alias_value=$build_alias
710 ac_cv_env_build_alias_set=${build_alias+set}
711 ac_cv_env_build_alias_value=$build_alias
712 ac_env_host_alias_set=${host_alias+set}
713 ac_env_host_alias_value=$host_alias
714 ac_cv_env_host_alias_set=${host_alias+set}
715 ac_cv_env_host_alias_value=$host_alias
716 ac_env_target_alias_set=${target_alias+set}
717 ac_env_target_alias_value=$target_alias
718 ac_cv_env_target_alias_set=${target_alias+set}
719 ac_cv_env_target_alias_value=$target_alias
720 ac_env_PERL_set=${PERL+set}
721 ac_env_PERL_value=$PERL
722 ac_cv_env_PERL_set=${PERL+set}
723 ac_cv_env_PERL_value=$PERL
726 # Report the --help message.
728 if test "$ac_init_help" = "long"; then
729 # Omit some internal or obsolete options to make the list less imposing.
730 # This message is too long to be a string in the A/UX 3.1 sh.
732 \`configure' configures RT 3.4.5 to adapt to many kinds of systems.
734 Usage: $0 [OPTION]... [VAR=VALUE]...
736 To assign environment variables (e.g., CC, CFLAGS...), specify them as
737 VAR=VALUE. See below for descriptions of some of the useful variables.
739 Defaults for the options are specified in brackets.
742 -h, --help display this help and exit
743 --help=short display options specific to this package
744 --help=recursive display the short help of all the included packages
745 -V, --version display version information and exit
746 -q, --quiet, --silent do not print \`checking...' messages
747 --cache-file=FILE cache test results in FILE [disabled]
748 -C, --config-cache alias for \`--cache-file=config.cache'
749 -n, --no-create do not create output files
750 --srcdir=DIR find the sources in DIR [configure dir or \`..']
755 Installation directories:
756 --prefix=PREFIX install architecture-independent files in PREFIX
758 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
761 By default, \`make install' will install all the files in
762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764 for instance \`--prefix=\$HOME'.
766 For better control, use the options below.
768 Fine tuning of the installation directories:
769 --bindir=DIR user executables [EPREFIX/bin]
770 --sbindir=DIR system admin executables [EPREFIX/sbin]
771 --libexecdir=DIR program executables [EPREFIX/libexec]
772 --datadir=DIR read-only architecture-independent data [PREFIX/share]
773 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
774 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
775 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
776 --libdir=DIR object code libraries [EPREFIX/lib]
777 --includedir=DIR C header files [PREFIX/include]
778 --oldincludedir=DIR C header files for non-gcc [/usr/include]
779 --infodir=DIR info documentation [PREFIX/info]
780 --mandir=DIR man documentation [PREFIX/man]
787 if test -n "$ac_init_help"; then
788 case $ac_init_help in
789 short | recursive ) echo "Configuration of RT 3.4.5:";;
794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
796 --enable-layout=LAYOUT Use a specific directory layout (Default: RT3)
799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
801 --with-speedycgi=/path/to/speedy
802 path to your speedycgi binary, if it exists
803 --with-bin-owner=OWNER user that will own RT binaries (default root)
804 --with-libs-owner=OWNER user that will own RT libraries (default root)
805 --with-libs-group=GROUP group that will own RT binaries (default bin)
806 --with-db-type=TYPE sort of database RT will use (default: mysql)
807 (mysql, Pg, Oracle, Informix and SQLite are valid)
808 --with-db-host=HOSTNAME FQDN of database server (default: localhost)
809 --with-db-port=PORT port on which the database listens on
810 --with-db-rt-host=HOSTNAME
811 FQDN of RT server which talks to the database server
813 --with-db-dba=DBA name of database administrator (default: root)
814 --with-db-database=DBNAME
815 name of the database to use (default: rt3)
816 --with-db-rt-user=DBUSER
817 name of database user (default: rt_user)
818 --with-db-rt-pass=PASSWORD
819 password for database user (default: rt_pass)
820 --with-web-user=USER user the web server runs as (default: www)
821 --with-web-group=GROUP group the web server runs as (default: www)
822 --with-rt-group=GROUP group to own all files (default: rt)
823 --with-my-user-group set all users and groups to current user/group
824 --with-apachectl instruct RT where to find your apachectl
825 --with-devel-mode Turn on development aids that might hurt you in
828 Some influential environment variables:
829 PERL Perl interpreter command
831 Use these variables to override the choices made by `configure' or to help
832 it to find libraries and programs with nonstandard names/locations.
834 Report bugs to <rt-bugs@fsck.com>.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842 test -d $ac_dir || continue
845 if test "$ac_dir" != .; then
846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847 # A "../" for each directory in $ac_dir_suffix.
848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
850 ac_dir_suffix= ac_top_builddir=
854 .) # No --srcdir option. We are building in place.
856 if test -z "$ac_top_builddir"; then
859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
861 [\\/]* | ?:[\\/]* ) # Absolute path.
862 ac_srcdir=$srcdir$ac_dir_suffix;
863 ac_top_srcdir=$srcdir ;;
865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
869 # Do not use `cd foo && pwd` to compute absolute paths, because
870 # the directories may not exist.
872 .) ac_abs_builddir="$ac_dir";;
875 .) ac_abs_builddir=`pwd`;;
876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
880 case $ac_abs_builddir in
881 .) ac_abs_top_builddir=${ac_top_builddir}.;;
883 case ${ac_top_builddir}. in
884 .) ac_abs_top_builddir=$ac_abs_builddir;;
885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
889 case $ac_abs_builddir in
890 .) ac_abs_srcdir=$ac_srcdir;;
893 .) ac_abs_srcdir=$ac_abs_builddir;;
894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
898 case $ac_abs_builddir in
899 .) ac_abs_top_srcdir=$ac_top_srcdir;;
901 case $ac_top_srcdir in
902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
931 generated by GNU Autoconf 2.59
933 Copyright (C) 2003 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
944 It was created by RT $as_me 3.4.5, which was
945 generated by GNU Autoconf 2.59. Invocation command line was
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 test -z "$as_dir" && as_dir=.
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_must_keep_next=false
1010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021 if test $ac_must_keep_next = true; then
1022 ac_must_keep_next=false # Got value, back to normal.
1025 *=* | --config-cache | -C | -disable-* | --disable-* \
1026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028 | -with-* | --with-* | -without-* | --without-* | --x)
1029 case "$ac_configure_args0 " in
1030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033 -* ) ac_must_keep_next=true ;;
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1085 for ac_var in $ac_subst_vars
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1092 if test -n "$ac_subst_files"; then
1099 for ac_var in $ac_subst_files
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -s confdefs.h; then
1114 sed "/^$/d" confdefs.h | sort
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1121 rm -f core *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 # Predefined preprocessor variables.
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1197 # Check that the precious variables saved in the cache have kept the same
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288 test "x$rt_version_major" = 'x' && rt_version_major=0
1289 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1290 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1293 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1294 if test -f $ac_dir/install-sh; then
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 elif test -f $ac_dir/install.sh; then
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 elif test -f $ac_dir/shtool; then
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1308 if test -z "$ac_aux_dir"; then
1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1311 { (exit 1); exit 1; }; }
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317 # Find a good install program. We prefer a C program (faster),
1318 # so one script is as good as another. But avoid the broken or
1319 # incompatible versions:
1320 # SysV /etc/install, /usr/sbin/install
1321 # SunOS /usr/etc/install
1322 # IRIX /sbin/install
1324 # AmigaOS /C/install, which installs bootblocks on floppy discs
1325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1328 # OS/2's system install, which has a completely different semantic
1329 # ./install, which can be erroneously created by make from ./install.sh.
1330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1332 if test -z "$INSTALL"; then
1333 if test "${ac_cv_path_install+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 test -z "$as_dir" && as_dir=.
1341 # Account for people who put trailing slashes in PATH elements.
1343 ./ | .// | /cC/* | \
1344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1345 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1348 # OSF1 and SCO ODT 3.0 have their own names for install.
1349 # Don't use installbsd from OSF since it installs stuff as root
1351 for ac_prog in ginstall scoinst install; do
1352 for ac_exec_ext in '' $ac_executable_extensions; do
1353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1354 if test $ac_prog = install &&
1355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1356 # AIX install. It has an incompatible calling convention.
1358 elif test $ac_prog = install &&
1359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1360 # program-specific install script used by HP pwplus--don't use.
1363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1375 if test "${ac_cv_path_install+set}" = set; then
1376 INSTALL=$ac_cv_path_install
1378 # As a last resort, use the slow shell script. We don't cache a
1379 # path for INSTALL within a source directory, because that will
1380 # break other packages using the cache if that directory is
1381 # removed, or if the path is relative.
1382 INSTALL=$ac_install_sh
1385 echo "$as_me:$LINENO: result: $INSTALL" >&5
1386 echo "${ECHO_T}$INSTALL" >&6
1388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1389 # It thinks the first close brace ends the variable substitution.
1390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1396 for ac_prog in gawk mawk nawk awk
1398 # Extract the first word of "$ac_prog", so it can be a program name with args.
1399 set dummy $ac_prog; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_AWK+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$AWK"; then
1406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_AWK="$ac_prog"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 if test -n "$AWK"; then
1426 echo "$as_me:$LINENO: result: $AWK" >&5
1427 echo "${ECHO_T}$AWK" >&6
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1433 test -n "$AWK" && break
1437 # Extract the first word of "perl", so it can be a program name with args.
1438 set dummy perl; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_path_PERL+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
1467 PERL=$ac_cv_path_PERL
1469 if test -n "$PERL"; then
1470 echo "$as_me:$LINENO: result: $PERL" >&5
1471 echo "${ECHO_T}$PERL" >&6
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1477 if test "$PERL" = 'not found'; then
1478 { { echo "$as_me:$LINENO: error: cannot use $PACKAGE_NAME without perl" >&5
1479 echo "$as_me: error: cannot use $PACKAGE_NAME without perl" >&2;}
1480 { (exit 1); exit 1; }; }
1485 # Check whether --with-speedycgi or --without-speedycgi was given.
1486 if test "${with_speedycgi+set}" = set; then
1487 withval="$with_speedycgi"
1490 SPEEDY_BIN=/usr/local/bin/speedy
1497 # Check whether --enable-layout or --disable-layout was given.
1498 if test "${enable_layout+set}" = set; then
1499 enableval="$enable_layout"
1503 if test "x$LAYOUT" = "x"; then
1507 if test ! -f $srcdir/config.layout; then
1508 { echo "$as_me:$LINENO: WARNING: Layout file $srcdir/config.layout not found" >&5
1509 echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
1512 pldconf=./config.pld
1513 $PERL -0777 -p -e "\$layout = '$LAYOUT';" -e '
1514 s/.*<Layout\s+$layout>//gims;
1515 s/\<\/Layout\>.*//s;
1520 # m4 will not let us just use $srcdir/config.layout, we need $1
1521 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man)dir)\s*:\s*(.*)$/$1=$2/gim;
1522 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
1523 ' < $srcdir/config.layout > $pldconf
1525 if test -s $pldconf; then
1526 rt_layout_name=$LAYOUT
1529 for var in prefix exec_prefix bindir sbindir \
1530 sysconfdir mandir libdir datadir htmldir \
1531 localstatedir logfiledir masonstatedir \
1532 sessionstatedir customdir custometcdir customhtmldir \
1533 customlexdir customlibdir manualdir; do
1534 eval "val=\"\$$var\""
1535 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1537 sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1550 while test "x${ap_cur}" != "x${ap_last}"; do
1552 ap_cur=`eval "echo ${ap_cur}"`
1554 exp_prefix="${ap_cur}"
1562 ap_cur='$exec_prefix'
1563 while test "x${ap_cur}" != "x${ap_last}"; do
1565 ap_cur=`eval "echo ${ap_cur}"`
1567 exp_exec_prefix="${ap_cur}"
1576 while test "x${ap_cur}" != "x${ap_last}"; do
1578 ap_cur=`eval "echo ${ap_cur}"`
1580 exp_bindir="${ap_cur}"
1589 while test "x${ap_cur}" != "x${ap_last}"; do
1591 ap_cur=`eval "echo ${ap_cur}"`
1593 exp_sbindir="${ap_cur}"
1601 ap_cur='$sysconfdir'
1602 while test "x${ap_cur}" != "x${ap_last}"; do
1604 ap_cur=`eval "echo ${ap_cur}"`
1606 exp_sysconfdir="${ap_cur}"
1615 while test "x${ap_cur}" != "x${ap_last}"; do
1617 ap_cur=`eval "echo ${ap_cur}"`
1619 exp_mandir="${ap_cur}"
1628 while test "x${ap_cur}" != "x${ap_last}"; do
1630 ap_cur=`eval "echo ${ap_cur}"`
1632 exp_libdir="${ap_cur}"
1641 while test "x${ap_cur}" != "x${ap_last}"; do
1643 ap_cur=`eval "echo ${ap_cur}"`
1645 exp_datadir="${ap_cur}"
1654 while test "x${ap_cur}" != "x${ap_last}"; do
1656 ap_cur=`eval "echo ${ap_cur}"`
1658 exp_htmldir="${ap_cur}"
1667 while test "x${ap_cur}" != "x${ap_last}"; do
1669 ap_cur=`eval "echo ${ap_cur}"`
1671 exp_manualdir="${ap_cur}"
1679 ap_cur='$localstatedir'
1680 while test "x${ap_cur}" != "x${ap_last}"; do
1682 ap_cur=`eval "echo ${ap_cur}"`
1684 exp_localstatedir="${ap_cur}"
1692 ap_cur='$logfiledir'
1693 while test "x${ap_cur}" != "x${ap_last}"; do
1695 ap_cur=`eval "echo ${ap_cur}"`
1697 exp_logfiledir="${ap_cur}"
1705 ap_cur='$masonstatedir'
1706 while test "x${ap_cur}" != "x${ap_last}"; do
1708 ap_cur=`eval "echo ${ap_cur}"`
1710 exp_masonstatedir="${ap_cur}"
1718 ap_cur='$sessionstatedir'
1719 while test "x${ap_cur}" != "x${ap_last}"; do
1721 ap_cur=`eval "echo ${ap_cur}"`
1723 exp_sessionstatedir="${ap_cur}"
1732 while test "x${ap_cur}" != "x${ap_last}"; do
1734 ap_cur=`eval "echo ${ap_cur}"`
1736 exp_customdir="${ap_cur}"
1744 ap_cur='$custometcdir'
1745 while test "x${ap_cur}" != "x${ap_last}"; do
1747 ap_cur=`eval "echo ${ap_cur}"`
1749 exp_custometcdir="${ap_cur}"
1757 ap_cur='$customhtmldir'
1758 while test "x${ap_cur}" != "x${ap_last}"; do
1760 ap_cur=`eval "echo ${ap_cur}"`
1762 exp_customhtmldir="${ap_cur}"
1770 ap_cur='$customlexdir'
1771 while test "x${ap_cur}" != "x${ap_last}"; do
1773 ap_cur=`eval "echo ${ap_cur}"`
1775 exp_customlexdir="${ap_cur}"
1783 ap_cur='$customlibdir'
1784 while test "x${ap_cur}" != "x${ap_last}"; do
1786 ap_cur=`eval "echo ${ap_cur}"`
1788 exp_customlibdir="${ap_cur}"
1794 echo "$as_me:$LINENO: checking for chosen layout" >&5
1795 echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
1796 if test "x$rt_layout_name" = "xno"; then
1797 if test "x$LAYOUT" = "xno"; then
1798 echo "$as_me:$LINENO: result: none" >&5
1799 echo "${ECHO_T}none" >&6
1801 echo "$as_me:$LINENO: result: $LAYOUT" >&5
1802 echo "${ECHO_T}$LAYOUT" >&6
1804 { { echo "$as_me:$LINENO: error: a valid layout must be specified (or the default used)" >&5
1805 echo "$as_me: error: a valid layout must be specified (or the default used)" >&2;}
1806 { (exit 1); exit 1; }; }
1809 echo "$as_me:$LINENO: result: $rt_layout_name" >&5
1810 echo "${ECHO_T}$rt_layout_name" >&6
1815 # ACRT_USER_EXISTS( users, variable, default )
1816 # - users is a list of users [www apache www-docs]
1817 # from highest to lowest priority to high priority (i.e. first match)
1818 # - variable is what you set with the result
1825 # Check whether --with-bin-owner or --without-bin-owner was given.
1826 if test "${with_bin_owner+set}" = set; then
1827 withval="$with_bin_owner"
1835 # Check whether --with-libs-owner or --without-libs-owner was given.
1836 if test "${with_libs_owner+set}" = set; then
1837 withval="$with_libs_owner"
1845 # Check whether --with-libs-group or --without-libs-group was given.
1846 if test "${with_libs_group+set}" = set; then
1847 withval="$with_libs_group"
1855 # Check whether --with-db-type or --without-db-type was given.
1856 if test "${with_db_type+set}" = set; then
1857 withval="$with_db_type"
1862 if test "$DB_TYPE" != 'mysql' -a "$DB_TYPE" != 'Pg' -a "$DB_TYPE" != 'SQLite' -a "$DB_TYPE" != 'Oracle' -a "$DB_TYPE" != 'Informix' -a "$DB_TYPE" != 'Sybase' ; then
1863 { { echo "$as_me:$LINENO: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&5
1864 echo "$as_me: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&2;}
1865 { (exit 1); exit 1; }; }
1869 if test "$DB_TYPE" = 'Oracle'; then
1870 test "x$ORACLE_HOME" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the ORACLE_HOME environment variable" >&5
1871 echo "$as_me: error: Please declare the ORACLE_HOME environment variable" >&2;}
1872 { (exit 1); exit 1; }; }
1873 DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
1876 if test "$DB_TYPE" = 'Sybase'; then
1877 test "x$SYBASE" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the SYBASE_HOME environment variable" >&5
1878 echo "$as_me: error: Please declare the SYBASE_HOME environment variable" >&2;}
1879 { (exit 1); exit 1; }; }
1880 DATABASE_ENV_PREF="\$ENV{'SYBASE'} = '$SYBASE';"
1885 # Check whether --with-db-host or --without-db-host was given.
1886 if test "${with_db_host+set}" = set; then
1887 withval="$with_db_host"
1895 # Check whether --with-db-port or --without-db-port was given.
1896 if test "${with_db_port+set}" = set; then
1897 withval="$with_db_port"
1905 # Check whether --with-db-rt-host or --without-db-rt-host was given.
1906 if test "${with_db_rt_host+set}" = set; then
1907 withval="$with_db_rt_host"
1910 DB_RT_HOST=localhost
1915 # Check whether --with-db-dba or --without-db-dba was given.
1916 if test "${with_db_dba+set}" = set; then
1917 withval="$with_db_dba"
1925 # Check whether --with-db-database or --without-db-database was given.
1926 if test "${with_db_database+set}" = set; then
1927 withval="$with_db_database"
1928 DB_DATABASE=$withval
1935 # Check whether --with-db-rt-user or --without-db-rt-user was given.
1936 if test "${with_db_rt_user+set}" = set; then
1937 withval="$with_db_rt_user"
1945 # Check whether --with-db-rt-pass or --without-db-rt-pass was given.
1946 if test "${with_db_rt_pass+set}" = set; then
1947 withval="$with_db_rt_pass"
1955 # Check whether --with-web-user or --without-web-user was given.
1956 if test "${with_web_user+set}" = set; then
1957 withval="$with_web_user"
1962 for x in www www-data apache httpd nobody; do
1963 echo "$as_me:$LINENO: checking if user $x exists" >&5
1964 echo $ECHO_N "checking if user $x exists... $ECHO_C" >&6
1965 if $PERL -e"exit( defined getpwnam('$x') ? 0 : 1)" ; then
1966 echo "$as_me:$LINENO: result: found" >&5
1967 echo "${ECHO_T}found" >&6; WEB_USER=$x ; break
1969 echo "$as_me:$LINENO: result: not found" >&5
1970 echo "${ECHO_T}not found" >&6
1980 # Check whether --with-web-group or --without-web-group was given.
1981 if test "${with_web_group+set}" = set; then
1982 withval="$with_web_group"
1987 for x in www www-data apache httpd nogroup nobody; do
1988 echo "$as_me:$LINENO: checking if group $x exists" >&5
1989 echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
1990 if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
1991 echo "$as_me:$LINENO: result: found" >&5
1992 echo "${ECHO_T}found" >&6; WEB_GROUP=$x ; break
1994 echo "$as_me:$LINENO: result: not found" >&5
1995 echo "${ECHO_T}not found" >&6
2004 # Check whether --with-rt-group or --without-rt-group was given.
2005 if test "${with_rt_group+set}" = set; then
2006 withval="$with_rt_group"
2011 for x in rt3 rt $WEB_GROUP; do
2012 echo "$as_me:$LINENO: checking if group $x exists" >&5
2013 echo $ECHO_N "checking if group $x exists... $ECHO_C" >&6
2014 if $PERL -e"exit( defined getgrnam('$x') ? 0 : 1)" ; then
2015 echo "$as_me:$LINENO: result: found" >&5
2016 echo "${ECHO_T}found" >&6; RTGROUP=$x ; break
2018 echo "$as_me:$LINENO: result: not found" >&5
2019 echo "${ECHO_T}not found" >&6
2027 my_group=$(groups|cut -f1 -d' ')
2028 my_user=${USER:-$LOGNAME}
2030 # Check whether --with-my-user-group or --without-my-user-group was given.
2031 if test "${with_my_user_group+set}" = set; then
2032 withval="$with_my_user_group"
2036 LIBS_GROUP=$my_group
2041 # Test for valid database names
2042 if test "$DB_TYPE" == "mysql" ; then
2043 echo "$as_me:$LINENO: checking if database name is valid" >&5
2044 echo $ECHO_N "checking if database name is valid... $ECHO_C" >&6
2045 if echo $DB_DATABASE | $AWK '/-/ { exit 1 }' ; then
2046 echo "$as_me:$LINENO: result: yes" >&5
2047 echo "${ECHO_T}yes" >&6
2049 { { echo "$as_me:$LINENO: error: no. database name ($DB_DATABASE) contains '-' which is not valid for mysql" >&5
2050 echo "$as_me: error: no. database name ($DB_DATABASE) contains '-' which is not valid for mysql" >&2;}
2051 { (exit 1); exit 1; }; }
2062 # Check whether --with-apachectl or --without-apachectl was given.
2063 if test "${with_apachectl+set}" = set; then
2064 withval="$with_apachectl"
2067 APACHECTL=`which apachectl`
2072 # Check whether --with-devel-mode or --without-devel-mode was given.
2073 if test "${with_devel_mode+set}" = set; then
2074 withval="$with_devel_mode"
2081 RT_VERSION_MAJOR=${rt_version_major}
2083 RT_VERSION_MINOR=${rt_version_minor}
2085 RT_VERSION_PATCH=${rt_version_patch}
2088 RT_PATH=${exp_prefix}
2090 RT_DOC_PATH=${exp_manualdir}
2092 RT_LOCAL_PATH=${exp_customdir}
2094 RT_LIB_PATH=${exp_libdir}
2096 RT_ETC_PATH=${exp_sysconfdir}
2098 CONFIG_FILE_PATH=${exp_sysconfdir}
2100 RT_BIN_PATH=${exp_bindir}
2102 RT_SBIN_PATH=${exp_sbindir}
2104 RT_VAR_PATH=${exp_localstatedir}
2106 RT_MAN_PATH=${exp_mandir}
2108 MASON_DATA_PATH=${exp_masonstatedir}
2110 MASON_SESSION_PATH=${exp_sessionstatedir}
2112 MASON_HTML_PATH=${exp_htmldir}
2114 LOCAL_ETC_PATH=${exp_custometcdir}
2116 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
2118 LOCAL_LEXICON_PATH=${exp_customlexdir}
2120 LOCAL_LIB_PATH=${exp_customlibdir}
2122 DESTDIR=${exp_prefix}
2124 RT_LOG_PATH=${exp_logfiledir}
2128 ac_config_files="$ac_config_files sbin/rt-dump-database sbin/rt-setup-database sbin/rt-test-dependencies bin/mason_handler.fcgi bin/mason_handler.scgi bin/standalone_httpd bin/rt-crontool bin/rt-mailgate bin/rt"
2131 ac_config_files="$ac_config_files Makefile etc/RT_Config.pm lib/RT.pm bin/mason_handler.svc bin/webmux.pl"
2133 cat >confcache <<\_ACEOF
2134 # This file is a shell script that caches the results of configure
2135 # tests run on this system so they can be shared between configure
2136 # scripts and configure runs, see configure's option --config-cache.
2137 # It is not useful on other systems. If it contains results you don't
2138 # want to keep, you may remove or edit it.
2140 # config.status only pays attention to the cache file if you give it
2141 # the --recheck option to rerun configure.
2143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2149 # The following way of writing the cache mishandles newlines in values,
2150 # but we know of no workaround that is simple, portable, and efficient.
2151 # So, don't put newlines in cache variables' values.
2152 # Ultrix sh set writes to stderr and can't be redirected directly,
2153 # and sets the high bit in the cache file unless we assign to the vars.
2156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2158 # `set' does not quote correctly, so add quotes (double-quote
2159 # substitution turns \\\\ into \\, and sed turns \\ into \).
2162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2165 # `set' quotes correctly as required by POSIX, so do not add quotes.
2167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2176 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2178 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2179 if test -w $cache_file; then
2180 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2181 cat confcache >$cache_file
2183 echo "not updating unwritable cache $cache_file"
2188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2189 # Let make expand exec_prefix.
2190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2194 # trailing colons and then remove the whole line if VPATH becomes empty
2195 # (actually we leave an empty line to preserve line numbers).
2196 if test "x$srcdir" = x.; then
2197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2198 s/:*\$(srcdir):*/:/;
2199 s/:*\${srcdir}:*/:/;
2201 s/^\([^=]*=[ ]*\):*/\1/;
2207 # Transform confdefs.h into DEFS.
2208 # Protect against shell expansion while executing Makefile rules.
2209 # Protect against Makefile macro expansion.
2211 # If the first sed substitution is executed (which looks for macros that
2212 # take arguments), then we branch to the quote section. Otherwise,
2213 # look for a macro that doesn't take arguments.
2214 cat >confdef2opt.sed <<\_ACEOF
2217 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2219 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2223 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2229 # We use echo to avoid assuming a particular line-breaking character.
2230 # The extra dot is to prevent the shell from consuming trailing
2231 # line-breaks from the sub-command output. A line-break within
2232 # single-quotes doesn't work because, if this script is created in a
2233 # platform that uses two characters for line-breaks (e.g., DOS), tr
2235 ac_LF_and_DOT=`echo; echo .`
2236 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2237 rm -f confdef2opt.sed
2242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2243 # 1. Remove the extension, and $U if already installed.
2244 ac_i=`echo "$ac_i" |
2245 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2247 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2248 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2252 LTLIBOBJS=$ac_ltlibobjs
2256 : ${CONFIG_STATUS=./config.status}
2257 ac_clean_files_save=$ac_clean_files
2258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2261 cat >$CONFIG_STATUS <<_ACEOF
2263 # Generated by $as_me.
2264 # Run this file to recreate the current configuration.
2265 # Compiler output produced by configure, useful for debugging
2266 # configure, is in config.log if it exists.
2271 SHELL=\${CONFIG_SHELL-$SHELL}
2274 cat >>$CONFIG_STATUS <<\_ACEOF
2275 ## --------------------- ##
2276 ## M4sh Initialization. ##
2277 ## --------------------- ##
2279 # Be Bourne compatible
2280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2283 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2284 # is contrary to our usage. Disable this feature.
2285 alias -g '${1+"$@"}'='"$@"'
2286 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2289 DUALCASE=1; export DUALCASE # for MKS sh
2291 # Support unset when possible.
2292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2299 # Work around bugs in pre-3.0 UWIN ksh.
2300 $as_unset ENV MAIL MAILPATH
2307 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2308 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2309 LC_TELEPHONE LC_TIME
2311 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2312 eval $as_var=C; export $as_var
2318 # Required to use basename.
2319 if expr a : '\(a\)' >/dev/null 2>&1; then
2325 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2326 as_basename=basename
2332 # Name of the executable.
2333 as_me=`$as_basename "$0" ||
2334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2335 X"$0" : 'X\(//\)$' \| \
2336 X"$0" : 'X\(/\)$' \| \
2337 . : '\(.\)' 2>/dev/null ||
2339 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2340 /^X\/\(\/\/\)$/{ s//\1/; q; }
2341 /^X\/\(\/\).*/{ s//\1/; q; }
2345 # PATH needs CR, and LINENO needs CR and PATH.
2346 # Avoid depending upon Character Ranges.
2347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2350 as_cr_digits='0123456789'
2351 as_cr_alnum=$as_cr_Letters$as_cr_digits
2353 # The user is always right.
2354 if test "${PATH_SEPARATOR+set}" != set; then
2355 echo "#! /bin/sh" >conf$$.sh
2356 echo "exit 0" >>conf$$.sh
2358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2369 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2370 test "x$as_lineno_1" != "x$as_lineno_2" &&
2371 test "x$as_lineno_3" = "x$as_lineno_2" || {
2372 # Find who we are. Look in the path if we contain no path at all
2375 *[\\/]* ) as_myself=$0 ;;
2376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2386 # We did not find ourselves, most probably we were run as `sh COMMAND'
2387 # in which case we are not to be found in the path.
2388 if test "x$as_myself" = x; then
2391 if test ! -f "$as_myself"; then
2392 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2393 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2394 { (exit 1); exit 1; }; }
2396 case $CONFIG_SHELL in
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2402 test -z "$as_dir" && as_dir=.
2403 for as_base in sh bash ksh sh5; do
2406 if ("$as_dir/$as_base" -c '
2409 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2410 test "x$as_lineno_1" != "x$as_lineno_2" &&
2411 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2412 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2413 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2414 CONFIG_SHELL=$as_dir/$as_base
2416 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2425 # uniformly replaced by the line number. The first 'sed' inserts a
2426 # line-number line before each line; the second 'sed' does the real
2427 # work. The second script uses 'N' to pair each line-number line
2428 # with the numbered line, and appends trailing '-' during
2429 # substitution so that $LINENO is not a special case at line end.
2430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2431 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2432 sed '=' <$as_myself |
2437 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2440 s,^['$as_cr_digits']*\n,,
2442 chmod +x $as_me.lineno ||
2443 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2444 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Don't try to exec as it changes $[0], causing all sort of problems
2448 # (the dirname of $[0] is not the place where we might find the
2449 # original and so on. Autoconf is especially sensible to this).
2451 # Exit status is that of the last command.
2456 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2457 *c*,-n*) ECHO_N= ECHO_C='
2459 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2460 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2463 if expr a : '\(a\)' >/dev/null 2>&1; then
2469 rm -f conf$$ conf$$.exe conf$$.file
2471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2472 # We could just check for DJGPP; but this test a) works b) is more generic
2473 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2474 if test -f conf$$.exe; then
2475 # Don't use ln at all; we don't have any links
2480 elif ln conf$$.file conf$$ 2>/dev/null; then
2485 rm -f conf$$ conf$$.exe conf$$.file
2487 if mkdir -p . 2>/dev/null; then
2490 test -d ./-p && rmdir ./-p
2494 as_executable_p="test -f"
2496 # Sed expression to map a string onto a valid CPP name.
2497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2499 # Sed expression to map a string onto a valid variable name.
2500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2504 # We need space, tab and new line, in precisely that order.
2514 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2515 # report actual input values of CONFIG_FILES etc. instead of their
2516 # values after options handling. Logging --version etc. is OK.
2520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2521 ## Running $as_me. ##
2526 This file was extended by RT $as_me 3.4.5, which was
2527 generated by GNU Autoconf 2.59. Invocation command line was
2529 CONFIG_FILES = $CONFIG_FILES
2530 CONFIG_HEADERS = $CONFIG_HEADERS
2531 CONFIG_LINKS = $CONFIG_LINKS
2532 CONFIG_COMMANDS = $CONFIG_COMMANDS
2536 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2540 # Files that config.status was made for.
2541 if test -n "$ac_config_files"; then
2542 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2545 if test -n "$ac_config_headers"; then
2546 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2549 if test -n "$ac_config_links"; then
2550 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2553 if test -n "$ac_config_commands"; then
2554 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2557 cat >>$CONFIG_STATUS <<\_ACEOF
2560 \`$as_me' instantiates files from templates according to the
2561 current configuration.
2563 Usage: $0 [OPTIONS] [FILE]...
2565 -h, --help print this help, then exit
2566 -V, --version print version number, then exit
2567 -q, --quiet do not print progress messages
2568 -d, --debug don't remove temporary files
2569 --recheck update $as_me by reconfiguring in the same conditions
2570 --file=FILE[:TEMPLATE]
2571 instantiate the configuration file FILE
2573 Configuration files:
2576 Report bugs to <bug-autoconf@gnu.org>."
2579 cat >>$CONFIG_STATUS <<_ACEOF
2581 RT config.status 3.4.5
2582 configured by $0, generated by GNU Autoconf 2.59,
2583 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2585 Copyright (C) 2003 Free Software Foundation, Inc.
2586 This config.status script is free software; the Free Software Foundation
2587 gives unlimited permission to copy, distribute and modify it."
2592 cat >>$CONFIG_STATUS <<\_ACEOF
2593 # If no file are specified by the user, then we need to provide default
2594 # value. By we need to know if files were specified by the user.
2600 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2601 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2609 *) # This is not an option, so the user has probably given explicit
2612 ac_need_defaults=false;;
2616 # Handling of the options.
2618 cat >>$CONFIG_STATUS <<\_ACEOF
2619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2621 --version | --vers* | -V )
2622 echo "$ac_cs_version"; exit 0 ;;
2624 # Conflict between --help and --header
2625 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2626 Try \`$0 --help' for more information." >&5
2627 echo "$as_me: error: ambiguous option: $1
2628 Try \`$0 --help' for more information." >&2;}
2629 { (exit 1); exit 1; }; };;
2630 --help | --hel | -h )
2631 echo "$ac_cs_usage"; exit 0 ;;
2632 --debug | --d* | -d )
2634 --file | --fil | --fi | --f )
2636 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2637 ac_need_defaults=false;;
2638 --header | --heade | --head | --hea )
2640 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2641 ac_need_defaults=false;;
2642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2647 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2648 Try \`$0 --help' for more information." >&5
2649 echo "$as_me: error: unrecognized option: $1
2650 Try \`$0 --help' for more information." >&2;}
2651 { (exit 1); exit 1; }; } ;;
2653 *) ac_config_targets="$ac_config_targets $1" ;;
2659 ac_configure_extra_args=
2661 if $ac_cs_silent; then
2663 ac_configure_extra_args="$ac_configure_extra_args --silent"
2667 cat >>$CONFIG_STATUS <<_ACEOF
2668 if \$ac_cs_recheck; then
2669 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2670 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2679 cat >>$CONFIG_STATUS <<\_ACEOF
2680 for ac_config_target in $ac_config_targets
2682 case "$ac_config_target" in
2683 # Handling of arguments.
2684 "sbin/rt-dump-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-dump-database" ;;
2685 "sbin/rt-setup-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
2686 "sbin/rt-test-dependencies" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
2687 "bin/mason_handler.fcgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
2688 "bin/mason_handler.scgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
2689 "bin/standalone_httpd" ) CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
2690 "bin/rt-crontool" ) CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
2691 "bin/rt-mailgate" ) CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
2692 "bin/rt" ) CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
2693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2694 "etc/RT_Config.pm" ) CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
2695 "lib/RT.pm" ) CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
2696 "bin/mason_handler.svc" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
2697 "bin/webmux.pl" ) CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
2698 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2699 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2700 { (exit 1); exit 1; }; };;
2704 # If the user did not use the arguments to specify the items to instantiate,
2705 # then the envvar interface is used. Set only those that are not.
2706 # We use the long form for the default assignment because of an extremely
2707 # bizarre bug on SunOS 4.1.3.
2708 if $ac_need_defaults; then
2709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2712 # Have a temporary directory for convenience. Make it in the build tree
2713 # simply because there is no reason to put it here, and in addition,
2714 # creating and moving files from /tmp can sometimes cause problems.
2715 # Create a temporary directory, and hook for its removal unless debugging.
2718 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2719 trap '{ (exit 1); exit 1; }' 1 2 13 15
2722 # Create a (secure) tmp directory for tmp files.
2725 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2726 test -n "$tmp" && test -d "$tmp"
2729 tmp=./confstat$$-$RANDOM
2730 (umask 077 && mkdir $tmp)
2733 echo "$me: cannot create a temporary directory in ." >&2
2734 { (exit 1); exit 1; }
2739 cat >>$CONFIG_STATUS <<_ACEOF
2742 # CONFIG_FILES section.
2745 # No need to generate the scripts if there are no CONFIG_FILES.
2746 # This happens for instance when ./config.status config.h
2747 if test -n "\$CONFIG_FILES"; then
2748 # Protect against being on the right side of a sed subst in config.status.
2749 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2750 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2751 s,@SHELL@,$SHELL,;t t
2752 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2753 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2754 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2755 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2756 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2757 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2758 s,@exec_prefix@,$exec_prefix,;t t
2759 s,@prefix@,$prefix,;t t
2760 s,@program_transform_name@,$program_transform_name,;t t
2761 s,@bindir@,$bindir,;t t
2762 s,@sbindir@,$sbindir,;t t
2763 s,@libexecdir@,$libexecdir,;t t
2764 s,@datadir@,$datadir,;t t
2765 s,@sysconfdir@,$sysconfdir,;t t
2766 s,@sharedstatedir@,$sharedstatedir,;t t
2767 s,@localstatedir@,$localstatedir,;t t
2768 s,@libdir@,$libdir,;t t
2769 s,@includedir@,$includedir,;t t
2770 s,@oldincludedir@,$oldincludedir,;t t
2771 s,@infodir@,$infodir,;t t
2772 s,@mandir@,$mandir,;t t
2773 s,@build_alias@,$build_alias,;t t
2774 s,@host_alias@,$host_alias,;t t
2775 s,@target_alias@,$target_alias,;t t
2777 s,@ECHO_C@,$ECHO_C,;t t
2778 s,@ECHO_N@,$ECHO_N,;t t
2779 s,@ECHO_T@,$ECHO_T,;t t
2781 s,@rt_version_major@,$rt_version_major,;t t
2782 s,@rt_version_minor@,$rt_version_minor,;t t
2783 s,@rt_version_patch@,$rt_version_patch,;t t
2784 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2785 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2786 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2789 s,@SPEEDY_BIN@,$SPEEDY_BIN,;t t
2790 s,@exp_prefix@,$exp_prefix,;t t
2791 s,@exp_exec_prefix@,$exp_exec_prefix,;t t
2792 s,@exp_bindir@,$exp_bindir,;t t
2793 s,@exp_sbindir@,$exp_sbindir,;t t
2794 s,@exp_sysconfdir@,$exp_sysconfdir,;t t
2795 s,@exp_mandir@,$exp_mandir,;t t
2796 s,@exp_libdir@,$exp_libdir,;t t
2797 s,@exp_datadir@,$exp_datadir,;t t
2798 s,@htmldir@,$htmldir,;t t
2799 s,@exp_htmldir@,$exp_htmldir,;t t
2800 s,@manualdir@,$manualdir,;t t
2801 s,@exp_manualdir@,$exp_manualdir,;t t
2802 s,@exp_localstatedir@,$exp_localstatedir,;t t
2803 s,@logfiledir@,$logfiledir,;t t
2804 s,@exp_logfiledir@,$exp_logfiledir,;t t
2805 s,@masonstatedir@,$masonstatedir,;t t
2806 s,@exp_masonstatedir@,$exp_masonstatedir,;t t
2807 s,@sessionstatedir@,$sessionstatedir,;t t
2808 s,@exp_sessionstatedir@,$exp_sessionstatedir,;t t
2809 s,@customdir@,$customdir,;t t
2810 s,@exp_customdir@,$exp_customdir,;t t
2811 s,@custometcdir@,$custometcdir,;t t
2812 s,@exp_custometcdir@,$exp_custometcdir,;t t
2813 s,@customhtmldir@,$customhtmldir,;t t
2814 s,@exp_customhtmldir@,$exp_customhtmldir,;t t
2815 s,@customlexdir@,$customlexdir,;t t
2816 s,@exp_customlexdir@,$exp_customlexdir,;t t
2817 s,@customlibdir@,$customlibdir,;t t
2818 s,@exp_customlibdir@,$exp_customlibdir,;t t
2819 s,@rt_layout_name@,$rt_layout_name,;t t
2820 s,@BIN_OWNER@,$BIN_OWNER,;t t
2821 s,@LIBS_OWNER@,$LIBS_OWNER,;t t
2822 s,@LIBS_GROUP@,$LIBS_GROUP,;t t
2823 s,@DB_TYPE@,$DB_TYPE,;t t
2824 s,@DATABASE_ENV_PREF@,$DATABASE_ENV_PREF,;t t
2825 s,@DB_HOST@,$DB_HOST,;t t
2826 s,@DB_PORT@,$DB_PORT,;t t
2827 s,@DB_RT_HOST@,$DB_RT_HOST,;t t
2828 s,@DB_DBA@,$DB_DBA,;t t
2829 s,@DB_DATABASE@,$DB_DATABASE,;t t
2830 s,@DB_RT_USER@,$DB_RT_USER,;t t
2831 s,@DB_RT_PASS@,$DB_RT_PASS,;t t
2832 s,@WEB_USER@,$WEB_USER,;t t
2833 s,@WEB_GROUP@,$WEB_GROUP,;t t
2834 s,@RTGROUP@,$RTGROUP,;t t
2835 s,@APACHECTL@,$APACHECTL,;t t
2836 s,@RT_DEVEL_MODE@,$RT_DEVEL_MODE,;t t
2837 s,@RT_VERSION_MAJOR@,$RT_VERSION_MAJOR,;t t
2838 s,@RT_VERSION_MINOR@,$RT_VERSION_MINOR,;t t
2839 s,@RT_VERSION_PATCH@,$RT_VERSION_PATCH,;t t
2840 s,@RT_PATH@,$RT_PATH,;t t
2841 s,@RT_DOC_PATH@,$RT_DOC_PATH,;t t
2842 s,@RT_LOCAL_PATH@,$RT_LOCAL_PATH,;t t
2843 s,@RT_LIB_PATH@,$RT_LIB_PATH,;t t
2844 s,@RT_ETC_PATH@,$RT_ETC_PATH,;t t
2845 s,@CONFIG_FILE_PATH@,$CONFIG_FILE_PATH,;t t
2846 s,@RT_BIN_PATH@,$RT_BIN_PATH,;t t
2847 s,@RT_SBIN_PATH@,$RT_SBIN_PATH,;t t
2848 s,@RT_VAR_PATH@,$RT_VAR_PATH,;t t
2849 s,@RT_MAN_PATH@,$RT_MAN_PATH,;t t
2850 s,@MASON_DATA_PATH@,$MASON_DATA_PATH,;t t
2851 s,@MASON_SESSION_PATH@,$MASON_SESSION_PATH,;t t
2852 s,@MASON_HTML_PATH@,$MASON_HTML_PATH,;t t
2853 s,@LOCAL_ETC_PATH@,$LOCAL_ETC_PATH,;t t
2854 s,@MASON_LOCAL_HTML_PATH@,$MASON_LOCAL_HTML_PATH,;t t
2855 s,@LOCAL_LEXICON_PATH@,$LOCAL_LEXICON_PATH,;t t
2856 s,@LOCAL_LIB_PATH@,$LOCAL_LIB_PATH,;t t
2857 s,@DESTDIR@,$DESTDIR,;t t
2858 s,@RT_LOG_PATH@,$RT_LOG_PATH,;t t
2859 s,@LIBOBJS@,$LIBOBJS,;t t
2860 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2865 cat >>$CONFIG_STATUS <<\_ACEOF
2866 # Split the substitutions into bite-sized pieces for seds with
2867 # small command number limits, like on Digital OSF/1 and HP-UX.
2869 ac_sed_frag=1 # Number of current file.
2870 ac_beg=1 # First line for current file.
2871 ac_end=$ac_max_sed_lines # Line after last line for current file.
2874 while $ac_more_lines; do
2875 if test $ac_beg -gt 1; then
2876 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2878 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2880 if test ! -s $tmp/subs.frag; then
2883 # The purpose of the label and of the branching condition is to
2884 # speed up the sed processing (if there are no `@' at all, there
2885 # is no need to browse any of the substitutions).
2886 # These are the two extra sed commands mentioned above.
2888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2889 if test -z "$ac_sed_cmds"; then
2890 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2892 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2894 ac_sed_frag=`expr $ac_sed_frag + 1`
2896 ac_end=`expr $ac_end + $ac_max_sed_lines`
2899 if test -z "$ac_sed_cmds"; then
2902 fi # test -n "$CONFIG_FILES"
2905 cat >>$CONFIG_STATUS <<\_ACEOF
2906 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2909 - | *:- | *:-:* ) # input from stdin
2911 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2913 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2915 * ) ac_file_in=$ac_file.in ;;
2918 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2919 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2921 X"$ac_file" : 'X\(//\)[^/]' \| \
2922 X"$ac_file" : 'X\(//\)$' \| \
2923 X"$ac_file" : 'X\(/\)' \| \
2924 . : '\(.\)' 2>/dev/null ||
2926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2928 /^X\(\/\/\)$/{ s//\1/; q; }
2929 /^X\(\/\).*/{ s//\1/; q; }
2931 { if $as_mkdir_p; then
2936 while test ! -d "$as_dir"; do
2937 as_dirs="$as_dir $as_dirs"
2938 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2940 X"$as_dir" : 'X\(//\)[^/]' \| \
2941 X"$as_dir" : 'X\(//\)$' \| \
2942 X"$as_dir" : 'X\(/\)' \| \
2943 . : '\(.\)' 2>/dev/null ||
2945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2947 /^X\(\/\/\)$/{ s//\1/; q; }
2948 /^X\(\/\).*/{ s//\1/; q; }
2951 test ! -n "$as_dirs" || mkdir $as_dirs
2952 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2953 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2954 { (exit 1); exit 1; }; }; }
2958 if test "$ac_dir" != .; then
2959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2960 # A "../" for each directory in $ac_dir_suffix.
2961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2963 ac_dir_suffix= ac_top_builddir=
2967 .) # No --srcdir option. We are building in place.
2969 if test -z "$ac_top_builddir"; then
2972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2974 [\\/]* | ?:[\\/]* ) # Absolute path.
2975 ac_srcdir=$srcdir$ac_dir_suffix;
2976 ac_top_srcdir=$srcdir ;;
2978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
2982 # Do not use `cd foo && pwd` to compute absolute paths, because
2983 # the directories may not exist.
2985 .) ac_abs_builddir="$ac_dir";;
2988 .) ac_abs_builddir=`pwd`;;
2989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
2993 case $ac_abs_builddir in
2994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
2996 case ${ac_top_builddir}. in
2997 .) ac_abs_top_builddir=$ac_abs_builddir;;
2998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3002 case $ac_abs_builddir in
3003 .) ac_abs_srcdir=$ac_srcdir;;
3006 .) ac_abs_srcdir=$ac_abs_builddir;;
3007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3011 case $ac_abs_builddir in
3012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3014 case $ac_top_srcdir in
3015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3023 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3024 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3027 # Let's still pretend it is `configure' which instantiates (i.e., don't
3028 # use $as_me), people would be surprised to read:
3029 # /* config.h. Generated by config.status. */
3030 if test x"$ac_file" = x-; then
3033 configure_input="$ac_file. "
3035 configure_input=$configure_input"Generated from `echo $ac_file_in |
3036 sed 's,.*/,,'` by configure."
3038 # First look for the input files in the build tree, otherwise in the
3040 ac_file_inputs=`IFS=:
3041 for f in $ac_file_in; do
3043 -) echo $tmp/stdin ;;
3045 # Absolute (can't be DOS-style, as IFS=:)
3046 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3047 echo "$as_me: error: cannot find input file: $f" >&2;}
3048 { (exit 1); exit 1; }; }
3051 if test -f "$f"; then
3054 elif test -f "$srcdir/$f"; then
3059 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3060 echo "$as_me: error: cannot find input file: $f" >&2;}
3061 { (exit 1); exit 1; }; }
3064 done` || { (exit 1); exit 1; }
3066 if test x"$ac_file" != x-; then
3067 { echo "$as_me:$LINENO: creating $ac_file" >&5
3068 echo "$as_me: creating $ac_file" >&6;}
3072 cat >>$CONFIG_STATUS <<_ACEOF
3076 cat >>$CONFIG_STATUS <<\_ACEOF
3078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3079 s,@configure_input@,$configure_input,;t t
3080 s,@srcdir@,$ac_srcdir,;t t
3081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3082 s,@top_srcdir@,$ac_top_srcdir,;t t
3083 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3084 s,@builddir@,$ac_builddir,;t t
3085 s,@abs_builddir@,$ac_abs_builddir,;t t
3086 s,@top_builddir@,$ac_top_builddir,;t t
3087 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3088 s,@INSTALL@,$ac_INSTALL,;t t
3089 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3091 if test x"$ac_file" != x-; then
3092 mv $tmp/out $ac_file
3098 # Run the commands associated with the file.
3100 sbin/rt-dump-database ) chmod ug+x $ac_file
3102 sbin/rt-setup-database ) chmod ug+x $ac_file
3104 sbin/rt-test-dependencies ) chmod ug+x $ac_file
3106 bin/mason_handler.fcgi ) chmod ug+x $ac_file
3108 bin/mason_handler.scgi ) chmod ug+x $ac_file
3110 bin/standalone_httpd ) chmod ug+x $ac_file
3112 bin/rt-crontool ) chmod ug+x $ac_file
3114 bin/rt-mailgate ) chmod ug+x $ac_file
3116 bin/rt ) chmod ug+x $ac_file
3122 cat >>$CONFIG_STATUS <<\_ACEOF
3124 { (exit 0); exit 0; }
3126 chmod +x $CONFIG_STATUS
3127 ac_clean_files=$ac_clean_files_save
3130 # configure is writing to config.log, and then calls config.status.
3131 # config.status does its own redirection, appending to config.log.
3132 # Unfortunately, on DOS this fails, as config.log is still kept open
3133 # by configure, so config.status won't be able to write to it; its
3134 # output is simply discarded. So we exec the FD to /dev/null,
3135 # effectively closing config.log, so it can be properly (re)opened and
3136 # appended to by config.status. When coming back to configure, we
3137 # need to make the FD available again.
3138 if test "$no_create" != yes; then
3140 ac_config_status_args=
3141 test "$silent" = yes &&
3142 ac_config_status_args="$ac_config_status_args --quiet"
3144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3147 # would make configure fail if this is the last instruction.
3148 $ac_cs_success || { (exit 1); exit 1; }