import rt 3.2.2
[freeside.git] / rt / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for RT 3.2.2.
5 #
6 # Report bugs to <rt-bugs@fsck.com>.
7 #
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 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
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
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
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 \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
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 ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
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
88
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
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
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
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
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
125     as_myself=$0
126   fi
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; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
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
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
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 |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
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; }; }
180
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).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >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
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
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'"
232
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'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
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`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
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}
269
270 # Identity of this package.
271 PACKAGE_NAME='RT'
272 PACKAGE_TARNAME='rt'
273 PACKAGE_VERSION='3.2.2'
274 PACKAGE_STRING='RT 3.2.2'
275 PACKAGE_BUGREPORT='rt-bugs@fsck.com'
276
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 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 RTGROUP 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 APACHECTL 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'
280 ac_subst_files=''
281
282 # Initialize some variables set by options.
283 ac_init_help=
284 ac_init_version=false
285 # The variables have the same names as the options, with
286 # dashes changed to underlines.
287 cache_file=/dev/null
288 exec_prefix=NONE
289 no_create=
290 no_recursion=
291 prefix=NONE
292 program_prefix=NONE
293 program_suffix=NONE
294 program_transform_name=s,x,x,
295 silent=
296 site=
297 srcdir=
298 verbose=
299 x_includes=NONE
300 x_libraries=NONE
301
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'
319
320 ac_prev=
321 for ac_option
322 do
323   # If the previous option needs an argument, assign it.
324   if test -n "$ac_prev"; then
325     eval "$ac_prev=\$ac_option"
326     ac_prev=
327     continue
328   fi
329
330   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
331
332   # Accept the important Cygnus configure options, so we can diagnose typos.
333
334   case $ac_option in
335
336   -bindir | --bindir | --bindi | --bind | --bin | --bi)
337     ac_prev=bindir ;;
338   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
339     bindir=$ac_optarg ;;
340
341   -build | --build | --buil | --bui | --bu)
342     ac_prev=build_alias ;;
343   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
344     build_alias=$ac_optarg ;;
345
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 ;;
352
353   --config-cache | -C)
354     cache_file=config.cache ;;
355
356   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357     ac_prev=datadir ;;
358   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359   | --da=*)
360     datadir=$ac_optarg ;;
361
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" ;;
370
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'`
378     case $ac_option in
379       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
380       *) ac_optarg=yes ;;
381     esac
382     eval "enable_$ac_feature='$ac_optarg'" ;;
383
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 ;;
392
393   -gas | --gas | --ga | --g)
394     # Obsolete; use --with-gas.
395     with_gas=yes ;;
396
397   -help | --help | --hel | --he | -h)
398     ac_init_help=long ;;
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 ;;
403
404   -host | --host | --hos | --ho)
405     ac_prev=host_alias ;;
406   -host=* | --host=* | --hos=* | --ho=*)
407     host_alias=$ac_optarg ;;
408
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 ;;
415
416   -infodir | --infodir | --infodi | --infod | --info | --inf)
417     ac_prev=infodir ;;
418   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
419     infodir=$ac_optarg ;;
420
421   -libdir | --libdir | --libdi | --libd)
422     ac_prev=libdir ;;
423   -libdir=* | --libdir=* | --libdi=* | --libd=*)
424     libdir=$ac_optarg ;;
425
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 ;;
432
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 ;;
441
442   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
443     ac_prev=mandir ;;
444   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445     mandir=$ac_optarg ;;
446
447   -nfp | --nfp | --nf)
448     # Obsolete; use --without-fp.
449     with_fp=no ;;
450
451   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452   | --no-cr | --no-c | -n)
453     no_create=yes ;;
454
455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
457     no_recursion=yes ;;
458
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 ;;
467
468   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
469     ac_prev=prefix ;;
470   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
471     prefix=$ac_optarg ;;
472
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 ;;
479
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 ;;
486
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 ;;
503
504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505   | -silent | --silent | --silen | --sile | --sil)
506     silent=yes ;;
507
508   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
509     ac_prev=sbindir ;;
510   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
511   | --sbi=* | --sb=*)
512     sbindir=$ac_optarg ;;
513
514   -sharedstatedir | --sharedstatedir | --sharedstatedi \
515   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
516   | --sharedst | --shareds | --shared | --share | --shar \
517   | --sha | --sh)
518     ac_prev=sharedstatedir ;;
519   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
520   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
521   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
522   | --sha=* | --sh=*)
523     sharedstatedir=$ac_optarg ;;
524
525   -site | --site | --sit)
526     ac_prev=site ;;
527   -site=* | --site=* | --sit=*)
528     site=$ac_optarg ;;
529
530   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
531     ac_prev=srcdir ;;
532   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
533     srcdir=$ac_optarg ;;
534
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 ;;
541
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 ;;
546
547   -v | -verbose | --verbose | --verbos | --verbo | --verb)
548     verbose=yes ;;
549
550   -version | --version | --versio | --versi | --vers | -V)
551     ac_init_version=: ;;
552
553   -with-* | --with-*)
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'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "with_$ac_package='$ac_optarg'" ;;
565
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" ;;
574
575   --x)
576     # Obsolete; use --with-x.
577     with_x=yes ;;
578
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 ;;
585
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 ;;
592
593   -*) { echo "$as_me: error: unrecognized option: $ac_option
594 Try \`$0 --help' for more information." >&2
595    { (exit 1); exit 1; }; }
596     ;;
597
598   *=*)
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'"
606     export $ac_envvar ;;
607
608   *)
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}
614     ;;
615
616   esac
617 done
618
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; }; }
623 fi
624
625 # Be sure to have absolute paths.
626 for ac_var in exec_prefix prefix
627 do
628   eval ac_val=$`echo $ac_var`
629   case $ac_val in
630     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
631     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
632    { (exit 1); exit 1; }; };;
633   esac
634 done
635
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
639 do
640   eval ac_val=$`echo $ac_var`
641   case $ac_val in
642     [\\/$]* | ?:[\\/]* ) ;;
643     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
644    { (exit 1); exit 1; }; };;
645   esac
646 done
647
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.
651 build=$build_alias
652 host=$host_alias
653 target=$target_alias
654
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
662     cross_compiling=yes
663   fi
664 fi
665
666 ac_tool_prefix=
667 test -n "$host_alias" && ac_tool_prefix=$host_alias-
668
669 test "$silent" = yes && exec 6>/dev/null
670
671
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 ||
682 echo X"$0" |
683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
685           /^X\(\/\/\)$/{ s//\1/; q; }
686           /^X\(\/\).*/{ s//\1/; q; }
687           s/.*/./; q'`
688   srcdir=$ac_confdir
689   if test ! -r $srcdir/$ac_unique_file; then
690     srcdir=..
691   fi
692 else
693   ac_srcdir_defaulted=no
694 fi
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; }; }
699   else
700     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
701    { (exit 1); exit 1; }; }
702   fi
703 fi
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
724
725 #
726 # Report the --help message.
727 #
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.
731   cat <<_ACEOF
732 \`configure' configures RT 3.2.2 to adapt to many kinds of systems.
733
734 Usage: $0 [OPTION]... [VAR=VALUE]...
735
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.
738
739 Defaults for the options are specified in brackets.
740
741 Configuration:
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 \`..']
751
752 _ACEOF
753
754   cat <<_ACEOF
755 Installation directories:
756   --prefix=PREFIX         install architecture-independent files in PREFIX
757                           [$ac_default_prefix]
758   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
759                           [PREFIX]
760
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'.
765
766 For better control, use the options below.
767
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]
781 _ACEOF
782
783   cat <<\_ACEOF
784 _ACEOF
785 fi
786
787 if test -n "$ac_init_help"; then
788   case $ac_init_help in
789      short | recursive ) echo "Configuration of RT 3.2.2:";;
790    esac
791   cat <<\_ACEOF
792
793 Optional Features:
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)
797
798 Optional Packages:
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-rt-group=GROUP   group to own all files (default: rt)
804   --with-bin-owner=OWNER  user that will own RT binaries (default root)
805   --with-libs-owner=OWNER user that will own RT libraries (default root)
806   --with-libs-group=GROUP group that will own RT binaries (default bin)
807   --with-db-type=TYPE     sort of database RT will use (default: mysql)
808                           (mysql, Pg, Oracle, Informix and SQLite are valid)
809   --with-db-host=HOSTNAME FQDN of database server (default: localhost)
810   --with-db-port=PORT     port on which the database listens on
811   --with-db-rt-host=HOSTNAME
812                           FQDN of RT server which talks to the database server
813                           (default: localhost)
814   --with-db-dba=DBA       name of database administrator (default: root)
815   --with-db-database=DBNAME
816                           name of the database to use (default: rt3)
817   --with-db-rt-user=DBUSER
818                           name of database user (default: rt_user)
819   --with-db-rt-pass=PASSWORD
820                           password for database user (default: rt_pass)
821   --with-web-user=USER    user the web server runs as (default: www)
822   --with-web-group=GROUP  group the web server runs as (default: www)
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
826 Some influential environment variables:
827   PERL        Perl interpreter command
828
829 Use these variables to override the choices made by `configure' or to help
830 it to find libraries and programs with nonstandard names/locations.
831
832 Report bugs to <rt-bugs@fsck.com>.
833 _ACEOF
834 fi
835
836 if test "$ac_init_help" = "recursive"; then
837   # If there are subdirs, report their specific --help.
838   ac_popdir=`pwd`
839   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
840     test -d $ac_dir || continue
841     ac_builddir=.
842
843 if test "$ac_dir" != .; then
844   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
845   # A "../" for each directory in $ac_dir_suffix.
846   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
847 else
848   ac_dir_suffix= ac_top_builddir=
849 fi
850
851 case $srcdir in
852   .)  # No --srcdir option.  We are building in place.
853     ac_srcdir=.
854     if test -z "$ac_top_builddir"; then
855        ac_top_srcdir=.
856     else
857        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
858     fi ;;
859   [\\/]* | ?:[\\/]* )  # Absolute path.
860     ac_srcdir=$srcdir$ac_dir_suffix;
861     ac_top_srcdir=$srcdir ;;
862   *) # Relative path.
863     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
864     ac_top_srcdir=$ac_top_builddir$srcdir ;;
865 esac
866
867 # Do not use `cd foo && pwd` to compute absolute paths, because
868 # the directories may not exist.
869 case `pwd` in
870 .) ac_abs_builddir="$ac_dir";;
871 *)
872   case "$ac_dir" in
873   .) ac_abs_builddir=`pwd`;;
874   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
875   *) ac_abs_builddir=`pwd`/"$ac_dir";;
876   esac;;
877 esac
878 case $ac_abs_builddir in
879 .) ac_abs_top_builddir=${ac_top_builddir}.;;
880 *)
881   case ${ac_top_builddir}. in
882   .) ac_abs_top_builddir=$ac_abs_builddir;;
883   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
884   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
885   esac;;
886 esac
887 case $ac_abs_builddir in
888 .) ac_abs_srcdir=$ac_srcdir;;
889 *)
890   case $ac_srcdir in
891   .) ac_abs_srcdir=$ac_abs_builddir;;
892   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
893   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
894   esac;;
895 esac
896 case $ac_abs_builddir in
897 .) ac_abs_top_srcdir=$ac_top_srcdir;;
898 *)
899   case $ac_top_srcdir in
900   .) ac_abs_top_srcdir=$ac_abs_builddir;;
901   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
902   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
903   esac;;
904 esac
905
906     cd $ac_dir
907     # Check for guested configure; otherwise get Cygnus style configure.
908     if test -f $ac_srcdir/configure.gnu; then
909       echo
910       $SHELL $ac_srcdir/configure.gnu  --help=recursive
911     elif test -f $ac_srcdir/configure; then
912       echo
913       $SHELL $ac_srcdir/configure  --help=recursive
914     elif test -f $ac_srcdir/configure.ac ||
915            test -f $ac_srcdir/configure.in; then
916       echo
917       $ac_configure --help
918     else
919       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920     fi
921     cd "$ac_popdir"
922   done
923 fi
924
925 test -n "$ac_init_help" && exit 0
926 if $ac_init_version; then
927   cat <<\_ACEOF
928 RT configure 3.2.2
929 generated by GNU Autoconf 2.59
930
931 Copyright (C) 2003 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
934 _ACEOF
935   exit 0
936 fi
937 exec 5>config.log
938 cat >&5 <<_ACEOF
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
941
942 It was created by RT $as_me 3.2.2, which was
943 generated by GNU Autoconf 2.59.  Invocation command line was
944
945   $ $0 $@
946
947 _ACEOF
948 {
949 cat <<_ASUNAME
950 ## --------- ##
951 ## Platform. ##
952 ## --------- ##
953
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
959
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
962
963 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
964 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
967 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
968 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
969 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
970
971 _ASUNAME
972
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 for as_dir in $PATH
975 do
976   IFS=$as_save_IFS
977   test -z "$as_dir" && as_dir=.
978   echo "PATH: $as_dir"
979 done
980
981 } >&5
982
983 cat >&5 <<_ACEOF
984
985
986 ## ----------- ##
987 ## Core tests. ##
988 ## ----------- ##
989
990 _ACEOF
991
992
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Strip out --silent because we don't want to record it for future runs.
996 # Also quote any args containing shell meta-characters.
997 # Make two passes to allow for proper duplicate-argument suppression.
998 ac_configure_args=
999 ac_configure_args0=
1000 ac_configure_args1=
1001 ac_sep=
1002 ac_must_keep_next=false
1003 for ac_pass in 1 2
1004 do
1005   for ac_arg
1006   do
1007     case $ac_arg in
1008     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010     | -silent | --silent | --silen | --sile | --sil)
1011       continue ;;
1012     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014     esac
1015     case $ac_pass in
1016     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1017     2)
1018       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019       if test $ac_must_keep_next = true; then
1020         ac_must_keep_next=false # Got value, back to normal.
1021       else
1022         case $ac_arg in
1023           *=* | --config-cache | -C | -disable-* | --disable-* \
1024           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026           | -with-* | --with-* | -without-* | --without-* | --x)
1027             case "$ac_configure_args0 " in
1028               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1029             esac
1030             ;;
1031           -* ) ac_must_keep_next=true ;;
1032         esac
1033       fi
1034       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035       # Get rid of the leading space.
1036       ac_sep=" "
1037       ;;
1038     esac
1039   done
1040 done
1041 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076
1077     cat <<\_ASBOX
1078 ## ----------------- ##
1079 ## Output variables. ##
1080 ## ----------------- ##
1081 _ASBOX
1082     echo
1083     for ac_var in $ac_subst_vars
1084     do
1085       eval ac_val=$`echo $ac_var`
1086       echo "$ac_var='"'"'$ac_val'"'"'"
1087     done | sort
1088     echo
1089
1090     if test -n "$ac_subst_files"; then
1091       cat <<\_ASBOX
1092 ## ------------- ##
1093 ## Output files. ##
1094 ## ------------- ##
1095 _ASBOX
1096       echo
1097       for ac_var in $ac_subst_files
1098       do
1099         eval ac_val=$`echo $ac_var`
1100         echo "$ac_var='"'"'$ac_val'"'"'"
1101       done | sort
1102       echo
1103     fi
1104
1105     if test -s confdefs.h; then
1106       cat <<\_ASBOX
1107 ## ----------- ##
1108 ## confdefs.h. ##
1109 ## ----------- ##
1110 _ASBOX
1111       echo
1112       sed "/^$/d" confdefs.h | sort
1113       echo
1114     fi
1115     test "$ac_signal" != 0 &&
1116       echo "$as_me: caught signal $ac_signal"
1117     echo "$as_me: exit $exit_status"
1118   } >&5
1119   rm -f core *.core &&
1120   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1121     exit $exit_status
1122      ' 0
1123 for ac_signal in 1 2 13 15; do
1124   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 done
1126 ac_signal=0
1127
1128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1129 rm -rf conftest* confdefs.h
1130 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1131 echo >confdefs.h
1132
1133 # Predefined preprocessor variables.
1134
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 _ACEOF
1138
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 _ACEOF
1158
1159
1160 # Let the site file select an alternate cache file if it wants to.
1161 # Prefer explicitly selected file to automatically selected ones.
1162 if test -z "$CONFIG_SITE"; then
1163   if test "x$prefix" != xNONE; then
1164     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1165   else
1166     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1167   fi
1168 fi
1169 for ac_site_file in $CONFIG_SITE; do
1170   if test -r "$ac_site_file"; then
1171     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172 echo "$as_me: loading site script $ac_site_file" >&6;}
1173     sed 's/^/| /' "$ac_site_file" >&5
1174     . "$ac_site_file"
1175   fi
1176 done
1177
1178 if test -r "$cache_file"; then
1179   # Some versions of bash will fail to source /dev/null (special
1180   # files actually), so we avoid doing that.
1181   if test -f "$cache_file"; then
1182     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183 echo "$as_me: loading cache $cache_file" >&6;}
1184     case $cache_file in
1185       [\\/]* | ?:[\\/]* ) . $cache_file;;
1186       *)                      . ./$cache_file;;
1187     esac
1188   fi
1189 else
1190   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191 echo "$as_me: creating cache $cache_file" >&6;}
1192   >$cache_file
1193 fi
1194
1195 # Check that the precious variables saved in the cache have kept the same
1196 # value.
1197 ac_cache_corrupted=false
1198 for ac_var in `(set) 2>&1 |
1199                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201   eval ac_new_set=\$ac_env_${ac_var}_set
1202   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203   eval ac_new_val="\$ac_env_${ac_var}_value"
1204   case $ac_old_set,$ac_new_set in
1205     set,)
1206       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208       ac_cache_corrupted=: ;;
1209     ,set)
1210       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212       ac_cache_corrupted=: ;;
1213     ,);;
1214     *)
1215       if test "x$ac_old_val" != "x$ac_new_val"; then
1216         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1219 echo "$as_me:   former value:  $ac_old_val" >&2;}
1220         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1221 echo "$as_me:   current value: $ac_new_val" >&2;}
1222         ac_cache_corrupted=:
1223       fi;;
1224   esac
1225   # Pass precious variables to config.status.
1226   if test "$ac_new_set" = set; then
1227     case $ac_new_val in
1228     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230     *) ac_arg=$ac_var=$ac_new_val ;;
1231     esac
1232     case " $ac_configure_args " in
1233       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1234       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235     esac
1236   fi
1237 done
1238 if $ac_cache_corrupted; then
1239   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243    { (exit 1); exit 1; }; }
1244 fi
1245
1246 ac_ext=c
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280 rt_version_major=3
1281
1282 rt_version_minor=2
1283
1284 rt_version_patch=2
1285
1286 test "x$rt_version_major" = 'x' && rt_version_major=0
1287 test "x$rt_version_minor" = 'x' && rt_version_minor=0
1288 test "x$rt_version_patch" = 'x' && rt_version_patch=0
1289
1290 ac_aux_dir=
1291 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1292   if test -f $ac_dir/install-sh; then
1293     ac_aux_dir=$ac_dir
1294     ac_install_sh="$ac_aux_dir/install-sh -c"
1295     break
1296   elif test -f $ac_dir/install.sh; then
1297     ac_aux_dir=$ac_dir
1298     ac_install_sh="$ac_aux_dir/install.sh -c"
1299     break
1300   elif test -f $ac_dir/shtool; then
1301     ac_aux_dir=$ac_dir
1302     ac_install_sh="$ac_aux_dir/shtool install -c"
1303     break
1304   fi
1305 done
1306 if test -z "$ac_aux_dir"; then
1307   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1308 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1312 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1313 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1314
1315 # Find a good install program.  We prefer a C program (faster),
1316 # so one script is as good as another.  But avoid the broken or
1317 # incompatible versions:
1318 # SysV /etc/install, /usr/sbin/install
1319 # SunOS /usr/etc/install
1320 # IRIX /sbin/install
1321 # AIX /bin/install
1322 # AmigaOS /C/install, which installs bootblocks on floppy discs
1323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1326 # OS/2's system install, which has a completely different semantic
1327 # ./install, which can be erroneously created by make from ./install.sh.
1328 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1329 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1330 if test -z "$INSTALL"; then
1331 if test "${ac_cv_path_install+set}" = set; then
1332   echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1336 do
1337   IFS=$as_save_IFS
1338   test -z "$as_dir" && as_dir=.
1339   # Account for people who put trailing slashes in PATH elements.
1340 case $as_dir/ in
1341   ./ | .// | /cC/* | \
1342   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1343   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1344   /usr/ucb/* ) ;;
1345   *)
1346     # OSF1 and SCO ODT 3.0 have their own names for install.
1347     # Don't use installbsd from OSF since it installs stuff as root
1348     # by default.
1349     for ac_prog in ginstall scoinst install; do
1350       for ac_exec_ext in '' $ac_executable_extensions; do
1351         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1352           if test $ac_prog = install &&
1353             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1354             # AIX install.  It has an incompatible calling convention.
1355             :
1356           elif test $ac_prog = install &&
1357             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1358             # program-specific install script used by HP pwplus--don't use.
1359             :
1360           else
1361             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1362             break 3
1363           fi
1364         fi
1365       done
1366     done
1367     ;;
1368 esac
1369 done
1370
1371
1372 fi
1373   if test "${ac_cv_path_install+set}" = set; then
1374     INSTALL=$ac_cv_path_install
1375   else
1376     # As a last resort, use the slow shell script.  We don't cache a
1377     # path for INSTALL within a source directory, because that will
1378     # break other packages using the cache if that directory is
1379     # removed, or if the path is relative.
1380     INSTALL=$ac_install_sh
1381   fi
1382 fi
1383 echo "$as_me:$LINENO: result: $INSTALL" >&5
1384 echo "${ECHO_T}$INSTALL" >&6
1385
1386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1387 # It thinks the first close brace ends the variable substitution.
1388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1389
1390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1391
1392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1393
1394
1395 # Extract the first word of "perl", so it can be a program name with args.
1396 set dummy perl; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_path_PERL+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   case $PERL in
1403   [\\/]* | ?:[\\/]*)
1404   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1405   ;;
1406   *)
1407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410   IFS=$as_save_IFS
1411   test -z "$as_dir" && as_dir=.
1412   for ac_exec_ext in '' $ac_executable_extensions; do
1413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416     break 2
1417   fi
1418 done
1419 done
1420
1421   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="not found"
1422   ;;
1423 esac
1424 fi
1425 PERL=$ac_cv_path_PERL
1426
1427 if test -n "$PERL"; then
1428   echo "$as_me:$LINENO: result: $PERL" >&5
1429 echo "${ECHO_T}$PERL" >&6
1430 else
1431   echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435 if test "$PERL" = 'not found'; then
1436         { { echo "$as_me:$LINENO: error: cannot use $PACKAGE_NAME without perl" >&5
1437 echo "$as_me: error: cannot use $PACKAGE_NAME without perl" >&2;}
1438    { (exit 1); exit 1; }; }
1439 fi
1440
1441
1442
1443 # Check whether --with-speedycgi or --without-speedycgi was given.
1444 if test "${with_speedycgi+set}" = set; then
1445   withval="$with_speedycgi"
1446   SPEEDY_BIN=$withval
1447 else
1448   SPEEDY_BIN=/usr/local/bin/speedy
1449 fi;
1450
1451
1452
1453
1454
1455 # Check whether --enable-layout or --disable-layout was given.
1456 if test "${enable_layout+set}" = set; then
1457   enableval="$enable_layout"
1458   LAYOUT=$enableval
1459 fi;
1460
1461 if test "x$LAYOUT" = "x"; then
1462         LAYOUT="RT3"
1463 fi
1464
1465         if test ! -f $srcdir/config.layout; then
1466                 { echo "$as_me:$LINENO: WARNING: Layout file $srcdir/config.layout not found" >&5
1467 echo "$as_me: WARNING: Layout file $srcdir/config.layout not found" >&2;}
1468                 rt_layout_name=no
1469         else
1470                 pldconf=./config.pld
1471                 $PERL  -0777 -p -e "\$layout = '$LAYOUT';"  -e '
1472                 s/.*<Layout\s+$layout>//gims;
1473                 s/\<\/Layout\>.*//s;
1474                 s/^#.*$//m;
1475                 s/^\s+//gim;
1476                 s/\s+$/\n/gim;
1477                 s/\+$/\/rt3/gim;
1478                 # m4 will not let us just use $srcdir/config.layout, we need $1
1479                 s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man)dir)\s*:\s*(.*)$/$1=$2/gim;
1480                 s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
1481                  ' < $srcdir/config.layout > $pldconf
1482
1483                 if test -s $pldconf; then
1484                         rt_layout_name=$LAYOUT
1485                         . $pldconf
1486
1487                         for var in prefix exec_prefix bindir sbindir \
1488                                  sysconfdir mandir libdir datadir htmldir \
1489                                  localstatedir logfiledir masonstatedir \
1490                                  sessionstatedir customdir custometcdir customhtmldir \
1491                                  customlexdir customlibdir manualdir; do
1492                                 eval "val=\"\$$var\""
1493                                 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1494                                 val=`echo $val |
1495                                         sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1496                                 eval "$var='$val'"
1497                         done
1498
1499                 else
1500                         rt_layout_name=no
1501                 fi
1502                 #rm $pldconf
1503         fi
1504
1505
1506         ap_last=''
1507         ap_cur='$prefix'
1508         while test "x${ap_cur}" != "x${ap_last}"; do
1509                 ap_last="${ap_cur}"
1510                 ap_cur=`eval "echo ${ap_cur}"`
1511         done
1512         exp_prefix="${ap_cur}"
1513
1514
1515
1516
1517
1518
1519         ap_last=''
1520         ap_cur='$exec_prefix'
1521         while test "x${ap_cur}" != "x${ap_last}"; do
1522                 ap_last="${ap_cur}"
1523                 ap_cur=`eval "echo ${ap_cur}"`
1524         done
1525         exp_exec_prefix="${ap_cur}"
1526
1527
1528
1529
1530
1531
1532         ap_last=''
1533         ap_cur='$bindir'
1534         while test "x${ap_cur}" != "x${ap_last}"; do
1535                 ap_last="${ap_cur}"
1536                 ap_cur=`eval "echo ${ap_cur}"`
1537         done
1538         exp_bindir="${ap_cur}"
1539
1540
1541
1542
1543
1544
1545         ap_last=''
1546         ap_cur='$sbindir'
1547         while test "x${ap_cur}" != "x${ap_last}"; do
1548                 ap_last="${ap_cur}"
1549                 ap_cur=`eval "echo ${ap_cur}"`
1550         done
1551         exp_sbindir="${ap_cur}"
1552
1553
1554
1555
1556
1557
1558         ap_last=''
1559         ap_cur='$sysconfdir'
1560         while test "x${ap_cur}" != "x${ap_last}"; do
1561                 ap_last="${ap_cur}"
1562                 ap_cur=`eval "echo ${ap_cur}"`
1563         done
1564         exp_sysconfdir="${ap_cur}"
1565
1566
1567
1568
1569
1570
1571         ap_last=''
1572         ap_cur='$mandir'
1573         while test "x${ap_cur}" != "x${ap_last}"; do
1574                 ap_last="${ap_cur}"
1575                 ap_cur=`eval "echo ${ap_cur}"`
1576         done
1577         exp_mandir="${ap_cur}"
1578
1579
1580
1581
1582
1583
1584         ap_last=''
1585         ap_cur='$libdir'
1586         while test "x${ap_cur}" != "x${ap_last}"; do
1587                 ap_last="${ap_cur}"
1588                 ap_cur=`eval "echo ${ap_cur}"`
1589         done
1590         exp_libdir="${ap_cur}"
1591
1592
1593
1594
1595
1596
1597         ap_last=''
1598         ap_cur='$datadir'
1599         while test "x${ap_cur}" != "x${ap_last}"; do
1600                 ap_last="${ap_cur}"
1601                 ap_cur=`eval "echo ${ap_cur}"`
1602         done
1603         exp_datadir="${ap_cur}"
1604
1605
1606
1607
1608
1609
1610         ap_last=''
1611         ap_cur='$htmldir'
1612         while test "x${ap_cur}" != "x${ap_last}"; do
1613                 ap_last="${ap_cur}"
1614                 ap_cur=`eval "echo ${ap_cur}"`
1615         done
1616         exp_htmldir="${ap_cur}"
1617
1618
1619
1620
1621
1622
1623         ap_last=''
1624         ap_cur='$manualdir'
1625         while test "x${ap_cur}" != "x${ap_last}"; do
1626                 ap_last="${ap_cur}"
1627                 ap_cur=`eval "echo ${ap_cur}"`
1628         done
1629         exp_manualdir="${ap_cur}"
1630
1631
1632
1633
1634
1635
1636         ap_last=''
1637         ap_cur='$localstatedir'
1638         while test "x${ap_cur}" != "x${ap_last}"; do
1639                 ap_last="${ap_cur}"
1640                 ap_cur=`eval "echo ${ap_cur}"`
1641         done
1642         exp_localstatedir="${ap_cur}"
1643
1644
1645
1646
1647
1648
1649         ap_last=''
1650         ap_cur='$logfiledir'
1651         while test "x${ap_cur}" != "x${ap_last}"; do
1652                 ap_last="${ap_cur}"
1653                 ap_cur=`eval "echo ${ap_cur}"`
1654         done
1655         exp_logfiledir="${ap_cur}"
1656
1657
1658
1659
1660
1661
1662         ap_last=''
1663         ap_cur='$masonstatedir'
1664         while test "x${ap_cur}" != "x${ap_last}"; do
1665                 ap_last="${ap_cur}"
1666                 ap_cur=`eval "echo ${ap_cur}"`
1667         done
1668         exp_masonstatedir="${ap_cur}"
1669
1670
1671
1672
1673
1674
1675         ap_last=''
1676         ap_cur='$sessionstatedir'
1677         while test "x${ap_cur}" != "x${ap_last}"; do
1678                 ap_last="${ap_cur}"
1679                 ap_cur=`eval "echo ${ap_cur}"`
1680         done
1681         exp_sessionstatedir="${ap_cur}"
1682
1683
1684
1685
1686
1687
1688         ap_last=''
1689         ap_cur='$customdir'
1690         while test "x${ap_cur}" != "x${ap_last}"; do
1691                 ap_last="${ap_cur}"
1692                 ap_cur=`eval "echo ${ap_cur}"`
1693         done
1694         exp_customdir="${ap_cur}"
1695
1696
1697
1698
1699
1700
1701         ap_last=''
1702         ap_cur='$custometcdir'
1703         while test "x${ap_cur}" != "x${ap_last}"; do
1704                 ap_last="${ap_cur}"
1705                 ap_cur=`eval "echo ${ap_cur}"`
1706         done
1707         exp_custometcdir="${ap_cur}"
1708
1709
1710
1711
1712
1713
1714         ap_last=''
1715         ap_cur='$customhtmldir'
1716         while test "x${ap_cur}" != "x${ap_last}"; do
1717                 ap_last="${ap_cur}"
1718                 ap_cur=`eval "echo ${ap_cur}"`
1719         done
1720         exp_customhtmldir="${ap_cur}"
1721
1722
1723
1724
1725
1726
1727         ap_last=''
1728         ap_cur='$customlexdir'
1729         while test "x${ap_cur}" != "x${ap_last}"; do
1730                 ap_last="${ap_cur}"
1731                 ap_cur=`eval "echo ${ap_cur}"`
1732         done
1733         exp_customlexdir="${ap_cur}"
1734
1735
1736
1737
1738
1739
1740         ap_last=''
1741         ap_cur='$customlibdir'
1742         while test "x${ap_cur}" != "x${ap_last}"; do
1743                 ap_last="${ap_cur}"
1744                 ap_cur=`eval "echo ${ap_cur}"`
1745         done
1746         exp_customlibdir="${ap_cur}"
1747
1748
1749
1750
1751
1752 echo "$as_me:$LINENO: checking for chosen layout" >&5
1753 echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
1754 if test "x$rt_layout_name" = "xno"; then
1755         if test "x$LAYOUT" = "xno"; then
1756                 echo "$as_me:$LINENO: result: none" >&5
1757 echo "${ECHO_T}none" >&6
1758         else
1759                 echo "$as_me:$LINENO: result: $LAYOUT" >&5
1760 echo "${ECHO_T}$LAYOUT" >&6
1761         fi
1762         { { echo "$as_me:$LINENO: error: a valid layout must be specified (or the default used)" >&5
1763 echo "$as_me: error: a valid layout must be specified (or the default used)" >&2;}
1764    { (exit 1); exit 1; }; }
1765 else
1766
1767         echo "$as_me:$LINENO: result: $rt_layout_name" >&5
1768 echo "${ECHO_T}$rt_layout_name" >&6
1769 fi
1770
1771
1772
1773 # Check whether --with-rt-group or --without-rt-group was given.
1774 if test "${with_rt_group+set}" = set; then
1775   withval="$with_rt_group"
1776   RTGROUP=$withval
1777 else
1778   RTGROUP=rt
1779 fi;
1780
1781
1782
1783 # Check whether --with-bin-owner or --without-bin-owner was given.
1784 if test "${with_bin_owner+set}" = set; then
1785   withval="$with_bin_owner"
1786   BIN_OWNER=$withval
1787 else
1788   BIN_OWNER=root
1789 fi;
1790
1791
1792
1793 # Check whether --with-libs-owner or --without-libs-owner was given.
1794 if test "${with_libs_owner+set}" = set; then
1795   withval="$with_libs_owner"
1796   LIBS_OWNER=$withval
1797 else
1798   LIBS_OWNER=root
1799 fi;
1800
1801
1802
1803 # Check whether --with-libs-group or --without-libs-group was given.
1804 if test "${with_libs_group+set}" = set; then
1805   withval="$with_libs_group"
1806   LIBS_GROUP=$withval
1807 else
1808   LIBS_GROUP=bin
1809 fi;
1810
1811
1812
1813 # Check whether --with-db-type or --without-db-type was given.
1814 if test "${with_db_type+set}" = set; then
1815   withval="$with_db_type"
1816   DB_TYPE=$withval
1817 else
1818   DB_TYPE=mysql
1819 fi;
1820 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
1821         { { echo "$as_me:$LINENO: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&5
1822 echo "$as_me: error: Only Oracle, Informix, Pg, mysql and SQLite are valid db types" >&2;}
1823    { (exit 1); exit 1; }; }
1824 fi
1825
1826
1827 if test "$DB_TYPE" = 'Oracle'; then
1828         test "x$ORACLE_HOME" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the ORACLE_HOME environment variable" >&5
1829 echo "$as_me: error: Please declare the ORACLE_HOME environment variable" >&2;}
1830    { (exit 1); exit 1; }; }
1831         DATABASE_ENV_PREF="\$ENV{'ORACLE_HOME'} = '$ORACLE_HOME';"
1832 fi
1833
1834 if test "$DB_TYPE" = 'Sybase'; then
1835         test "x$SYBASE" = 'x' && { { echo "$as_me:$LINENO: error: Please declare the SYBASE_HOME environment variable" >&5
1836 echo "$as_me: error: Please declare the SYBASE_HOME environment variable" >&2;}
1837    { (exit 1); exit 1; }; }
1838         DATABASE_ENV_PREF="\$ENV{'SYBASE'} = '$SYBASE';"
1839 fi
1840
1841
1842
1843 # Check whether --with-db-host or --without-db-host was given.
1844 if test "${with_db_host+set}" = set; then
1845   withval="$with_db_host"
1846   DB_HOST=$withval
1847 else
1848   DB_HOST=localhost
1849 fi;
1850
1851
1852
1853 # Check whether --with-db-port or --without-db-port was given.
1854 if test "${with_db_port+set}" = set; then
1855   withval="$with_db_port"
1856   DB_PORT=$withval
1857 else
1858   DB_PORT=
1859 fi;
1860
1861
1862
1863 # Check whether --with-db-rt-host or --without-db-rt-host was given.
1864 if test "${with_db_rt_host+set}" = set; then
1865   withval="$with_db_rt_host"
1866   DB_RT_HOST=$withval
1867 else
1868   DB_RT_HOST=localhost
1869 fi;
1870
1871
1872
1873 # Check whether --with-db-dba or --without-db-dba was given.
1874 if test "${with_db_dba+set}" = set; then
1875   withval="$with_db_dba"
1876   DB_DBA=$withval
1877 else
1878   DB_DBA=root
1879 fi;
1880
1881
1882
1883 # Check whether --with-db-database or --without-db-database was given.
1884 if test "${with_db_database+set}" = set; then
1885   withval="$with_db_database"
1886   DB_DATABASE=$withval
1887 else
1888   DB_DATABASE=rt3
1889 fi;
1890
1891
1892
1893 # Check whether --with-db-rt-user or --without-db-rt-user was given.
1894 if test "${with_db_rt_user+set}" = set; then
1895   withval="$with_db_rt_user"
1896   DB_RT_USER=$withval
1897 else
1898   DB_RT_USER=rt_user
1899 fi;
1900
1901
1902
1903 # Check whether --with-db-rt-pass or --without-db-rt-pass was given.
1904 if test "${with_db_rt_pass+set}" = set; then
1905   withval="$with_db_rt_pass"
1906   DB_RT_PASS=$withval
1907 else
1908   DB_RT_PASS=rt_pass
1909 fi;
1910
1911
1912
1913 # Check whether --with-web-user or --without-web-user was given.
1914 if test "${with_web_user+set}" = set; then
1915   withval="$with_web_user"
1916   WEB_USER=$withval
1917 else
1918   WEB_USER=www
1919 fi;
1920
1921
1922
1923 # Check whether --with-web-group or --without-web-group was given.
1924 if test "${with_web_group+set}" = set; then
1925   withval="$with_web_group"
1926   WEB_GROUP=$withval
1927 else
1928   WEB_GROUP=www
1929 fi;
1930
1931
1932 my_group=$(groups|cut -f1 -d' ')
1933
1934 # Check whether --with-my-user-group or --without-my-user-group was given.
1935 if test "${with_my_user_group+set}" = set; then
1936   withval="$with_my_user_group"
1937   RTGROUP=$my_group
1938             BIN_OWNER=$USER
1939             LIBS_OWNER=$USER
1940             LIBS_GROUP=$my_group
1941             WEB_USER=$USER
1942             WEB_GROUP=$my_group
1943 fi;
1944
1945
1946
1947
1948 # Check whether --with-apachectl or --without-apachectl was given.
1949 if test "${with_apachectl+set}" = set; then
1950   withval="$with_apachectl"
1951   APACHECTL=$withval
1952 else
1953   APACHECTL=`which apachectl`
1954 fi;
1955
1956
1957
1958 RT_VERSION_MAJOR=${rt_version_major}
1959
1960 RT_VERSION_MINOR=${rt_version_minor}
1961
1962 RT_VERSION_PATCH=${rt_version_patch}
1963
1964
1965 RT_PATH=${exp_prefix}
1966
1967 RT_DOC_PATH=${exp_manualdir}
1968
1969 RT_LOCAL_PATH=${exp_customdir}
1970
1971 RT_LIB_PATH=${exp_libdir}
1972
1973 RT_ETC_PATH=${exp_sysconfdir}
1974
1975 CONFIG_FILE_PATH=${exp_sysconfdir}
1976
1977 RT_BIN_PATH=${exp_bindir}
1978
1979 RT_SBIN_PATH=${exp_sbindir}
1980
1981 RT_VAR_PATH=${exp_localstatedir}
1982
1983 RT_MAN_PATH=${exp_mandir}
1984
1985 MASON_DATA_PATH=${exp_masonstatedir}
1986
1987 MASON_SESSION_PATH=${exp_sessionstatedir}
1988
1989 MASON_HTML_PATH=${exp_htmldir}
1990
1991 LOCAL_ETC_PATH=${exp_custometcdir}
1992
1993 MASON_LOCAL_HTML_PATH=${exp_customhtmldir}
1994
1995 LOCAL_LEXICON_PATH=${exp_customlexdir}
1996
1997 LOCAL_LIB_PATH=${exp_customlibdir}
1998
1999 DESTDIR=${exp_prefix}
2000
2001 RT_LOG_PATH=${exp_logfiledir}
2002
2003
2004
2005                                                                                                                                                                                               ac_config_files="$ac_config_files sbin/rt-setup-database sbin/rt-test-dependencies Makefile etc/RT_Config.pm lib/RT.pm lib/t/00smoke.t lib/t/01harness.t lib/t/02regression.t lib/t/03web.pl lib/t/04_send_email.pl lib/t/05cronsupport.pl bin/mason_handler.fcgi bin/mason_handler.scgi bin/standalone_httpd bin/mason_handler.svc bin/rt-crontool bin/rt-mailgate bin/rt bin/webmux.pl"
2006
2007 cat >confcache <<\_ACEOF
2008 # This file is a shell script that caches the results of configure
2009 # tests run on this system so they can be shared between configure
2010 # scripts and configure runs, see configure's option --config-cache.
2011 # It is not useful on other systems.  If it contains results you don't
2012 # want to keep, you may remove or edit it.
2013 #
2014 # config.status only pays attention to the cache file if you give it
2015 # the --recheck option to rerun configure.
2016 #
2017 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2018 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2019 # following values.
2020
2021 _ACEOF
2022
2023 # The following way of writing the cache mishandles newlines in values,
2024 # but we know of no workaround that is simple, portable, and efficient.
2025 # So, don't put newlines in cache variables' values.
2026 # Ultrix sh set writes to stderr and can't be redirected directly,
2027 # and sets the high bit in the cache file unless we assign to the vars.
2028 {
2029   (set) 2>&1 |
2030     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2031     *ac_space=\ *)
2032       # `set' does not quote correctly, so add quotes (double-quote
2033       # substitution turns \\\\ into \\, and sed turns \\ into \).
2034       sed -n \
2035         "s/'/'\\\\''/g;
2036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2037       ;;
2038     *)
2039       # `set' quotes correctly as required by POSIX, so do not add quotes.
2040       sed -n \
2041         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2042       ;;
2043     esac;
2044 } |
2045   sed '
2046      t clear
2047      : clear
2048      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2049      t end
2050      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2051      : end' >>confcache
2052 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2053   if test -w $cache_file; then
2054     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2055     cat confcache >$cache_file
2056   else
2057     echo "not updating unwritable cache $cache_file"
2058   fi
2059 fi
2060 rm -f confcache
2061
2062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2063 # Let make expand exec_prefix.
2064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2065
2066 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2067 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2068 # trailing colons and then remove the whole line if VPATH becomes empty
2069 # (actually we leave an empty line to preserve line numbers).
2070 if test "x$srcdir" = x.; then
2071   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2072 s/:*\$(srcdir):*/:/;
2073 s/:*\${srcdir}:*/:/;
2074 s/:*@srcdir@:*/:/;
2075 s/^\([^=]*=[     ]*\):*/\1/;
2076 s/:*$//;
2077 s/^[^=]*=[       ]*$//;
2078 }'
2079 fi
2080
2081 # Transform confdefs.h into DEFS.
2082 # Protect against shell expansion while executing Makefile rules.
2083 # Protect against Makefile macro expansion.
2084 #
2085 # If the first sed substitution is executed (which looks for macros that
2086 # take arguments), then we branch to the quote section.  Otherwise,
2087 # look for a macro that doesn't take arguments.
2088 cat >confdef2opt.sed <<\_ACEOF
2089 t clear
2090 : clear
2091 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
2092 t quote
2093 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
2094 t quote
2095 d
2096 : quote
2097 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
2098 s,\[,\\&,g
2099 s,\],\\&,g
2100 s,\$,$$,g
2101 p
2102 _ACEOF
2103 # We use echo to avoid assuming a particular line-breaking character.
2104 # The extra dot is to prevent the shell from consuming trailing
2105 # line-breaks from the sub-command output.  A line-break within
2106 # single-quotes doesn't work because, if this script is created in a
2107 # platform that uses two characters for line-breaks (e.g., DOS), tr
2108 # would break.
2109 ac_LF_and_DOT=`echo; echo .`
2110 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2111 rm -f confdef2opt.sed
2112
2113
2114 ac_libobjs=
2115 ac_ltlibobjs=
2116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2117   # 1. Remove the extension, and $U if already installed.
2118   ac_i=`echo "$ac_i" |
2119          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2120   # 2. Add them.
2121   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2122   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2123 done
2124 LIBOBJS=$ac_libobjs
2125
2126 LTLIBOBJS=$ac_ltlibobjs
2127
2128
2129
2130 : ${CONFIG_STATUS=./config.status}
2131 ac_clean_files_save=$ac_clean_files
2132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2133 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2134 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2135 cat >$CONFIG_STATUS <<_ACEOF
2136 #! $SHELL
2137 # Generated by $as_me.
2138 # Run this file to recreate the current configuration.
2139 # Compiler output produced by configure, useful for debugging
2140 # configure, is in config.log if it exists.
2141
2142 debug=false
2143 ac_cs_recheck=false
2144 ac_cs_silent=false
2145 SHELL=\${CONFIG_SHELL-$SHELL}
2146 _ACEOF
2147
2148 cat >>$CONFIG_STATUS <<\_ACEOF
2149 ## --------------------- ##
2150 ## M4sh Initialization.  ##
2151 ## --------------------- ##
2152
2153 # Be Bourne compatible
2154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2155   emulate sh
2156   NULLCMD=:
2157   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2158   # is contrary to our usage.  Disable this feature.
2159   alias -g '${1+"$@"}'='"$@"'
2160 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2161   set -o posix
2162 fi
2163 DUALCASE=1; export DUALCASE # for MKS sh
2164
2165 # Support unset when possible.
2166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2167   as_unset=unset
2168 else
2169   as_unset=false
2170 fi
2171
2172
2173 # Work around bugs in pre-3.0 UWIN ksh.
2174 $as_unset ENV MAIL MAILPATH
2175 PS1='$ '
2176 PS2='> '
2177 PS4='+ '
2178
2179 # NLS nuisances.
2180 for as_var in \
2181   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2182   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2183   LC_TELEPHONE LC_TIME
2184 do
2185   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2186     eval $as_var=C; export $as_var
2187   else
2188     $as_unset $as_var
2189   fi
2190 done
2191
2192 # Required to use basename.
2193 if expr a : '\(a\)' >/dev/null 2>&1; then
2194   as_expr=expr
2195 else
2196   as_expr=false
2197 fi
2198
2199 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2200   as_basename=basename
2201 else
2202   as_basename=false
2203 fi
2204
2205
2206 # Name of the executable.
2207 as_me=`$as_basename "$0" ||
2208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2209          X"$0" : 'X\(//\)$' \| \
2210          X"$0" : 'X\(/\)$' \| \
2211          .     : '\(.\)' 2>/dev/null ||
2212 echo X/"$0" |
2213     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2214           /^X\/\(\/\/\)$/{ s//\1/; q; }
2215           /^X\/\(\/\).*/{ s//\1/; q; }
2216           s/.*/./; q'`
2217
2218
2219 # PATH needs CR, and LINENO needs CR and PATH.
2220 # Avoid depending upon Character Ranges.
2221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2224 as_cr_digits='0123456789'
2225 as_cr_alnum=$as_cr_Letters$as_cr_digits
2226
2227 # The user is always right.
2228 if test "${PATH_SEPARATOR+set}" != set; then
2229   echo "#! /bin/sh" >conf$$.sh
2230   echo  "exit 0"   >>conf$$.sh
2231   chmod +x conf$$.sh
2232   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2233     PATH_SEPARATOR=';'
2234   else
2235     PATH_SEPARATOR=:
2236   fi
2237   rm -f conf$$.sh
2238 fi
2239
2240
2241   as_lineno_1=$LINENO
2242   as_lineno_2=$LINENO
2243   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2244   test "x$as_lineno_1" != "x$as_lineno_2" &&
2245   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2246   # Find who we are.  Look in the path if we contain no path at all
2247   # relative or not.
2248   case $0 in
2249     *[\\/]* ) as_myself=$0 ;;
2250     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2256 done
2257
2258        ;;
2259   esac
2260   # We did not find ourselves, most probably we were run as `sh COMMAND'
2261   # in which case we are not to be found in the path.
2262   if test "x$as_myself" = x; then
2263     as_myself=$0
2264   fi
2265   if test ! -f "$as_myself"; then
2266     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2267 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2268    { (exit 1); exit 1; }; }
2269   fi
2270   case $CONFIG_SHELL in
2271   '')
2272     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for as_base in sh bash ksh sh5; do
2278          case $as_dir in
2279          /*)
2280            if ("$as_dir/$as_base" -c '
2281   as_lineno_1=$LINENO
2282   as_lineno_2=$LINENO
2283   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2284   test "x$as_lineno_1" != "x$as_lineno_2" &&
2285   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2286              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2287              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2288              CONFIG_SHELL=$as_dir/$as_base
2289              export CONFIG_SHELL
2290              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2291            fi;;
2292          esac
2293        done
2294 done
2295 ;;
2296   esac
2297
2298   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2299   # uniformly replaced by the line number.  The first 'sed' inserts a
2300   # line-number line before each line; the second 'sed' does the real
2301   # work.  The second script uses 'N' to pair each line-number line
2302   # with the numbered line, and appends trailing '-' during
2303   # substitution so that $LINENO is not a special case at line end.
2304   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2305   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2306   sed '=' <$as_myself |
2307     sed '
2308       N
2309       s,$,-,
2310       : loop
2311       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2312       t loop
2313       s,-$,,
2314       s,^['$as_cr_digits']*\n,,
2315     ' >$as_me.lineno &&
2316   chmod +x $as_me.lineno ||
2317     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2318 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2319    { (exit 1); exit 1; }; }
2320
2321   # Don't try to exec as it changes $[0], causing all sort of problems
2322   # (the dirname of $[0] is not the place where we might find the
2323   # original and so on.  Autoconf is especially sensible to this).
2324   . ./$as_me.lineno
2325   # Exit status is that of the last command.
2326   exit
2327 }
2328
2329
2330 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2331   *c*,-n*) ECHO_N= ECHO_C='
2332 ' ECHO_T='      ' ;;
2333   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2334   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2335 esac
2336
2337 if expr a : '\(a\)' >/dev/null 2>&1; then
2338   as_expr=expr
2339 else
2340   as_expr=false
2341 fi
2342
2343 rm -f conf$$ conf$$.exe conf$$.file
2344 echo >conf$$.file
2345 if ln -s conf$$.file conf$$ 2>/dev/null; then
2346   # We could just check for DJGPP; but this test a) works b) is more generic
2347   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2348   if test -f conf$$.exe; then
2349     # Don't use ln at all; we don't have any links
2350     as_ln_s='cp -p'
2351   else
2352     as_ln_s='ln -s'
2353   fi
2354 elif ln conf$$.file conf$$ 2>/dev/null; then
2355   as_ln_s=ln
2356 else
2357   as_ln_s='cp -p'
2358 fi
2359 rm -f conf$$ conf$$.exe conf$$.file
2360
2361 if mkdir -p . 2>/dev/null; then
2362   as_mkdir_p=:
2363 else
2364   test -d ./-p && rmdir ./-p
2365   as_mkdir_p=false
2366 fi
2367
2368 as_executable_p="test -f"
2369
2370 # Sed expression to map a string onto a valid CPP name.
2371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2372
2373 # Sed expression to map a string onto a valid variable name.
2374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2375
2376
2377 # IFS
2378 # We need space, tab and new line, in precisely that order.
2379 as_nl='
2380 '
2381 IFS="   $as_nl"
2382
2383 # CDPATH.
2384 $as_unset CDPATH
2385
2386 exec 6>&1
2387
2388 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2389 # report actual input values of CONFIG_FILES etc. instead of their
2390 # values after options handling.  Logging --version etc. is OK.
2391 exec 5>>config.log
2392 {
2393   echo
2394   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2395 ## Running $as_me. ##
2396 _ASBOX
2397 } >&5
2398 cat >&5 <<_CSEOF
2399
2400 This file was extended by RT $as_me 3.2.2, which was
2401 generated by GNU Autoconf 2.59.  Invocation command line was
2402
2403   CONFIG_FILES    = $CONFIG_FILES
2404   CONFIG_HEADERS  = $CONFIG_HEADERS
2405   CONFIG_LINKS    = $CONFIG_LINKS
2406   CONFIG_COMMANDS = $CONFIG_COMMANDS
2407   $ $0 $@
2408
2409 _CSEOF
2410 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2411 echo >&5
2412 _ACEOF
2413
2414 # Files that config.status was made for.
2415 if test -n "$ac_config_files"; then
2416   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2417 fi
2418
2419 if test -n "$ac_config_headers"; then
2420   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2421 fi
2422
2423 if test -n "$ac_config_links"; then
2424   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2425 fi
2426
2427 if test -n "$ac_config_commands"; then
2428   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2429 fi
2430
2431 cat >>$CONFIG_STATUS <<\_ACEOF
2432
2433 ac_cs_usage="\
2434 \`$as_me' instantiates files from templates according to the
2435 current configuration.
2436
2437 Usage: $0 [OPTIONS] [FILE]...
2438
2439   -h, --help       print this help, then exit
2440   -V, --version    print version number, then exit
2441   -q, --quiet      do not print progress messages
2442   -d, --debug      don't remove temporary files
2443       --recheck    update $as_me by reconfiguring in the same conditions
2444   --file=FILE[:TEMPLATE]
2445                    instantiate the configuration file FILE
2446
2447 Configuration files:
2448 $config_files
2449
2450 Report bugs to <bug-autoconf@gnu.org>."
2451 _ACEOF
2452
2453 cat >>$CONFIG_STATUS <<_ACEOF
2454 ac_cs_version="\\
2455 RT config.status 3.2.2
2456 configured by $0, generated by GNU Autoconf 2.59,
2457   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2458
2459 Copyright (C) 2003 Free Software Foundation, Inc.
2460 This config.status script is free software; the Free Software Foundation
2461 gives unlimited permission to copy, distribute and modify it."
2462 srcdir=$srcdir
2463 INSTALL="$INSTALL"
2464 _ACEOF
2465
2466 cat >>$CONFIG_STATUS <<\_ACEOF
2467 # If no file are specified by the user, then we need to provide default
2468 # value.  By we need to know if files were specified by the user.
2469 ac_need_defaults=:
2470 while test $# != 0
2471 do
2472   case $1 in
2473   --*=*)
2474     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2475     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2476     ac_shift=:
2477     ;;
2478   -*)
2479     ac_option=$1
2480     ac_optarg=$2
2481     ac_shift=shift
2482     ;;
2483   *) # This is not an option, so the user has probably given explicit
2484      # arguments.
2485      ac_option=$1
2486      ac_need_defaults=false;;
2487   esac
2488
2489   case $ac_option in
2490   # Handling of the options.
2491 _ACEOF
2492 cat >>$CONFIG_STATUS <<\_ACEOF
2493   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2494     ac_cs_recheck=: ;;
2495   --version | --vers* | -V )
2496     echo "$ac_cs_version"; exit 0 ;;
2497   --he | --h)
2498     # Conflict between --help and --header
2499     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2500 Try \`$0 --help' for more information." >&5
2501 echo "$as_me: error: ambiguous option: $1
2502 Try \`$0 --help' for more information." >&2;}
2503    { (exit 1); exit 1; }; };;
2504   --help | --hel | -h )
2505     echo "$ac_cs_usage"; exit 0 ;;
2506   --debug | --d* | -d )
2507     debug=: ;;
2508   --file | --fil | --fi | --f )
2509     $ac_shift
2510     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2511     ac_need_defaults=false;;
2512   --header | --heade | --head | --hea )
2513     $ac_shift
2514     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2515     ac_need_defaults=false;;
2516   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2518     ac_cs_silent=: ;;
2519
2520   # This is an error.
2521   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2522 Try \`$0 --help' for more information." >&5
2523 echo "$as_me: error: unrecognized option: $1
2524 Try \`$0 --help' for more information." >&2;}
2525    { (exit 1); exit 1; }; } ;;
2526
2527   *) ac_config_targets="$ac_config_targets $1" ;;
2528
2529   esac
2530   shift
2531 done
2532
2533 ac_configure_extra_args=
2534
2535 if $ac_cs_silent; then
2536   exec 6>/dev/null
2537   ac_configure_extra_args="$ac_configure_extra_args --silent"
2538 fi
2539
2540 _ACEOF
2541 cat >>$CONFIG_STATUS <<_ACEOF
2542 if \$ac_cs_recheck; then
2543   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2544   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2545 fi
2546
2547 _ACEOF
2548
2549
2550
2551
2552
2553 cat >>$CONFIG_STATUS <<\_ACEOF
2554 for ac_config_target in $ac_config_targets
2555 do
2556   case "$ac_config_target" in
2557   # Handling of arguments.
2558   "sbin/rt-setup-database" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-setup-database" ;;
2559   "sbin/rt-test-dependencies" ) CONFIG_FILES="$CONFIG_FILES sbin/rt-test-dependencies" ;;
2560   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2561   "etc/RT_Config.pm" ) CONFIG_FILES="$CONFIG_FILES etc/RT_Config.pm" ;;
2562   "lib/RT.pm" ) CONFIG_FILES="$CONFIG_FILES lib/RT.pm" ;;
2563   "lib/t/00smoke.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/00smoke.t" ;;
2564   "lib/t/01harness.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/01harness.t" ;;
2565   "lib/t/02regression.t" ) CONFIG_FILES="$CONFIG_FILES lib/t/02regression.t" ;;
2566   "lib/t/03web.pl" ) CONFIG_FILES="$CONFIG_FILES lib/t/03web.pl" ;;
2567   "lib/t/04_send_email.pl" ) CONFIG_FILES="$CONFIG_FILES lib/t/04_send_email.pl" ;;
2568   "lib/t/05cronsupport.pl" ) CONFIG_FILES="$CONFIG_FILES lib/t/05cronsupport.pl" ;;
2569   "bin/mason_handler.fcgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.fcgi" ;;
2570   "bin/mason_handler.scgi" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.scgi" ;;
2571   "bin/standalone_httpd" ) CONFIG_FILES="$CONFIG_FILES bin/standalone_httpd" ;;
2572   "bin/mason_handler.svc" ) CONFIG_FILES="$CONFIG_FILES bin/mason_handler.svc" ;;
2573   "bin/rt-crontool" ) CONFIG_FILES="$CONFIG_FILES bin/rt-crontool" ;;
2574   "bin/rt-mailgate" ) CONFIG_FILES="$CONFIG_FILES bin/rt-mailgate" ;;
2575   "bin/rt" ) CONFIG_FILES="$CONFIG_FILES bin/rt" ;;
2576   "bin/webmux.pl" ) CONFIG_FILES="$CONFIG_FILES bin/webmux.pl" ;;
2577   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2578 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2579    { (exit 1); exit 1; }; };;
2580   esac
2581 done
2582
2583 # If the user did not use the arguments to specify the items to instantiate,
2584 # then the envvar interface is used.  Set only those that are not.
2585 # We use the long form for the default assignment because of an extremely
2586 # bizarre bug on SunOS 4.1.3.
2587 if $ac_need_defaults; then
2588   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2589 fi
2590
2591 # Have a temporary directory for convenience.  Make it in the build tree
2592 # simply because there is no reason to put it here, and in addition,
2593 # creating and moving files from /tmp can sometimes cause problems.
2594 # Create a temporary directory, and hook for its removal unless debugging.
2595 $debug ||
2596 {
2597   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2598   trap '{ (exit 1); exit 1; }' 1 2 13 15
2599 }
2600
2601 # Create a (secure) tmp directory for tmp files.
2602
2603 {
2604   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2605   test -n "$tmp" && test -d "$tmp"
2606 }  ||
2607 {
2608   tmp=./confstat$$-$RANDOM
2609   (umask 077 && mkdir $tmp)
2610 } ||
2611 {
2612    echo "$me: cannot create a temporary directory in ." >&2
2613    { (exit 1); exit 1; }
2614 }
2615
2616 _ACEOF
2617
2618 cat >>$CONFIG_STATUS <<_ACEOF
2619
2620 #
2621 # CONFIG_FILES section.
2622 #
2623
2624 # No need to generate the scripts if there are no CONFIG_FILES.
2625 # This happens for instance when ./config.status config.h
2626 if test -n "\$CONFIG_FILES"; then
2627   # Protect against being on the right side of a sed subst in config.status.
2628   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2629    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2630 s,@SHELL@,$SHELL,;t t
2631 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2632 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2633 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2634 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2635 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2636 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2637 s,@exec_prefix@,$exec_prefix,;t t
2638 s,@prefix@,$prefix,;t t
2639 s,@program_transform_name@,$program_transform_name,;t t
2640 s,@bindir@,$bindir,;t t
2641 s,@sbindir@,$sbindir,;t t
2642 s,@libexecdir@,$libexecdir,;t t
2643 s,@datadir@,$datadir,;t t
2644 s,@sysconfdir@,$sysconfdir,;t t
2645 s,@sharedstatedir@,$sharedstatedir,;t t
2646 s,@localstatedir@,$localstatedir,;t t
2647 s,@libdir@,$libdir,;t t
2648 s,@includedir@,$includedir,;t t
2649 s,@oldincludedir@,$oldincludedir,;t t
2650 s,@infodir@,$infodir,;t t
2651 s,@mandir@,$mandir,;t t
2652 s,@build_alias@,$build_alias,;t t
2653 s,@host_alias@,$host_alias,;t t
2654 s,@target_alias@,$target_alias,;t t
2655 s,@DEFS@,$DEFS,;t t
2656 s,@ECHO_C@,$ECHO_C,;t t
2657 s,@ECHO_N@,$ECHO_N,;t t
2658 s,@ECHO_T@,$ECHO_T,;t t
2659 s,@LIBS@,$LIBS,;t t
2660 s,@rt_version_major@,$rt_version_major,;t t
2661 s,@rt_version_minor@,$rt_version_minor,;t t
2662 s,@rt_version_patch@,$rt_version_patch,;t t
2663 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2664 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2665 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2666 s,@PERL@,$PERL,;t t
2667 s,@SPEEDY_BIN@,$SPEEDY_BIN,;t t
2668 s,@exp_prefix@,$exp_prefix,;t t
2669 s,@exp_exec_prefix@,$exp_exec_prefix,;t t
2670 s,@exp_bindir@,$exp_bindir,;t t
2671 s,@exp_sbindir@,$exp_sbindir,;t t
2672 s,@exp_sysconfdir@,$exp_sysconfdir,;t t
2673 s,@exp_mandir@,$exp_mandir,;t t
2674 s,@exp_libdir@,$exp_libdir,;t t
2675 s,@exp_datadir@,$exp_datadir,;t t
2676 s,@htmldir@,$htmldir,;t t
2677 s,@exp_htmldir@,$exp_htmldir,;t t
2678 s,@manualdir@,$manualdir,;t t
2679 s,@exp_manualdir@,$exp_manualdir,;t t
2680 s,@exp_localstatedir@,$exp_localstatedir,;t t
2681 s,@logfiledir@,$logfiledir,;t t
2682 s,@exp_logfiledir@,$exp_logfiledir,;t t
2683 s,@masonstatedir@,$masonstatedir,;t t
2684 s,@exp_masonstatedir@,$exp_masonstatedir,;t t
2685 s,@sessionstatedir@,$sessionstatedir,;t t
2686 s,@exp_sessionstatedir@,$exp_sessionstatedir,;t t
2687 s,@customdir@,$customdir,;t t
2688 s,@exp_customdir@,$exp_customdir,;t t
2689 s,@custometcdir@,$custometcdir,;t t
2690 s,@exp_custometcdir@,$exp_custometcdir,;t t
2691 s,@customhtmldir@,$customhtmldir,;t t
2692 s,@exp_customhtmldir@,$exp_customhtmldir,;t t
2693 s,@customlexdir@,$customlexdir,;t t
2694 s,@exp_customlexdir@,$exp_customlexdir,;t t
2695 s,@customlibdir@,$customlibdir,;t t
2696 s,@exp_customlibdir@,$exp_customlibdir,;t t
2697 s,@rt_layout_name@,$rt_layout_name,;t t
2698 s,@RTGROUP@,$RTGROUP,;t t
2699 s,@BIN_OWNER@,$BIN_OWNER,;t t
2700 s,@LIBS_OWNER@,$LIBS_OWNER,;t t
2701 s,@LIBS_GROUP@,$LIBS_GROUP,;t t
2702 s,@DB_TYPE@,$DB_TYPE,;t t
2703 s,@DATABASE_ENV_PREF@,$DATABASE_ENV_PREF,;t t
2704 s,@DB_HOST@,$DB_HOST,;t t
2705 s,@DB_PORT@,$DB_PORT,;t t
2706 s,@DB_RT_HOST@,$DB_RT_HOST,;t t
2707 s,@DB_DBA@,$DB_DBA,;t t
2708 s,@DB_DATABASE@,$DB_DATABASE,;t t
2709 s,@DB_RT_USER@,$DB_RT_USER,;t t
2710 s,@DB_RT_PASS@,$DB_RT_PASS,;t t
2711 s,@WEB_USER@,$WEB_USER,;t t
2712 s,@WEB_GROUP@,$WEB_GROUP,;t t
2713 s,@APACHECTL@,$APACHECTL,;t t
2714 s,@RT_VERSION_MAJOR@,$RT_VERSION_MAJOR,;t t
2715 s,@RT_VERSION_MINOR@,$RT_VERSION_MINOR,;t t
2716 s,@RT_VERSION_PATCH@,$RT_VERSION_PATCH,;t t
2717 s,@RT_PATH@,$RT_PATH,;t t
2718 s,@RT_DOC_PATH@,$RT_DOC_PATH,;t t
2719 s,@RT_LOCAL_PATH@,$RT_LOCAL_PATH,;t t
2720 s,@RT_LIB_PATH@,$RT_LIB_PATH,;t t
2721 s,@RT_ETC_PATH@,$RT_ETC_PATH,;t t
2722 s,@CONFIG_FILE_PATH@,$CONFIG_FILE_PATH,;t t
2723 s,@RT_BIN_PATH@,$RT_BIN_PATH,;t t
2724 s,@RT_SBIN_PATH@,$RT_SBIN_PATH,;t t
2725 s,@RT_VAR_PATH@,$RT_VAR_PATH,;t t
2726 s,@RT_MAN_PATH@,$RT_MAN_PATH,;t t
2727 s,@MASON_DATA_PATH@,$MASON_DATA_PATH,;t t
2728 s,@MASON_SESSION_PATH@,$MASON_SESSION_PATH,;t t
2729 s,@MASON_HTML_PATH@,$MASON_HTML_PATH,;t t
2730 s,@LOCAL_ETC_PATH@,$LOCAL_ETC_PATH,;t t
2731 s,@MASON_LOCAL_HTML_PATH@,$MASON_LOCAL_HTML_PATH,;t t
2732 s,@LOCAL_LEXICON_PATH@,$LOCAL_LEXICON_PATH,;t t
2733 s,@LOCAL_LIB_PATH@,$LOCAL_LIB_PATH,;t t
2734 s,@DESTDIR@,$DESTDIR,;t t
2735 s,@RT_LOG_PATH@,$RT_LOG_PATH,;t t
2736 s,@LIBOBJS@,$LIBOBJS,;t t
2737 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2738 CEOF
2739
2740 _ACEOF
2741
2742   cat >>$CONFIG_STATUS <<\_ACEOF
2743   # Split the substitutions into bite-sized pieces for seds with
2744   # small command number limits, like on Digital OSF/1 and HP-UX.
2745   ac_max_sed_lines=48
2746   ac_sed_frag=1 # Number of current file.
2747   ac_beg=1 # First line for current file.
2748   ac_end=$ac_max_sed_lines # Line after last line for current file.
2749   ac_more_lines=:
2750   ac_sed_cmds=
2751   while $ac_more_lines; do
2752     if test $ac_beg -gt 1; then
2753       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2754     else
2755       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2756     fi
2757     if test ! -s $tmp/subs.frag; then
2758       ac_more_lines=false
2759     else
2760       # The purpose of the label and of the branching condition is to
2761       # speed up the sed processing (if there are no `@' at all, there
2762       # is no need to browse any of the substitutions).
2763       # These are the two extra sed commands mentioned above.
2764       (echo ':t
2765   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2766       if test -z "$ac_sed_cmds"; then
2767         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2768       else
2769         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2770       fi
2771       ac_sed_frag=`expr $ac_sed_frag + 1`
2772       ac_beg=$ac_end
2773       ac_end=`expr $ac_end + $ac_max_sed_lines`
2774     fi
2775   done
2776   if test -z "$ac_sed_cmds"; then
2777     ac_sed_cmds=cat
2778   fi
2779 fi # test -n "$CONFIG_FILES"
2780
2781 _ACEOF
2782 cat >>$CONFIG_STATUS <<\_ACEOF
2783 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2784   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2785   case $ac_file in
2786   - | *:- | *:-:* ) # input from stdin
2787         cat >$tmp/stdin
2788         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2789         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2790   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2791         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2792   * )   ac_file_in=$ac_file.in ;;
2793   esac
2794
2795   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2796   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2798          X"$ac_file" : 'X\(//\)[^/]' \| \
2799          X"$ac_file" : 'X\(//\)$' \| \
2800          X"$ac_file" : 'X\(/\)' \| \
2801          .     : '\(.\)' 2>/dev/null ||
2802 echo X"$ac_file" |
2803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2805           /^X\(\/\/\)$/{ s//\1/; q; }
2806           /^X\(\/\).*/{ s//\1/; q; }
2807           s/.*/./; q'`
2808   { if $as_mkdir_p; then
2809     mkdir -p "$ac_dir"
2810   else
2811     as_dir="$ac_dir"
2812     as_dirs=
2813     while test ! -d "$as_dir"; do
2814       as_dirs="$as_dir $as_dirs"
2815       as_dir=`(dirname "$as_dir") 2>/dev/null ||
2816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2817          X"$as_dir" : 'X\(//\)[^/]' \| \
2818          X"$as_dir" : 'X\(//\)$' \| \
2819          X"$as_dir" : 'X\(/\)' \| \
2820          .     : '\(.\)' 2>/dev/null ||
2821 echo X"$as_dir" |
2822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2824           /^X\(\/\/\)$/{ s//\1/; q; }
2825           /^X\(\/\).*/{ s//\1/; q; }
2826           s/.*/./; q'`
2827     done
2828     test ! -n "$as_dirs" || mkdir $as_dirs
2829   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2831    { (exit 1); exit 1; }; }; }
2832
2833   ac_builddir=.
2834
2835 if test "$ac_dir" != .; then
2836   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2837   # A "../" for each directory in $ac_dir_suffix.
2838   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2839 else
2840   ac_dir_suffix= ac_top_builddir=
2841 fi
2842
2843 case $srcdir in
2844   .)  # No --srcdir option.  We are building in place.
2845     ac_srcdir=.
2846     if test -z "$ac_top_builddir"; then
2847        ac_top_srcdir=.
2848     else
2849        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2850     fi ;;
2851   [\\/]* | ?:[\\/]* )  # Absolute path.
2852     ac_srcdir=$srcdir$ac_dir_suffix;
2853     ac_top_srcdir=$srcdir ;;
2854   *) # Relative path.
2855     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2856     ac_top_srcdir=$ac_top_builddir$srcdir ;;
2857 esac
2858
2859 # Do not use `cd foo && pwd` to compute absolute paths, because
2860 # the directories may not exist.
2861 case `pwd` in
2862 .) ac_abs_builddir="$ac_dir";;
2863 *)
2864   case "$ac_dir" in
2865   .) ac_abs_builddir=`pwd`;;
2866   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2867   *) ac_abs_builddir=`pwd`/"$ac_dir";;
2868   esac;;
2869 esac
2870 case $ac_abs_builddir in
2871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
2872 *)
2873   case ${ac_top_builddir}. in
2874   .) ac_abs_top_builddir=$ac_abs_builddir;;
2875   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2876   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2877   esac;;
2878 esac
2879 case $ac_abs_builddir in
2880 .) ac_abs_srcdir=$ac_srcdir;;
2881 *)
2882   case $ac_srcdir in
2883   .) ac_abs_srcdir=$ac_abs_builddir;;
2884   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2885   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2886   esac;;
2887 esac
2888 case $ac_abs_builddir in
2889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
2890 *)
2891   case $ac_top_srcdir in
2892   .) ac_abs_top_srcdir=$ac_abs_builddir;;
2893   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2894   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2895   esac;;
2896 esac
2897
2898
2899   case $INSTALL in
2900   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2901   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2902   esac
2903
2904   # Let's still pretend it is `configure' which instantiates (i.e., don't
2905   # use $as_me), people would be surprised to read:
2906   #    /* config.h.  Generated by config.status.  */
2907   if test x"$ac_file" = x-; then
2908     configure_input=
2909   else
2910     configure_input="$ac_file.  "
2911   fi
2912   configure_input=$configure_input"Generated from `echo $ac_file_in |
2913                                      sed 's,.*/,,'` by configure."
2914
2915   # First look for the input files in the build tree, otherwise in the
2916   # src tree.
2917   ac_file_inputs=`IFS=:
2918     for f in $ac_file_in; do
2919       case $f in
2920       -) echo $tmp/stdin ;;
2921       [\\/$]*)
2922          # Absolute (can't be DOS-style, as IFS=:)
2923          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2924 echo "$as_me: error: cannot find input file: $f" >&2;}
2925    { (exit 1); exit 1; }; }
2926          echo "$f";;
2927       *) # Relative
2928          if test -f "$f"; then
2929            # Build tree
2930            echo "$f"
2931          elif test -f "$srcdir/$f"; then
2932            # Source tree
2933            echo "$srcdir/$f"
2934          else
2935            # /dev/null tree
2936            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2937 echo "$as_me: error: cannot find input file: $f" >&2;}
2938    { (exit 1); exit 1; }; }
2939          fi;;
2940       esac
2941     done` || { (exit 1); exit 1; }
2942
2943   if test x"$ac_file" != x-; then
2944     { echo "$as_me:$LINENO: creating $ac_file" >&5
2945 echo "$as_me: creating $ac_file" >&6;}
2946     rm -f "$ac_file"
2947   fi
2948 _ACEOF
2949 cat >>$CONFIG_STATUS <<_ACEOF
2950   sed "$ac_vpsub
2951 $extrasub
2952 _ACEOF
2953 cat >>$CONFIG_STATUS <<\_ACEOF
2954 :t
2955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2956 s,@configure_input@,$configure_input,;t t
2957 s,@srcdir@,$ac_srcdir,;t t
2958 s,@abs_srcdir@,$ac_abs_srcdir,;t t
2959 s,@top_srcdir@,$ac_top_srcdir,;t t
2960 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2961 s,@builddir@,$ac_builddir,;t t
2962 s,@abs_builddir@,$ac_abs_builddir,;t t
2963 s,@top_builddir@,$ac_top_builddir,;t t
2964 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2965 s,@INSTALL@,$ac_INSTALL,;t t
2966 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2967   rm -f $tmp/stdin
2968   if test x"$ac_file" != x-; then
2969     mv $tmp/out $ac_file
2970   else
2971     cat $tmp/out
2972     rm -f $tmp/out
2973   fi
2974
2975 done
2976 _ACEOF
2977
2978 cat >>$CONFIG_STATUS <<\_ACEOF
2979
2980 { (exit 0); exit 0; }
2981 _ACEOF
2982 chmod +x $CONFIG_STATUS
2983 ac_clean_files=$ac_clean_files_save
2984
2985
2986 # configure is writing to config.log, and then calls config.status.
2987 # config.status does its own redirection, appending to config.log.
2988 # Unfortunately, on DOS this fails, as config.log is still kept open
2989 # by configure, so config.status won't be able to write to it; its
2990 # output is simply discarded.  So we exec the FD to /dev/null,
2991 # effectively closing config.log, so it can be properly (re)opened and
2992 # appended to by config.status.  When coming back to configure, we
2993 # need to make the FD available again.
2994 if test "$no_create" != yes; then
2995   ac_cs_success=:
2996   ac_config_status_args=
2997   test "$silent" = yes &&
2998     ac_config_status_args="$ac_config_status_args --quiet"
2999   exec 5>/dev/null
3000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3001   exec 5>>config.log
3002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3003   # would make configure fail if this is the last instruction.
3004   $ac_cs_success || { (exit 1); exit 1; }
3005 fi
3006