1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for torrus 2.09.
4#
5# Report bugs to <ssinyagin@users.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201  if (eval "$as_required") 2>/dev/null; then :
202  as_have_required=yes
203else
204  as_have_required=no
205fi
206  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  test -z "$as_dir" && as_dir=.
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir/$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  CONFIG_SHELL=$as_shell as_have_required=yes
224		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239      if test "x$CONFIG_SHELL" != x; then :
240  export CONFIG_SHELL
241             # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261    if test x$as_have_required = xno; then :
262  $as_echo "$0: This script requires a shell more modern than all"
263  $as_echo "$0: the shells that I found on your system."
264  if test x${ZSH_VERSION+set} = xset ; then
265    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267  else
268    $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: ssinyagin@users.sourceforge.net about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
273  fi
274  exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292  { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301  return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309  set +e
310  as_fn_set_status $1
311  exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320  case $as_dir in #(
321  -*) as_dir=./$as_dir;;
322  esac
323  test -d "$as_dir" || eval $as_mkdir_p || {
324    as_dirs=
325    while :; do
326      case $as_dir in #(
327      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328      *) as_qdir=$as_dir;;
329      esac
330      as_dirs="'$as_qdir' $as_dirs"
331      as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333	 X"$as_dir" : 'X\(//\)[^/]' \| \
334	 X"$as_dir" : 'X\(//\)$' \| \
335	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338	    s//\1/
339	    q
340	  }
341	  /^X\(\/\/\)[^/].*/{
342	    s//\1/
343	    q
344	  }
345	  /^X\(\/\/\)$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\).*/{
350	    s//\1/
351	    q
352	  }
353	  s/.*/./; q'`
354      test -d "$as_dir" && break
355    done
356    test -z "$as_dirs" || eval "mkdir $as_dirs"
357  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367  test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376  eval 'as_fn_append ()
377  {
378    eval $1+=\$2
379  }'
380else
381  as_fn_append ()
382  {
383    eval $1=\$$1\$2
384  }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393  eval 'as_fn_arith ()
394  {
395    as_val=$(( $* ))
396  }'
397else
398  as_fn_arith ()
399  {
400    as_val=`expr "$@" || test $? -eq 1`
401  }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412  as_status=$1; test $as_status -eq 0 && as_status=1
413  if test "$4"; then
414    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416  fi
417  $as_echo "$as_me: error: $2" >&2
418  as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423  as_expr=expr
424else
425  as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429  as_basename=basename
430else
431  as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435  as_dirname=dirname
436else
437  as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442	 X"$0" : 'X\(//\)$' \| \
443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445    sed '/^.*\/\([^/][^/]*\)\/*$/{
446	    s//\1/
447	    q
448	  }
449	  /^X\/\(\/\/\)$/{
450	    s//\1/
451	    q
452	  }
453	  /^X\/\(\/\).*/{
454	    s//\1/
455	    q
456	  }
457	  s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467  as_lineno_1=$LINENO as_lineno_1a=$LINENO
468  as_lineno_2=$LINENO as_lineno_2a=$LINENO
469  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472  sed -n '
473    p
474    /[$]LINENO/=
475  ' <$as_myself |
476    sed '
477      s/[$]LINENO.*/&-/
478      t lineno
479      b
480      :lineno
481      N
482      :loop
483      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484      t loop
485      s/-\n.*//
486    ' >$as_me.lineno &&
487  chmod +x "$as_me.lineno" ||
488    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491  # already done that, so ensure we don't try to do so again and fall
492  # in an infinite loop.  This has already happened in practice.
493  _as_can_reexec=no; export _as_can_reexec
494  # Don't try to exec as it changes $[0], causing all sort of problems
495  # (the dirname of $[0] is not the place where we might find the
496  # original and so on.  Autoconf is especially sensitive to this).
497  . "./$as_me.lineno"
498  # Exit status is that of the last command.
499  exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505  case `echo 'xy\c'` in
506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507  xy)  ECHO_C='\c';;
508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509       ECHO_T='	';;
510  esac;;
511*)
512  ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517  rm -f conf$$.dir/conf$$.file
518else
519  rm -f conf$$.dir
520  mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523  if ln -s conf$$.file conf$$ 2>/dev/null; then
524    as_ln_s='ln -s'
525    # ... but there are two gotchas:
526    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528    # In both cases, we have to default to `cp -pR'.
529    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530      as_ln_s='cp -pR'
531  elif ln conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s=ln
533  else
534    as_ln_s='cp -pR'
535  fi
536else
537  as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543  as_mkdir_p='mkdir -p "$as_dir"'
544else
545  test -d ./-p && rmdir ./-p
546  as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='torrus'
581PACKAGE_TARNAME='torrus'
582PACKAGE_VERSION='2.09'
583PACKAGE_STRING='torrus 2.09'
584PACKAGE_BUGREPORT='ssinyagin@users.sourceforge.net'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589defrrddir
590mansec_misc
591mansec_usercmd
592wrapperdir
593sesstordir
594seslockdir
595reportsdir
596dbhome
597cachedir
598varprefix
599piddir
600logdir
601sitexmldir
602tmpluserdir
603siteconfdir
604sitedir
605distxmldir
606tmpldir
607webscriptsdir
608webplaindir
609supdir
610scriptsdir
611plugwrapperdir
612plugdevdisccfgdir
613plugtorruscfgdir
614pluginsdir
615perllibdir
616exmpdir
617pkgdocdir
618cfgdefdir
619pkgbindir
620pkghome
621enable_varperm
622var_mode
623var_group
624var_user
625torrus_user
626perlithreads
627perllibdirs
628PERLINC
629enable_pkgonly
630POD2MAN_PRESENT_FALSE
631POD2MAN_PRESENT_TRUE
632POD2MAN
633POD2TEXT_PRESENT_FALSE
634POD2TEXT_PRESENT_TRUE
635POD2TEXT
636SLEEP
637RM
638FIND
639SED
640KILL
641SU
642PERLCRITIC
643PERL
644am__untar
645am__tar
646AMTAR
647am__leading_dot
648SET_MAKE
649AWK
650mkdir_p
651MKDIR_P
652INSTALL_STRIP_PROGRAM
653STRIP
654install_sh
655MAKEINFO
656AUTOHEADER
657AUTOMAKE
658AUTOCONF
659ACLOCAL
660VERSION
661PACKAGE
662CYGPATH_W
663am__isrc
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675target_alias
676host_alias
677build_alias
678LIBS
679ECHO_T
680ECHO_N
681ECHO_C
682DEFS
683mandir
684localedir
685libdir
686psdir
687pdfdir
688dvidir
689htmldir
690infodir
691docdir
692oldincludedir
693includedir
694localstatedir
695sharedstatedir
696sysconfdir
697datadir
698datarootdir
699libexecdir
700sbindir
701bindir
702program_transform_name
703prefix
704exec_prefix
705PACKAGE_URL
706PACKAGE_BUGREPORT
707PACKAGE_STRING
708PACKAGE_VERSION
709PACKAGE_TARNAME
710PACKAGE_NAME
711PATH_SEPARATOR
712SHELL'
713ac_subst_files=''
714ac_user_opts='
715enable_option_checking
716enable_pkgonly
717enable_threads
718with_rrdtool
719enable_varperm
720'
721      ac_precious_vars='build_alias
722host_alias
723target_alias
724PERLINC
725torrus_user
726var_user
727var_group
728var_mode
729pkghome
730pkgbindir
731cfgdefdir
732pkgdocdir
733exmpdir
734perllibdir
735pluginsdir
736plugtorruscfgdir
737plugdevdisccfgdir
738plugwrapperdir
739scriptsdir
740supdir
741webplaindir
742webscriptsdir
743tmpldir
744distxmldir
745sitedir
746siteconfdir
747tmpluserdir
748sitexmldir
749logdir
750piddir
751varprefix
752cachedir
753dbhome
754reportsdir
755seslockdir
756sesstordir
757wrapperdir
758mansec_usercmd
759mansec_misc
760defrrddir'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
815  # If the previous option needs an argument, assign it.
816  if test -n "$ac_prev"; then
817    eval $ac_prev=\$ac_option
818    ac_prev=
819    continue
820  fi
821
822  case $ac_option in
823  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824  *=)   ac_optarg= ;;
825  *)    ac_optarg=yes ;;
826  esac
827
828  # Accept the important Cygnus configure options, so we can diagnose typos.
829
830  case $ac_dashdash$ac_option in
831  --)
832    ac_dashdash=yes ;;
833
834  -bindir | --bindir | --bindi | --bind | --bin | --bi)
835    ac_prev=bindir ;;
836  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837    bindir=$ac_optarg ;;
838
839  -build | --build | --buil | --bui | --bu)
840    ac_prev=build_alias ;;
841  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842    build_alias=$ac_optarg ;;
843
844  -cache-file | --cache-file | --cache-fil | --cache-fi \
845  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846    ac_prev=cache_file ;;
847  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849    cache_file=$ac_optarg ;;
850
851  --config-cache | -C)
852    cache_file=config.cache ;;
853
854  -datadir | --datadir | --datadi | --datad)
855    ac_prev=datadir ;;
856  -datadir=* | --datadir=* | --datadi=* | --datad=*)
857    datadir=$ac_optarg ;;
858
859  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860  | --dataroo | --dataro | --datar)
861    ac_prev=datarootdir ;;
862  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864    datarootdir=$ac_optarg ;;
865
866  -disable-* | --disable-*)
867    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868    # Reject names that are not valid shell variable names.
869    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870      as_fn_error $? "invalid feature name: $ac_useropt"
871    ac_useropt_orig=$ac_useropt
872    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873    case $ac_user_opts in
874      *"
875"enable_$ac_useropt"
876"*) ;;
877      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878	 ac_unrecognized_sep=', ';;
879    esac
880    eval enable_$ac_useropt=no ;;
881
882  -docdir | --docdir | --docdi | --doc | --do)
883    ac_prev=docdir ;;
884  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885    docdir=$ac_optarg ;;
886
887  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888    ac_prev=dvidir ;;
889  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890    dvidir=$ac_optarg ;;
891
892  -enable-* | --enable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=\$ac_optarg ;;
907
908  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910  | --exec | --exe | --ex)
911    ac_prev=exec_prefix ;;
912  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914  | --exec=* | --exe=* | --ex=*)
915    exec_prefix=$ac_optarg ;;
916
917  -gas | --gas | --ga | --g)
918    # Obsolete; use --with-gas.
919    with_gas=yes ;;
920
921  -help | --help | --hel | --he | -h)
922    ac_init_help=long ;;
923  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924    ac_init_help=recursive ;;
925  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926    ac_init_help=short ;;
927
928  -host | --host | --hos | --ho)
929    ac_prev=host_alias ;;
930  -host=* | --host=* | --hos=* | --ho=*)
931    host_alias=$ac_optarg ;;
932
933  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934    ac_prev=htmldir ;;
935  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936  | --ht=*)
937    htmldir=$ac_optarg ;;
938
939  -includedir | --includedir | --includedi | --included | --include \
940  | --includ | --inclu | --incl | --inc)
941    ac_prev=includedir ;;
942  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943  | --includ=* | --inclu=* | --incl=* | --inc=*)
944    includedir=$ac_optarg ;;
945
946  -infodir | --infodir | --infodi | --infod | --info | --inf)
947    ac_prev=infodir ;;
948  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949    infodir=$ac_optarg ;;
950
951  -libdir | --libdir | --libdi | --libd)
952    ac_prev=libdir ;;
953  -libdir=* | --libdir=* | --libdi=* | --libd=*)
954    libdir=$ac_optarg ;;
955
956  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957  | --libexe | --libex | --libe)
958    ac_prev=libexecdir ;;
959  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960  | --libexe=* | --libex=* | --libe=*)
961    libexecdir=$ac_optarg ;;
962
963  -localedir | --localedir | --localedi | --localed | --locale)
964    ac_prev=localedir ;;
965  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966    localedir=$ac_optarg ;;
967
968  -localstatedir | --localstatedir | --localstatedi | --localstated \
969  | --localstate | --localstat | --localsta | --localst | --locals)
970    ac_prev=localstatedir ;;
971  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973    localstatedir=$ac_optarg ;;
974
975  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976    ac_prev=mandir ;;
977  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978    mandir=$ac_optarg ;;
979
980  -nfp | --nfp | --nf)
981    # Obsolete; use --without-fp.
982    with_fp=no ;;
983
984  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985  | --no-cr | --no-c | -n)
986    no_create=yes ;;
987
988  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990    no_recursion=yes ;;
991
992  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994  | --oldin | --oldi | --old | --ol | --o)
995    ac_prev=oldincludedir ;;
996  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999    oldincludedir=$ac_optarg ;;
1000
1001  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002    ac_prev=prefix ;;
1003  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004    prefix=$ac_optarg ;;
1005
1006  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007  | --program-pre | --program-pr | --program-p)
1008    ac_prev=program_prefix ;;
1009  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011    program_prefix=$ac_optarg ;;
1012
1013  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014  | --program-suf | --program-su | --program-s)
1015    ac_prev=program_suffix ;;
1016  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018    program_suffix=$ac_optarg ;;
1019
1020  -program-transform-name | --program-transform-name \
1021  | --program-transform-nam | --program-transform-na \
1022  | --program-transform-n | --program-transform- \
1023  | --program-transform | --program-transfor \
1024  | --program-transfo | --program-transf \
1025  | --program-trans | --program-tran \
1026  | --progr-tra | --program-tr | --program-t)
1027    ac_prev=program_transform_name ;;
1028  -program-transform-name=* | --program-transform-name=* \
1029  | --program-transform-nam=* | --program-transform-na=* \
1030  | --program-transform-n=* | --program-transform-=* \
1031  | --program-transform=* | --program-transfor=* \
1032  | --program-transfo=* | --program-transf=* \
1033  | --program-trans=* | --program-tran=* \
1034  | --progr-tra=* | --program-tr=* | --program-t=*)
1035    program_transform_name=$ac_optarg ;;
1036
1037  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038    ac_prev=pdfdir ;;
1039  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040    pdfdir=$ac_optarg ;;
1041
1042  -psdir | --psdir | --psdi | --psd | --ps)
1043    ac_prev=psdir ;;
1044  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045    psdir=$ac_optarg ;;
1046
1047  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048  | -silent | --silent | --silen | --sile | --sil)
1049    silent=yes ;;
1050
1051  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052    ac_prev=sbindir ;;
1053  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054  | --sbi=* | --sb=*)
1055    sbindir=$ac_optarg ;;
1056
1057  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059  | --sharedst | --shareds | --shared | --share | --shar \
1060  | --sha | --sh)
1061    ac_prev=sharedstatedir ;;
1062  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065  | --sha=* | --sh=*)
1066    sharedstatedir=$ac_optarg ;;
1067
1068  -site | --site | --sit)
1069    ac_prev=site ;;
1070  -site=* | --site=* | --sit=*)
1071    site=$ac_optarg ;;
1072
1073  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074    ac_prev=srcdir ;;
1075  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076    srcdir=$ac_optarg ;;
1077
1078  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079  | --syscon | --sysco | --sysc | --sys | --sy)
1080    ac_prev=sysconfdir ;;
1081  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083    sysconfdir=$ac_optarg ;;
1084
1085  -target | --target | --targe | --targ | --tar | --ta | --t)
1086    ac_prev=target_alias ;;
1087  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088    target_alias=$ac_optarg ;;
1089
1090  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091    verbose=yes ;;
1092
1093  -version | --version | --versio | --versi | --vers | -V)
1094    ac_init_version=: ;;
1095
1096  -with-* | --with-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid package name: $ac_useropt"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"with_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval with_$ac_useropt=\$ac_optarg ;;
1111
1112  -without-* | --without-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=no ;;
1127
1128  --x)
1129    # Obsolete; use --with-x.
1130    with_x=yes ;;
1131
1132  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133  | --x-incl | --x-inc | --x-in | --x-i)
1134    ac_prev=x_includes ;;
1135  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137    x_includes=$ac_optarg ;;
1138
1139  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141    ac_prev=x_libraries ;;
1142  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144    x_libraries=$ac_optarg ;;
1145
1146  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1147Try \`$0 --help' for more information"
1148    ;;
1149
1150  *=*)
1151    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152    # Reject names that are not valid shell variable names.
1153    case $ac_envvar in #(
1154      '' | [0-9]* | *[!_$as_cr_alnum]* )
1155      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156    esac
1157    eval $ac_envvar=\$ac_optarg
1158    export $ac_envvar ;;
1159
1160  *)
1161    # FIXME: should be removed in autoconf 3.0.
1162    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166    ;;
1167
1168  esac
1169done
1170
1171if test -n "$ac_prev"; then
1172  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173  as_fn_error $? "missing argument to $ac_option"
1174fi
1175
1176if test -n "$ac_unrecognized_opts"; then
1177  case $enable_option_checking in
1178    no) ;;
1179    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181  esac
1182fi
1183
1184# Check all directory arguments for consistency.
1185for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186		datadir sysconfdir sharedstatedir localstatedir includedir \
1187		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188		libdir localedir mandir
1189do
1190  eval ac_val=\$$ac_var
1191  # Remove trailing slashes.
1192  case $ac_val in
1193    */ )
1194      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195      eval $ac_var=\$ac_val;;
1196  esac
1197  # Be sure to have absolute directory names.
1198  case $ac_val in
1199    [\\/$]* | ?:[\\/]* )  continue;;
1200    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201  esac
1202  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203done
1204
1205# There might be people who depend on the old broken behavior: `$host'
1206# used to hold the argument of --host etc.
1207# FIXME: To remove some day.
1208build=$build_alias
1209host=$host_alias
1210target=$target_alias
1211
1212# FIXME: To remove some day.
1213if test "x$host_alias" != x; then
1214  if test "x$build_alias" = x; then
1215    cross_compiling=maybe
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  as_fn_error $? "working directory cannot be determined"
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232  as_fn_error $? "pwd does not report name of working directory"
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272fi
1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276	pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279  srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_env_${ac_var}_value=\$${ac_var}
1290  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
1293
1294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298  # Omit some internal or obsolete options to make the list less imposing.
1299  # This message is too long to be a string in the A/UX 3.1 sh.
1300  cat <<_ACEOF
1301\`configure' configures torrus 2.09 to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311  -h, --help              display this help and exit
1312      --help=short        display options specific to this package
1313      --help=recursive    display the short help of all the included packages
1314  -V, --version           display version information and exit
1315  -q, --quiet, --silent   do not print \`checking ...' messages
1316      --cache-file=FILE   cache test results in FILE [disabled]
1317  -C, --config-cache      alias for \`--cache-file=config.cache'
1318  -n, --no-create         do not create output files
1319      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321Installation directories:
1322  --prefix=PREFIX         install architecture-independent files in PREFIX
1323                          [$ac_default_prefix]
1324  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                          [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335  --bindir=DIR            user executables [EPREFIX/bin]
1336  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341  --libdir=DIR            object code libraries [EPREFIX/lib]
1342  --includedir=DIR        C header files [PREFIX/include]
1343  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349  --docdir=DIR            documentation root [DATAROOTDIR/doc/torrus]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370  case $ac_init_help in
1371     short | recursive ) echo "Configuration of torrus 2.09:";;
1372   esac
1373  cat <<\_ACEOF
1374
1375Optional Features:
1376  --disable-option-checking  ignore unrecognized --enable/--with options
1377  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379  --enable-pkgonly        Skip all checking
1380  --disable-threads       Disable Perl threads usage
1381  --disable-varperm       Disable db and cache access rights tuning
1382
1383Optional Packages:
1384  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386  --with-rrdtool=DIR      RRDTool location
1387
1388Some influential environment variables:
1389  PERLINC     [] Additional space-separated Perl library paths
1390  torrus_user [torrus] UID to run the daemons
1391  var_user    [TORRUS_USER] Owner of db and cache directories
1392  var_group   [torrus] Group of db and cache directories
1393  var_mode    [775] Mode of db and cache directories
1394  pkghome     [PREFIX/torrus] Place for Torrus static files
1395  pkgbindir   [PKGHOME/bin] Torrus executables
1396  cfgdefdir   [PKGHOME/conf_defaults] torrus-config.pl and others
1397  pkgdocdir   [PKGHOME/doc] Documentation files
1398  exmpdir     [PKGHOME/examples] Examples
1399  perllibdir  [PKGHOME/perllib] Torrus Perl libraries
1400  pluginsdir  [PKGHOME/plugins] Plugin configurations
1401  plugtorruscfgdir
1402              [PLUGINSDIR/torrus-config]
1403  plugdevdisccfgdir
1404              [PLUGINSDIR/devdiscover-config]
1405  plugwrapperdir
1406              [PLUGINSDIR/wrapper]
1407  scriptsdir  [PKGHOME/scripts] Script files
1408  supdir      [PKGHOME/sup] Supplementary files
1409  webplaindir [SUPDIR/webplain] Web interface plain files path
1410  webscriptsdir
1411              [SUPDIR/webscripts] Directory for optional web scripts
1412  tmpldir     [PKGHOME/templates] Template files
1413  distxmldir  [PKGHOME/xmlconfig] Distribution XML config files
1414  sitedir     [SYSCONFDIR/torrus] Site configuration files
1415  siteconfdir [SITEDIR/conf] Site configuration files
1416  tmpluserdir [SITEDIR/templates] User-defined Template files
1417  sitexmldir  [SITEDIR/xmlconfig] Site XML configs
1418  logdir      [/var/log/torrus] Log files
1419  piddir      [/var/run/torrus] PID files
1420  varprefix   [/var/torrus] Common prefix for runtime data
1421  cachedir    [VARPREFIX/cache] Renderer cache
1422  dbhome      [VARPREFIX/db] Berkeley DB files
1423  reportsdir  [VARPREFIX/reports] Reports output
1424  seslockdir  [VARPREFIX/session_data/lock] Web session locks
1425  sesstordir  [VARPREFIX/session_data/store] Web session storage
1426  wrapperdir  [BINDIR] CLI wrapper
1427  mansec_usercmd
1428              [1] User commands man section
1429  mansec_misc [7] Miscellaneous man section
1430  defrrddir   [/srv/torrus/collector_rrd] Default RRD storage path
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to <ssinyagin@users.sourceforge.net>.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441  # If there are subdirs, report their specific --help.
1442  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443    test -d "$ac_dir" ||
1444      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445      continue
1446    ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452  # A ".." for each directory in $ac_dir_suffix.
1453  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454  case $ac_top_builddir_sub in
1455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457  esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465  .)  # We are building in place.
1466    ac_srcdir=.
1467    ac_top_srcdir=$ac_top_builddir_sub
1468    ac_abs_top_srcdir=$ac_pwd ;;
1469  [\\/]* | ?:[\\/]* )  # Absolute name.
1470    ac_srcdir=$srcdir$ac_dir_suffix;
1471    ac_top_srcdir=$srcdir
1472    ac_abs_top_srcdir=$srcdir ;;
1473  *) # Relative name.
1474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480    cd "$ac_dir" || { ac_status=$?; continue; }
1481    # Check for guested configure.
1482    if test -f "$ac_srcdir/configure.gnu"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485    elif test -f "$ac_srcdir/configure"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure" --help=recursive
1488    else
1489      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490    fi || ac_status=$?
1491    cd "$ac_pwd" || { ac_status=$?; break; }
1492  done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497  cat <<\_ACEOF
1498torrus configure 2.09
1499generated by GNU Autoconf 2.69
1500
1501Copyright (C) 2012 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505  exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511cat >config.log <<_ACEOF
1512This file contains any messages produced by compilers while
1513running configure, to aid debugging if configure makes a mistake.
1514
1515It was created by torrus $as_me 2.09, which was
1516generated by GNU Autoconf 2.69.  Invocation command line was
1517
1518  $ $0 $@
1519
1520_ACEOF
1521exec 5>>config.log
1522{
1523cat <<_ASUNAME
1524## --------- ##
1525## Platform. ##
1526## --------- ##
1527
1528hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1529uname -m = `(uname -m) 2>/dev/null || echo unknown`
1530uname -r = `(uname -r) 2>/dev/null || echo unknown`
1531uname -s = `(uname -s) 2>/dev/null || echo unknown`
1532uname -v = `(uname -v) 2>/dev/null || echo unknown`
1533
1534/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1535/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1536
1537/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1538/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1539/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1540/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1541/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1542/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1543/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1544
1545_ASUNAME
1546
1547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548for as_dir in $PATH
1549do
1550  IFS=$as_save_IFS
1551  test -z "$as_dir" && as_dir=.
1552    $as_echo "PATH: $as_dir"
1553  done
1554IFS=$as_save_IFS
1555
1556} >&5
1557
1558cat >&5 <<_ACEOF
1559
1560
1561## ----------- ##
1562## Core tests. ##
1563## ----------- ##
1564
1565_ACEOF
1566
1567
1568# Keep a trace of the command line.
1569# Strip out --no-create and --no-recursion so they do not pile up.
1570# Strip out --silent because we don't want to record it for future runs.
1571# Also quote any args containing shell meta-characters.
1572# Make two passes to allow for proper duplicate-argument suppression.
1573ac_configure_args=
1574ac_configure_args0=
1575ac_configure_args1=
1576ac_must_keep_next=false
1577for ac_pass in 1 2
1578do
1579  for ac_arg
1580  do
1581    case $ac_arg in
1582    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1583    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1584    | -silent | --silent | --silen | --sile | --sil)
1585      continue ;;
1586    *\'*)
1587      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1588    esac
1589    case $ac_pass in
1590    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1591    2)
1592      as_fn_append ac_configure_args1 " '$ac_arg'"
1593      if test $ac_must_keep_next = true; then
1594	ac_must_keep_next=false # Got value, back to normal.
1595      else
1596	case $ac_arg in
1597	  *=* | --config-cache | -C | -disable-* | --disable-* \
1598	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1599	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1600	  | -with-* | --with-* | -without-* | --without-* | --x)
1601	    case "$ac_configure_args0 " in
1602	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1603	    esac
1604	    ;;
1605	  -* ) ac_must_keep_next=true ;;
1606	esac
1607      fi
1608      as_fn_append ac_configure_args " '$ac_arg'"
1609      ;;
1610    esac
1611  done
1612done
1613{ ac_configure_args0=; unset ac_configure_args0;}
1614{ ac_configure_args1=; unset ac_configure_args1;}
1615
1616# When interrupted or exit'd, cleanup temporary files, and complete
1617# config.log.  We remove comments because anyway the quotes in there
1618# would cause problems or look ugly.
1619# WARNING: Use '\'' to represent an apostrophe within the trap.
1620# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1621trap 'exit_status=$?
1622  # Save into config.log some information that might help in debugging.
1623  {
1624    echo
1625
1626    $as_echo "## ---------------- ##
1627## Cache variables. ##
1628## ---------------- ##"
1629    echo
1630    # The following way of writing the cache mishandles newlines in values,
1631(
1632  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1633    eval ac_val=\$$ac_var
1634    case $ac_val in #(
1635    *${as_nl}*)
1636      case $ac_var in #(
1637      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1638$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1639      esac
1640      case $ac_var in #(
1641      _ | IFS | as_nl) ;; #(
1642      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1643      *) { eval $ac_var=; unset $ac_var;} ;;
1644      esac ;;
1645    esac
1646  done
1647  (set) 2>&1 |
1648    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1649    *${as_nl}ac_space=\ *)
1650      sed -n \
1651	"s/'\''/'\''\\\\'\'''\''/g;
1652	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653      ;; #(
1654    *)
1655      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1656      ;;
1657    esac |
1658    sort
1659)
1660    echo
1661
1662    $as_echo "## ----------------- ##
1663## Output variables. ##
1664## ----------------- ##"
1665    echo
1666    for ac_var in $ac_subst_vars
1667    do
1668      eval ac_val=\$$ac_var
1669      case $ac_val in
1670      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671      esac
1672      $as_echo "$ac_var='\''$ac_val'\''"
1673    done | sort
1674    echo
1675
1676    if test -n "$ac_subst_files"; then
1677      $as_echo "## ------------------- ##
1678## File substitutions. ##
1679## ------------------- ##"
1680      echo
1681      for ac_var in $ac_subst_files
1682      do
1683	eval ac_val=\$$ac_var
1684	case $ac_val in
1685	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686	esac
1687	$as_echo "$ac_var='\''$ac_val'\''"
1688      done | sort
1689      echo
1690    fi
1691
1692    if test -s confdefs.h; then
1693      $as_echo "## ----------- ##
1694## confdefs.h. ##
1695## ----------- ##"
1696      echo
1697      cat confdefs.h
1698      echo
1699    fi
1700    test "$ac_signal" != 0 &&
1701      $as_echo "$as_me: caught signal $ac_signal"
1702    $as_echo "$as_me: exit $exit_status"
1703  } >&5
1704  rm -f core *.core core.conftest.* &&
1705    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1706    exit $exit_status
1707' 0
1708for ac_signal in 1 2 13 15; do
1709  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1710done
1711ac_signal=0
1712
1713# confdefs.h avoids OS command line length limits that DEFS can exceed.
1714rm -f -r conftest* confdefs.h
1715
1716$as_echo "/* confdefs.h */" > confdefs.h
1717
1718# Predefined preprocessor variables.
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_NAME "$PACKAGE_NAME"
1722_ACEOF
1723
1724cat >>confdefs.h <<_ACEOF
1725#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1726_ACEOF
1727
1728cat >>confdefs.h <<_ACEOF
1729#define PACKAGE_VERSION "$PACKAGE_VERSION"
1730_ACEOF
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE_STRING "$PACKAGE_STRING"
1734_ACEOF
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1738_ACEOF
1739
1740cat >>confdefs.h <<_ACEOF
1741#define PACKAGE_URL "$PACKAGE_URL"
1742_ACEOF
1743
1744
1745# Let the site file select an alternate cache file if it wants to.
1746# Prefer an explicitly selected file to automatically selected ones.
1747ac_site_file1=NONE
1748ac_site_file2=NONE
1749if test -n "$CONFIG_SITE"; then
1750  # We do not want a PATH search for config.site.
1751  case $CONFIG_SITE in #((
1752    -*)  ac_site_file1=./$CONFIG_SITE;;
1753    */*) ac_site_file1=$CONFIG_SITE;;
1754    *)   ac_site_file1=./$CONFIG_SITE;;
1755  esac
1756elif test "x$prefix" != xNONE; then
1757  ac_site_file1=$prefix/share/config.site
1758  ac_site_file2=$prefix/etc/config.site
1759else
1760  ac_site_file1=$ac_default_prefix/share/config.site
1761  ac_site_file2=$ac_default_prefix/etc/config.site
1762fi
1763for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1764do
1765  test "x$ac_site_file" = xNONE && continue
1766  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1767    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1768$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1769    sed 's/^/| /' "$ac_site_file" >&5
1770    . "$ac_site_file" \
1771      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1773as_fn_error $? "failed to load site script $ac_site_file
1774See \`config.log' for more details" "$LINENO" 5; }
1775  fi
1776done
1777
1778if test -r "$cache_file"; then
1779  # Some versions of bash will fail to source /dev/null (special files
1780  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1781  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1783$as_echo "$as_me: loading cache $cache_file" >&6;}
1784    case $cache_file in
1785      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1786      *)                      . "./$cache_file";;
1787    esac
1788  fi
1789else
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1791$as_echo "$as_me: creating cache $cache_file" >&6;}
1792  >$cache_file
1793fi
1794
1795# Check that the precious variables saved in the cache have kept the same
1796# value.
1797ac_cache_corrupted=false
1798for ac_var in $ac_precious_vars; do
1799  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1800  eval ac_new_set=\$ac_env_${ac_var}_set
1801  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1802  eval ac_new_val=\$ac_env_${ac_var}_value
1803  case $ac_old_set,$ac_new_set in
1804    set,)
1805      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1806$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1807      ac_cache_corrupted=: ;;
1808    ,set)
1809      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1810$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1811      ac_cache_corrupted=: ;;
1812    ,);;
1813    *)
1814      if test "x$ac_old_val" != "x$ac_new_val"; then
1815	# differences in whitespace do not lead to failure.
1816	ac_old_val_w=`echo x $ac_old_val`
1817	ac_new_val_w=`echo x $ac_new_val`
1818	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1819	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1820$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1821	  ac_cache_corrupted=:
1822	else
1823	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1824$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1825	  eval $ac_var=\$ac_old_val
1826	fi
1827	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1828$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1829	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1830$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1831      fi;;
1832  esac
1833  # Pass precious variables to config.status.
1834  if test "$ac_new_set" = set; then
1835    case $ac_new_val in
1836    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837    *) ac_arg=$ac_var=$ac_new_val ;;
1838    esac
1839    case " $ac_configure_args " in
1840      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1841      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1842    esac
1843  fi
1844done
1845if $ac_cache_corrupted; then
1846  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1849$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1851fi
1852## -------------------- ##
1853## Main body of script. ##
1854## -------------------- ##
1855
1856ac_ext=c
1857ac_cpp='$CPP $CPPFLAGS'
1858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861
1862
1863
1864ac_aux_dir=
1865for ac_dir in conftools "$srcdir"/conftools; do
1866  if test -f "$ac_dir/install-sh"; then
1867    ac_aux_dir=$ac_dir
1868    ac_install_sh="$ac_aux_dir/install-sh -c"
1869    break
1870  elif test -f "$ac_dir/install.sh"; then
1871    ac_aux_dir=$ac_dir
1872    ac_install_sh="$ac_aux_dir/install.sh -c"
1873    break
1874  elif test -f "$ac_dir/shtool"; then
1875    ac_aux_dir=$ac_dir
1876    ac_install_sh="$ac_aux_dir/shtool install -c"
1877    break
1878  fi
1879done
1880if test -z "$ac_aux_dir"; then
1881  as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
1882fi
1883
1884# These three variables are undocumented and unsupported,
1885# and are intended to be withdrawn in a future Autoconf release.
1886# They can cause serious problems if a builder's source tree is in a directory
1887# whose full name contains unusual characters.
1888ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1889ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1890ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1891
1892
1893# Make sure we can run config.sub.
1894$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1895  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1896
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1898$as_echo_n "checking build system type... " >&6; }
1899if ${ac_cv_build+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  ac_build_alias=$build_alias
1903test "x$ac_build_alias" = x &&
1904  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905test "x$ac_build_alias" = x &&
1906  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1907ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1908  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1909
1910fi
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1912$as_echo "$ac_cv_build" >&6; }
1913case $ac_cv_build in
1914*-*-*) ;;
1915*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1916esac
1917build=$ac_cv_build
1918ac_save_IFS=$IFS; IFS='-'
1919set x $ac_cv_build
1920shift
1921build_cpu=$1
1922build_vendor=$2
1923shift; shift
1924# Remember, the first character of IFS is used to create $*,
1925# except with old shells:
1926build_os=$*
1927IFS=$ac_save_IFS
1928case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1929
1930
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1932$as_echo_n "checking host system type... " >&6; }
1933if ${ac_cv_host+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  if test "x$host_alias" = x; then
1937  ac_cv_host=$ac_cv_build
1938else
1939  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1940    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1941fi
1942
1943fi
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1945$as_echo "$ac_cv_host" >&6; }
1946case $ac_cv_host in
1947*-*-*) ;;
1948*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1949esac
1950host=$ac_cv_host
1951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_host
1953shift
1954host_cpu=$1
1955host_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959host_os=$*
1960IFS=$ac_save_IFS
1961case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1962
1963
1964am__api_version='1.11'
1965
1966# Find a good install program.  We prefer a C program (faster),
1967# so one script is as good as another.  But avoid the broken or
1968# incompatible versions:
1969# SysV /etc/install, /usr/sbin/install
1970# SunOS /usr/etc/install
1971# IRIX /sbin/install
1972# AIX /bin/install
1973# AmigaOS /C/install, which installs bootblocks on floppy discs
1974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1975# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1977# OS/2's system install, which has a completely different semantic
1978# ./install, which can be erroneously created by make from ./install.sh.
1979# Reject install programs that cannot install multiple files.
1980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1981$as_echo_n "checking for a BSD-compatible install... " >&6; }
1982if test -z "$INSTALL"; then
1983if ${ac_cv_path_install+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985else
1986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991    # Account for people who put trailing slashes in PATH elements.
1992case $as_dir/ in #((
1993  ./ | .// | /[cC]/* | \
1994  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1996  /usr/ucb/* ) ;;
1997  *)
1998    # OSF1 and SCO ODT 3.0 have their own names for install.
1999    # Don't use installbsd from OSF since it installs stuff as root
2000    # by default.
2001    for ac_prog in ginstall scoinst install; do
2002      for ac_exec_ext in '' $ac_executable_extensions; do
2003	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2004	  if test $ac_prog = install &&
2005	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006	    # AIX install.  It has an incompatible calling convention.
2007	    :
2008	  elif test $ac_prog = install &&
2009	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010	    # program-specific install script used by HP pwplus--don't use.
2011	    :
2012	  else
2013	    rm -rf conftest.one conftest.two conftest.dir
2014	    echo one > conftest.one
2015	    echo two > conftest.two
2016	    mkdir conftest.dir
2017	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2018	      test -s conftest.one && test -s conftest.two &&
2019	      test -s conftest.dir/conftest.one &&
2020	      test -s conftest.dir/conftest.two
2021	    then
2022	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023	      break 3
2024	    fi
2025	  fi
2026	fi
2027      done
2028    done
2029    ;;
2030esac
2031
2032  done
2033IFS=$as_save_IFS
2034
2035rm -rf conftest.one conftest.two conftest.dir
2036
2037fi
2038  if test "${ac_cv_path_install+set}" = set; then
2039    INSTALL=$ac_cv_path_install
2040  else
2041    # As a last resort, use the slow shell script.  Don't cache a
2042    # value for INSTALL within a source directory, because that will
2043    # break other packages using the cache if that directory is
2044    # removed, or if the value is a relative name.
2045    INSTALL=$ac_install_sh
2046  fi
2047fi
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2049$as_echo "$INSTALL" >&6; }
2050
2051# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052# It thinks the first close brace ends the variable substitution.
2053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2054
2055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2056
2057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2058
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2060$as_echo_n "checking whether build environment is sane... " >&6; }
2061# Just in case
2062sleep 1
2063echo timestamp > conftest.file
2064# Reject unsafe characters in $srcdir or the absolute working directory
2065# name.  Accept space and tab only in the latter.
2066am_lf='
2067'
2068case `pwd` in
2069  *[\\\"\#\$\&\'\`$am_lf]*)
2070    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2071esac
2072case $srcdir in
2073  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2074    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2075esac
2076
2077# Do `set' in a subshell so we don't clobber the current shell's
2078# arguments.  Must try -L first in case configure is actually a
2079# symlink; some systems play weird games with the mod time of symlinks
2080# (eg FreeBSD returns the mod time of the symlink's containing
2081# directory).
2082if (
2083   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2084   if test "$*" = "X"; then
2085      # -L didn't work.
2086      set X `ls -t "$srcdir/configure" conftest.file`
2087   fi
2088   rm -f conftest.file
2089   if test "$*" != "X $srcdir/configure conftest.file" \
2090      && test "$*" != "X conftest.file $srcdir/configure"; then
2091
2092      # If neither matched, then we have a broken ls.  This can happen
2093      # if, for instance, CONFIG_SHELL is bash and it inherits a
2094      # broken ls alias from the environment.  This has actually
2095      # happened.  Such a system could not be considered "sane".
2096      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2097alias in your environment" "$LINENO" 5
2098   fi
2099
2100   test "$2" = conftest.file
2101   )
2102then
2103   # Ok.
2104   :
2105else
2106   as_fn_error $? "newly created file is older than distributed files!
2107Check your system clock" "$LINENO" 5
2108fi
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2110$as_echo "yes" >&6; }
2111test "$program_prefix" != NONE &&
2112  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2113# Use a double $ so make ignores it.
2114test "$program_suffix" != NONE &&
2115  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2116# Double any \ or $.
2117# By default was `s,x,x', remove it if useless.
2118ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2119program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2120
2121# expand $ac_aux_dir to an absolute path
2122am_aux_dir=`cd $ac_aux_dir && pwd`
2123
2124if test x"${MISSING+set}" != xset; then
2125  case $am_aux_dir in
2126  *\ * | *\	*)
2127    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2128  *)
2129    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2130  esac
2131fi
2132# Use eval to expand $SHELL
2133if eval "$MISSING --run true"; then
2134  am_missing_run="$MISSING --run "
2135else
2136  am_missing_run=
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2138$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2139fi
2140
2141if test x"${install_sh}" != xset; then
2142  case $am_aux_dir in
2143  *\ * | *\	*)
2144    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2145  *)
2146    install_sh="\${SHELL} $am_aux_dir/install-sh"
2147  esac
2148fi
2149
2150# Installed binaries are usually stripped using `strip' when the user
2151# run `make install-strip'.  However `strip' might not be the right
2152# tool to use in cross-compilation environments, therefore Automake
2153# will honor the `STRIP' environment variable to overrule this program.
2154if test "$cross_compiling" != no; then
2155  if test -n "$ac_tool_prefix"; then
2156  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2157set dummy ${ac_tool_prefix}strip; ac_word=$2
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2159$as_echo_n "checking for $ac_word... " >&6; }
2160if ${ac_cv_prog_STRIP+:} false; then :
2161  $as_echo_n "(cached) " >&6
2162else
2163  if test -n "$STRIP"; then
2164  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171    for ac_exec_ext in '' $ac_executable_extensions; do
2172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2175    break 2
2176  fi
2177done
2178  done
2179IFS=$as_save_IFS
2180
2181fi
2182fi
2183STRIP=$ac_cv_prog_STRIP
2184if test -n "$STRIP"; then
2185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2186$as_echo "$STRIP" >&6; }
2187else
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2189$as_echo "no" >&6; }
2190fi
2191
2192
2193fi
2194if test -z "$ac_cv_prog_STRIP"; then
2195  ac_ct_STRIP=$STRIP
2196  # Extract the first word of "strip", so it can be a program name with args.
2197set dummy strip; ac_word=$2
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2199$as_echo_n "checking for $ac_word... " >&6; }
2200if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  if test -n "$ac_ct_STRIP"; then
2204  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2205else
2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209  IFS=$as_save_IFS
2210  test -z "$as_dir" && as_dir=.
2211    for ac_exec_ext in '' $ac_executable_extensions; do
2212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213    ac_cv_prog_ac_ct_STRIP="strip"
2214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2215    break 2
2216  fi
2217done
2218  done
2219IFS=$as_save_IFS
2220
2221fi
2222fi
2223ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2224if test -n "$ac_ct_STRIP"; then
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2226$as_echo "$ac_ct_STRIP" >&6; }
2227else
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2229$as_echo "no" >&6; }
2230fi
2231
2232  if test "x$ac_ct_STRIP" = x; then
2233    STRIP=":"
2234  else
2235    case $cross_compiling:$ac_tool_warned in
2236yes:)
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2239ac_tool_warned=yes ;;
2240esac
2241    STRIP=$ac_ct_STRIP
2242  fi
2243else
2244  STRIP="$ac_cv_prog_STRIP"
2245fi
2246
2247fi
2248INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2249
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2251$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2252if test -z "$MKDIR_P"; then
2253  if ${ac_cv_path_mkdir+:} false; then :
2254  $as_echo_n "(cached) " >&6
2255else
2256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2258do
2259  IFS=$as_save_IFS
2260  test -z "$as_dir" && as_dir=.
2261    for ac_prog in mkdir gmkdir; do
2262	 for ac_exec_ext in '' $ac_executable_extensions; do
2263	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2264	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2265	     'mkdir (GNU coreutils) '* | \
2266	     'mkdir (coreutils) '* | \
2267	     'mkdir (fileutils) '4.1*)
2268	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2269	       break 3;;
2270	   esac
2271	 done
2272       done
2273  done
2274IFS=$as_save_IFS
2275
2276fi
2277
2278  test -d ./--version && rmdir ./--version
2279  if test "${ac_cv_path_mkdir+set}" = set; then
2280    MKDIR_P="$ac_cv_path_mkdir -p"
2281  else
2282    # As a last resort, use the slow shell script.  Don't cache a
2283    # value for MKDIR_P within a source directory, because that will
2284    # break other packages using the cache if that directory is
2285    # removed, or if the value is a relative name.
2286    MKDIR_P="$ac_install_sh -d"
2287  fi
2288fi
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2290$as_echo "$MKDIR_P" >&6; }
2291
2292mkdir_p="$MKDIR_P"
2293case $mkdir_p in
2294  [\\/$]* | ?:[\\/]*) ;;
2295  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2296esac
2297
2298for ac_prog in gawk mawk nawk awk
2299do
2300  # Extract the first word of "$ac_prog", so it can be a program name with args.
2301set dummy $ac_prog; ac_word=$2
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303$as_echo_n "checking for $ac_word... " >&6; }
2304if ${ac_cv_prog_AWK+:} false; then :
2305  $as_echo_n "(cached) " >&6
2306else
2307  if test -n "$AWK"; then
2308  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313  IFS=$as_save_IFS
2314  test -z "$as_dir" && as_dir=.
2315    for ac_exec_ext in '' $ac_executable_extensions; do
2316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317    ac_cv_prog_AWK="$ac_prog"
2318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319    break 2
2320  fi
2321done
2322  done
2323IFS=$as_save_IFS
2324
2325fi
2326fi
2327AWK=$ac_cv_prog_AWK
2328if test -n "$AWK"; then
2329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2330$as_echo "$AWK" >&6; }
2331else
2332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333$as_echo "no" >&6; }
2334fi
2335
2336
2337  test -n "$AWK" && break
2338done
2339
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2342set x ${MAKE-make}
2343ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2344if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2345  $as_echo_n "(cached) " >&6
2346else
2347  cat >conftest.make <<\_ACEOF
2348SHELL = /bin/sh
2349all:
2350	@echo '@@@%%%=$(MAKE)=@@@%%%'
2351_ACEOF
2352# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2353case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354  *@@@%%%=?*=@@@%%%*)
2355    eval ac_cv_prog_make_${ac_make}_set=yes;;
2356  *)
2357    eval ac_cv_prog_make_${ac_make}_set=no;;
2358esac
2359rm -f conftest.make
2360fi
2361if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363$as_echo "yes" >&6; }
2364  SET_MAKE=
2365else
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367$as_echo "no" >&6; }
2368  SET_MAKE="MAKE=${MAKE-make}"
2369fi
2370
2371rm -rf .tst 2>/dev/null
2372mkdir .tst 2>/dev/null
2373if test -d .tst; then
2374  am__leading_dot=.
2375else
2376  am__leading_dot=_
2377fi
2378rmdir .tst 2>/dev/null
2379
2380if test "`cd $srcdir && pwd`" != "`pwd`"; then
2381  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2382  # is not polluted with repeated "-I."
2383  am__isrc=' -I$(srcdir)'
2384  # test to see if srcdir already configured
2385  if test -f $srcdir/config.status; then
2386    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2387  fi
2388fi
2389
2390# test whether we have cygpath
2391if test -z "$CYGPATH_W"; then
2392  if (cygpath --version) >/dev/null 2>/dev/null; then
2393    CYGPATH_W='cygpath -w'
2394  else
2395    CYGPATH_W=echo
2396  fi
2397fi
2398
2399
2400# Define the identity of the package.
2401 PACKAGE='torrus'
2402 VERSION='2.09'
2403
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE "$PACKAGE"
2407_ACEOF
2408
2409
2410cat >>confdefs.h <<_ACEOF
2411#define VERSION "$VERSION"
2412_ACEOF
2413
2414# Some tools Automake needs.
2415
2416ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417
2418
2419AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420
2421
2422AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423
2424
2425AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426
2427
2428MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2429
2430# We need awk for the "check" target.  The system "awk" is bad on
2431# some platforms.
2432# Always define AMTAR for backward compatibility.  Yes, it's still used
2433# in the wild :-(  We should find a proper way to deprecate it ...
2434AMTAR='$${TAR-tar}'
2435
2436am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2437
2438
2439
2440
2441
2442
2443# Extract the first word of "perl", so it can be a program name with args.
2444set dummy perl; ac_word=$2
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if ${ac_cv_path_PERL+:} false; then :
2448  $as_echo_n "(cached) " >&6
2449else
2450  case $PERL in
2451  [\\/]* | ?:[\\/]*)
2452  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2453  ;;
2454  *)
2455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458  IFS=$as_save_IFS
2459  test -z "$as_dir" && as_dir=.
2460    for ac_exec_ext in '' $ac_executable_extensions; do
2461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464    break 2
2465  fi
2466done
2467  done
2468IFS=$as_save_IFS
2469
2470  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2471  ;;
2472esac
2473fi
2474PERL=$ac_cv_path_PERL
2475if test -n "$PERL"; then
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2477$as_echo "$PERL" >&6; }
2478else
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480$as_echo "no" >&6; }
2481fi
2482
2483
2484# Extract the first word of "perlcritic", so it can be a program name with args.
2485set dummy perlcritic; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if ${ac_cv_path_PERLCRITIC+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  case $PERLCRITIC in
2492  [\\/]* | ?:[\\/]*)
2493  ac_cv_path_PERLCRITIC="$PERLCRITIC" # Let the user override the test with a path.
2494  ;;
2495  *)
2496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501    for ac_exec_ext in '' $ac_executable_extensions; do
2502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503    ac_cv_path_PERLCRITIC="$as_dir/$ac_word$ac_exec_ext"
2504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508  done
2509IFS=$as_save_IFS
2510
2511  test -z "$ac_cv_path_PERLCRITIC" && ac_cv_path_PERLCRITIC="no"
2512  ;;
2513esac
2514fi
2515PERLCRITIC=$ac_cv_path_PERLCRITIC
2516if test -n "$PERLCRITIC"; then
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLCRITIC" >&5
2518$as_echo "$PERLCRITIC" >&6; }
2519else
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521$as_echo "no" >&6; }
2522fi
2523
2524
2525
2526# Need this for init.torrus
2527# Extract the first word of "su", so it can be a program name with args.
2528set dummy su; ac_word=$2
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if ${ac_cv_path_SU+:} false; then :
2532  $as_echo_n "(cached) " >&6
2533else
2534  case $SU in
2535  [\\/]* | ?:[\\/]*)
2536  ac_cv_path_SU="$SU" # Let the user override the test with a path.
2537  ;;
2538  *)
2539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546    ac_cv_path_SU="$as_dir/$ac_word$ac_exec_ext"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554  test -z "$ac_cv_path_SU" && ac_cv_path_SU="no"
2555  ;;
2556esac
2557fi
2558SU=$ac_cv_path_SU
2559if test -n "$SU"; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SU" >&5
2561$as_echo "$SU" >&6; }
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568# Extract the first word of "kill", so it can be a program name with args.
2569set dummy kill; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_path_KILL+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  case $KILL in
2576  [\\/]* | ?:[\\/]*)
2577  ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
2578  ;;
2579  *)
2580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585    for ac_exec_ext in '' $ac_executable_extensions; do
2586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587    ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
2588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592  done
2593IFS=$as_save_IFS
2594
2595  test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="no"
2596  ;;
2597esac
2598fi
2599KILL=$ac_cv_path_KILL
2600if test -n "$KILL"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
2602$as_echo "$KILL" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609# Extract the first word of "sed", so it can be a program name with args.
2610set dummy sed; ac_word=$2
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
2613if ${ac_cv_path_SED+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  case $SED in
2617  [\\/]* | ?:[\\/]*)
2618  ac_cv_path_SED="$SED" # Let the user override the test with a path.
2619  ;;
2620  *)
2621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_exec_ext in '' $ac_executable_extensions; do
2627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633  done
2634IFS=$as_save_IFS
2635
2636  test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
2637  ;;
2638esac
2639fi
2640SED=$ac_cv_path_SED
2641if test -n "$SED"; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
2643$as_echo "$SED" >&6; }
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650# Extract the first word of "find", so it can be a program name with args.
2651set dummy find; ac_word=$2
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
2654if ${ac_cv_path_FIND+:} false; then :
2655  $as_echo_n "(cached) " >&6
2656else
2657  case $FIND in
2658  [\\/]* | ?:[\\/]*)
2659  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2660  ;;
2661  *)
2662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667    for ac_exec_ext in '' $ac_executable_extensions; do
2668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
2670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671    break 2
2672  fi
2673done
2674  done
2675IFS=$as_save_IFS
2676
2677  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="no"
2678  ;;
2679esac
2680fi
2681FIND=$ac_cv_path_FIND
2682if test -n "$FIND"; then
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
2684$as_echo "$FIND" >&6; }
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
2689
2690
2691# Extract the first word of "rm", so it can be a program name with args.
2692set dummy rm; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_path_RM+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  case $RM in
2699  [\\/]* | ?:[\\/]*)
2700  ac_cv_path_RM="$RM" # Let the user override the test with a path.
2701  ;;
2702  *)
2703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708    for ac_exec_ext in '' $ac_executable_extensions; do
2709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715  done
2716IFS=$as_save_IFS
2717
2718  test -z "$ac_cv_path_RM" && ac_cv_path_RM="no"
2719  ;;
2720esac
2721fi
2722RM=$ac_cv_path_RM
2723if test -n "$RM"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2725$as_echo "$RM" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732# Extract the first word of "sleep", so it can be a program name with args.
2733set dummy sleep; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if ${ac_cv_path_SLEEP+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  case $SLEEP in
2740  [\\/]* | ?:[\\/]*)
2741  ac_cv_path_SLEEP="$SLEEP" # Let the user override the test with a path.
2742  ;;
2743  *)
2744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751    ac_cv_path_SLEEP="$as_dir/$ac_word$ac_exec_ext"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759  test -z "$ac_cv_path_SLEEP" && ac_cv_path_SLEEP="no"
2760  ;;
2761esac
2762fi
2763SLEEP=$ac_cv_path_SLEEP
2764if test -n "$SLEEP"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SLEEP" >&5
2766$as_echo "$SLEEP" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773
2774
2775# This will generate doc pages from POD sources
2776# Extract the first word of "pod2text", so it can be a program name with args.
2777set dummy pod2text; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_path_POD2TEXT+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  case $POD2TEXT in
2784  [\\/]* | ?:[\\/]*)
2785  ac_cv_path_POD2TEXT="$POD2TEXT" # Let the user override the test with a path.
2786  ;;
2787  *)
2788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793    for ac_exec_ext in '' $ac_executable_extensions; do
2794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795    ac_cv_path_POD2TEXT="$as_dir/$ac_word$ac_exec_ext"
2796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800  done
2801IFS=$as_save_IFS
2802
2803  test -z "$ac_cv_path_POD2TEXT" && ac_cv_path_POD2TEXT="no"
2804  ;;
2805esac
2806fi
2807POD2TEXT=$ac_cv_path_POD2TEXT
2808if test -n "$POD2TEXT"; then
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2TEXT" >&5
2810$as_echo "$POD2TEXT" >&6; }
2811else
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
2815
2816
2817 if test "$POD2TEXT" != no; then
2818  POD2TEXT_PRESENT_TRUE=
2819  POD2TEXT_PRESENT_FALSE='#'
2820else
2821  POD2TEXT_PRESENT_TRUE='#'
2822  POD2TEXT_PRESENT_FALSE=
2823fi
2824
2825# Extract the first word of "pod2man", so it can be a program name with args.
2826set dummy pod2man; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if ${ac_cv_path_POD2MAN+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  case $POD2MAN in
2833  [\\/]* | ?:[\\/]*)
2834  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2835  ;;
2836  *)
2837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842    for ac_exec_ext in '' $ac_executable_extensions; do
2843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846    break 2
2847  fi
2848done
2849  done
2850IFS=$as_save_IFS
2851
2852  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
2853  ;;
2854esac
2855fi
2856POD2MAN=$ac_cv_path_POD2MAN
2857if test -n "$POD2MAN"; then
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
2859$as_echo "$POD2MAN" >&6; }
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866 if test "$POD2MAN" != no; then
2867  POD2MAN_PRESENT_TRUE=
2868  POD2MAN_PRESENT_FALSE='#'
2869else
2870  POD2MAN_PRESENT_TRUE='#'
2871  POD2MAN_PRESENT_FALSE=
2872fi
2873
2874
2875# Check whether --enable-pkgonly was given.
2876if test "${enable_pkgonly+set}" = set; then :
2877  enableval=$enable_pkgonly;
2878fi
2879
2880
2881
2882# Check whether --enable-threads was given.
2883if test "${enable_threads+set}" = set; then :
2884  enableval=$enable_threads;
2885fi
2886
2887
2888perllibdirs="\'\${perllibdir}\'"
2889
2890PERLOPTS=
2891
2892if test ! -z "$PERLINC"; then
2893   for d in $PERLINC; do
2894       PERLOPTS="${PERLOPTS} -I${d}"
2895       perllibdirs=${perllibdirs}"\,\'"${d}"\'"
2896   done
2897fi
2898
2899find_rrdtool () {
2900    if ${PERL} -e 'use RRDs' 2>/dev/null; then :; else
2901        if test "$enable_pkgonly" != yes; then
2902            { $as_echo "$as_me:${as_lineno-$LINENO}: RRDs.pm is not in default Perl search paths." >&5
2903$as_echo "$as_me: RRDs.pm is not in default Perl search paths." >&6;}
2904            { $as_echo "$as_me:${as_lineno-$LINENO}: checking RRDtool in /usr/local/rrdtool*" >&5
2905$as_echo_n "checking RRDtool in /usr/local/rrdtool*... " >&6; }
2906            with_rrdtool=`ls -1dr /usr/local/rrdtool* | head -1`
2907            if test -d $with_rrdtool; then
2908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_rrdtool}" >&5
2909$as_echo "${with_rrdtool}" >&6; }
2910            else
2911               as_fn_error $? "Cannot find RRDtool" "$LINENO" 5
2912            fi
2913            test_rrdtool
2914        else
2915            with_rrdtool="/usr/local/rrdtool"
2916        fi
2917    fi
2918}
2919
2920test_rrdtool () {
2921    if test "$enable_pkgonly" != yes; then
2922        if ${PERL} -I${with_rrdtool}/lib/perl -e 'use RRDs'; then :; else
2923            as_fn_error $? "Could not find RRDs perl module in ${with_rrdtool}" "$LINENO" 5
2924        fi
2925    fi
2926    perllibdirs=${perllibdirs}"\,\'"${with_rrdtool}"/lib/perl/\'"
2927}
2928
2929
2930# Check whether --with-rrdtool was given.
2931if test "${with_rrdtool+set}" = set; then :
2932  withval=$with_rrdtool; test_rrdtool
2933else
2934  find_rrdtool
2935fi
2936
2937
2938perllibdirs=${perllibdirs}
2939
2940
2941
2942# Check the necessary Perl modules
2943
2944if test "$enable_pkgonly" != yes; then
2945
2946   for module in 'BerkeleyDB' 'XML::LibXML' 'Template' \
2947                 'Proc::Daemon' 'Net::SNMP' 'URI::Escape' 'Apache::Session' \
2948                 'Date::Parse' 'JSON'
2949   do
2950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking presence of $module" >&5
2951$as_echo_n "checking presence of $module... " >&6; }
2952     if ${PERL} ${PERLOPTS} -e 'use '$module 2>/dev/null; then
2953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
2954$as_echo "Ok" >&6; }
2955     else
2956         as_fn_error $? "Perl cannot find $module" "$LINENO" 5;
2957     fi
2958   done
2959
2960#  Check if Perl threads can be used.
2961#  Requirements are: perl 5.8.8 with threads compiled,
2962#  threads ver. 1.41 or higher, threads::shared ver. 1.03 or higher
2963
2964   perlithreads=1
2965   if test x"$enable_threads" = xno; then
2966     perlithreads=0
2967   else
2968
2969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Perl version is 5.8.8 or higher" >&5
2970$as_echo_n "checking if Perl version is 5.8.8 or higher... " >&6; }
2971     if ${PERL} ${PERLOPTS} -e 'use 5.8.8' 2>/dev/null; then
2972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
2973$as_echo "Ok" >&6; }
2974     else
2975       perlithreads=0
2976     fi
2977
2978     if test ${perlithreads} -eq 1; then
2979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking threading support in Perl" >&5
2980$as_echo_n "checking threading support in Perl... " >&6; }
2981       if ${PERL} ${PERLOPTS} -e 'use threads' 2>/dev/null; then
2982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
2983$as_echo "Ok" >&6; }
2984       else
2985         perlithreads=0
2986       fi
2987     fi
2988
2989     if test ${perlithreads} -eq 1; then
2990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads module version is 1.41 or higher" >&5
2991$as_echo_n "checking if threads module version is 1.41 or higher... " >&6; }
2992       if ${PERL} ${PERLOPTS} -e \
2993         'use threads; exit($threads::VERSION >= 1.41 ? 0:1)'; then
2994           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
2995$as_echo "Ok" >&6; }
2996       else
2997           perlithreads=0
2998       fi
2999     fi
3000
3001     if test ${perlithreads} -eq 1; then
3002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads::shared module version is 1.03 or higher" >&5
3003$as_echo_n "checking if threads::shared module version is 1.03 or higher... " >&6; }
3004       if ${PERL} ${PERLOPTS} -e \
3005         'use threads; use threads::shared;
3006          exit($threads::shared::VERSION >= 1.03 ? 0:1)'; then
3007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
3008$as_echo "Ok" >&6; }
3009       else
3010           perlithreads=0
3011       fi
3012     fi
3013
3014     if test ${perlithreads} -eq 0; then
3015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: No. Multithreading will not be used." >&5
3016$as_echo "No. Multithreading will not be used." >&6; }
3017     fi
3018
3019   fi
3020   perlithreads=${perlithreads}
3021
3022fi
3023
3024
3025if test -z "$torrus_user"; then
3026   torrus_user=torrus; fi
3027
3028if test "$enable_pkgonly" != yes; then
3029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user ${torrus_user} exists" >&5
3030$as_echo_n "checking if user ${torrus_user} exists... " >&6; }
3031    torrus_check_file=torrus_usercheck_$$
3032    torrus_check_error=no
3033    if ! touch ${torrus_check_file}; then
3034        as_fn_error $? "Cannot create ${torrus_check_file}" "$LINENO" 5
3035    elif ! chown ${torrus_user} ${torrus_check_file}; then
3036        torrus_check_error=yes
3037    fi
3038    rm -f ${torrus_check_file}
3039    if test ${torrus_check_error} = yes; then
3040        as_fn_error $? "User ${torrus_user} does not exist" "$LINENO" 5
3041    else
3042        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ok" >&5
3043$as_echo "Ok" >&6; }
3044    fi
3045fi
3046
3047
3048# Set the var/db and var/cache ownership
3049
3050
3051
3052
3053
3054# Check whether --enable-varperm was given.
3055if test "${enable_varperm+set}" = set; then :
3056  enableval=$enable_varperm;
3057else
3058  enable_varperm="yes"
3059fi
3060
3061
3062
3063
3064if test -z "$pkghome"; then
3065   pkghome='${prefix}/torrus'; fi
3066
3067
3068if test -z "$pkgbindir"; then
3069   pkgbindir='${pkghome}/bin'; fi
3070
3071
3072if test -z "$cfgdefdir"; then
3073   cfgdefdir='${pkghome}/conf_defaults'; fi
3074
3075
3076if test -z "$pkgdocdir"; then
3077   pkgdocdir='${pkghome}/doc'; fi
3078
3079
3080if test -z "$exmpdir"; then
3081   exmpdir='${pkghome}/examples'; fi
3082
3083
3084if test -z "$perllibdir"; then
3085   perllibdir='${pkghome}/perllib'; fi
3086
3087
3088if test -z "$pluginsdir"; then
3089   pluginsdir='${pkghome}/plugins'; fi
3090
3091
3092if test -z "$plugtorruscfgdir"; then
3093   plugtorruscfgdir='${pluginsdir}/torrus-config'; fi
3094
3095
3096if test -z "$plugdevdisccfgdir"; then
3097   plugdevdisccfgdir='${pluginsdir}/devdiscover-config'; fi
3098
3099
3100if test -z "$plugwrapperdir"; then
3101   plugwrapperdir='${pluginsdir}/wrapper'; fi
3102
3103
3104
3105if test -z "$scriptsdir"; then
3106   scriptsdir='${pkghome}/scripts'; fi
3107
3108
3109if test -z "$supdir"; then
3110   supdir='${pkghome}/sup'; fi
3111
3112
3113if test -z "$webplaindir"; then
3114   webplaindir='${supdir}/webplain'; fi
3115
3116
3117if test -z "$webscriptsdir"; then
3118   webscriptsdir='${supdir}/webscripts'; fi
3119
3120
3121if test -z "$tmpldir"; then
3122   tmpldir='${pkghome}/templates'; fi
3123
3124
3125if test -z "$distxmldir"; then
3126   distxmldir='${pkghome}/xmlconfig'; fi
3127
3128
3129if test -z "$sitedir"; then
3130   sitedir='${sysconfdir}/torrus'; fi
3131
3132
3133if test -z "$siteconfdir"; then
3134   siteconfdir='${sitedir}/conf'; fi
3135
3136
3137if test -z "$tmpluserdir"; then
3138   tmpluserdir='${sitedir}/templates'; fi
3139
3140
3141if test -z "$sitexmldir"; then
3142   sitexmldir='${sitedir}/xmlconfig'; fi
3143
3144
3145if test -z "$logdir"; then
3146   logdir='/var/log/torrus'; fi
3147
3148
3149if test -z "$piddir"; then
3150   piddir='/var/run/torrus'; fi
3151
3152
3153if test -z "$varprefix"; then
3154   varprefix='/var/torrus'; fi
3155
3156
3157if test -z "$cachedir"; then
3158   cachedir='${varprefix}/cache'; fi
3159
3160
3161if test -z "$dbhome"; then
3162   dbhome='${varprefix}/db'; fi
3163
3164
3165if test -z "$reportsdir"; then
3166   reportsdir='${varprefix}/reports'; fi
3167
3168
3169if test -z "$seslockdir"; then
3170   seslockdir='${varprefix}/session_data/lock'; fi
3171
3172
3173if test -z "$sesstordir"; then
3174   sesstordir='${varprefix}/session_data/store'; fi
3175
3176
3177if test -z "$wrapperdir"; then
3178   wrapperdir='${bindir}'; fi
3179
3180
3181if test -z "$mansec_usercmd"; then
3182   mansec_usercmd='1'; fi
3183
3184
3185if test -z "$mansec_misc"; then
3186   mansec_misc='7'; fi
3187
3188
3189if test -z "$defrrddir"; then
3190   defrrddir='/srv/torrus/collector_rrd'; fi
3191
3192
3193ac_config_files="$ac_config_files Makefile bin/Makefile configs/Makefile"
3194
3195ac_config_files="$ac_config_files doc/Makefile doc/manpages/Makefile"
3196
3197ac_config_files="$ac_config_files examples/Makefile perllib/Makefile"
3198
3199ac_config_files="$ac_config_files sup/Makefile xmlconfig/Makefile"
3200
3201
3202ac_config_files="$ac_config_files setup_tools/substvars.sh"
3203
3204ac_config_files="$ac_config_files setup_tools/mkvardir.sh"
3205
3206ac_config_files="$ac_config_files init.d/torrus"
3207
3208
3209
3210
3211cat >confcache <<\_ACEOF
3212# This file is a shell script that caches the results of configure
3213# tests run on this system so they can be shared between configure
3214# scripts and configure runs, see configure's option --config-cache.
3215# It is not useful on other systems.  If it contains results you don't
3216# want to keep, you may remove or edit it.
3217#
3218# config.status only pays attention to the cache file if you give it
3219# the --recheck option to rerun configure.
3220#
3221# `ac_cv_env_foo' variables (set or unset) will be overridden when
3222# loading this file, other *unset* `ac_cv_foo' will be assigned the
3223# following values.
3224
3225_ACEOF
3226
3227# The following way of writing the cache mishandles newlines in values,
3228# but we know of no workaround that is simple, portable, and efficient.
3229# So, we kill variables containing newlines.
3230# Ultrix sh set writes to stderr and can't be redirected directly,
3231# and sets the high bit in the cache file unless we assign to the vars.
3232(
3233  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3234    eval ac_val=\$$ac_var
3235    case $ac_val in #(
3236    *${as_nl}*)
3237      case $ac_var in #(
3238      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3240      esac
3241      case $ac_var in #(
3242      _ | IFS | as_nl) ;; #(
3243      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3244      *) { eval $ac_var=; unset $ac_var;} ;;
3245      esac ;;
3246    esac
3247  done
3248
3249  (set) 2>&1 |
3250    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3251    *${as_nl}ac_space=\ *)
3252      # `set' does not quote correctly, so add quotes: double-quote
3253      # substitution turns \\\\ into \\, and sed turns \\ into \.
3254      sed -n \
3255	"s/'/'\\\\''/g;
3256	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3257      ;; #(
3258    *)
3259      # `set' quotes correctly as required by POSIX, so do not add quotes.
3260      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3261      ;;
3262    esac |
3263    sort
3264) |
3265  sed '
3266     /^ac_cv_env_/b end
3267     t clear
3268     :clear
3269     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3270     t end
3271     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3272     :end' >>confcache
3273if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3274  if test -w "$cache_file"; then
3275    if test "x$cache_file" != "x/dev/null"; then
3276      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3277$as_echo "$as_me: updating cache $cache_file" >&6;}
3278      if test ! -f "$cache_file" || test -h "$cache_file"; then
3279	cat confcache >"$cache_file"
3280      else
3281        case $cache_file in #(
3282        */* | ?:*)
3283	  mv -f confcache "$cache_file"$$ &&
3284	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3285        *)
3286	  mv -f confcache "$cache_file" ;;
3287	esac
3288      fi
3289    fi
3290  else
3291    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3292$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3293  fi
3294fi
3295rm -f confcache
3296
3297test "x$prefix" = xNONE && prefix=$ac_default_prefix
3298# Let make expand exec_prefix.
3299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3300
3301# Transform confdefs.h into DEFS.
3302# Protect against shell expansion while executing Makefile rules.
3303# Protect against Makefile macro expansion.
3304#
3305# If the first sed substitution is executed (which looks for macros that
3306# take arguments), then branch to the quote section.  Otherwise,
3307# look for a macro that doesn't take arguments.
3308ac_script='
3309:mline
3310/\\$/{
3311 N
3312 s,\\\n,,
3313 b mline
3314}
3315t clear
3316:clear
3317s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3318t quote
3319s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3320t quote
3321b any
3322:quote
3323s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3324s/\[/\\&/g
3325s/\]/\\&/g
3326s/\$/$$/g
3327H
3328:any
3329${
3330	g
3331	s/^\n//
3332	s/\n/ /g
3333	p
3334}
3335'
3336DEFS=`sed -n "$ac_script" confdefs.h`
3337
3338
3339ac_libobjs=
3340ac_ltlibobjs=
3341U=
3342for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3343  # 1. Remove the extension, and $U if already installed.
3344  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3345  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3346  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3347  #    will be set to the directory where LIBOBJS objects are built.
3348  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3349  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3350done
3351LIBOBJS=$ac_libobjs
3352
3353LTLIBOBJS=$ac_ltlibobjs
3354
3355
3356
3357if test -z "${POD2TEXT_PRESENT_TRUE}" && test -z "${POD2TEXT_PRESENT_FALSE}"; then
3358  as_fn_error $? "conditional \"POD2TEXT_PRESENT\" was never defined.
3359Usually this means the macro was only invoked conditionally." "$LINENO" 5
3360fi
3361if test -z "${POD2MAN_PRESENT_TRUE}" && test -z "${POD2MAN_PRESENT_FALSE}"; then
3362  as_fn_error $? "conditional \"POD2MAN_PRESENT\" was never defined.
3363Usually this means the macro was only invoked conditionally." "$LINENO" 5
3364fi
3365
3366: "${CONFIG_STATUS=./config.status}"
3367ac_write_fail=0
3368ac_clean_files_save=$ac_clean_files
3369ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3371$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3372as_write_fail=0
3373cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3374#! $SHELL
3375# Generated by $as_me.
3376# Run this file to recreate the current configuration.
3377# Compiler output produced by configure, useful for debugging
3378# configure, is in config.log if it exists.
3379
3380debug=false
3381ac_cs_recheck=false
3382ac_cs_silent=false
3383
3384SHELL=\${CONFIG_SHELL-$SHELL}
3385export SHELL
3386_ASEOF
3387cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3388## -------------------- ##
3389## M4sh Initialization. ##
3390## -------------------- ##
3391
3392# Be more Bourne compatible
3393DUALCASE=1; export DUALCASE # for MKS sh
3394if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3395  emulate sh
3396  NULLCMD=:
3397  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3398  # is contrary to our usage.  Disable this feature.
3399  alias -g '${1+"$@"}'='"$@"'
3400  setopt NO_GLOB_SUBST
3401else
3402  case `(set -o) 2>/dev/null` in #(
3403  *posix*) :
3404    set -o posix ;; #(
3405  *) :
3406     ;;
3407esac
3408fi
3409
3410
3411as_nl='
3412'
3413export as_nl
3414# Printing a long string crashes Solaris 7 /usr/bin/printf.
3415as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3418# Prefer a ksh shell builtin over an external printf program on Solaris,
3419# but without wasting forks for bash or zsh.
3420if test -z "$BASH_VERSION$ZSH_VERSION" \
3421    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3422  as_echo='print -r --'
3423  as_echo_n='print -rn --'
3424elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3425  as_echo='printf %s\n'
3426  as_echo_n='printf %s'
3427else
3428  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3429    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3430    as_echo_n='/usr/ucb/echo -n'
3431  else
3432    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3433    as_echo_n_body='eval
3434      arg=$1;
3435      case $arg in #(
3436      *"$as_nl"*)
3437	expr "X$arg" : "X\\(.*\\)$as_nl";
3438	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3439      esac;
3440      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3441    '
3442    export as_echo_n_body
3443    as_echo_n='sh -c $as_echo_n_body as_echo'
3444  fi
3445  export as_echo_body
3446  as_echo='sh -c $as_echo_body as_echo'
3447fi
3448
3449# The user is always right.
3450if test "${PATH_SEPARATOR+set}" != set; then
3451  PATH_SEPARATOR=:
3452  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3453    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3454      PATH_SEPARATOR=';'
3455  }
3456fi
3457
3458
3459# IFS
3460# We need space, tab and new line, in precisely that order.  Quoting is
3461# there to prevent editors from complaining about space-tab.
3462# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3463# splitting by setting IFS to empty value.)
3464IFS=" ""	$as_nl"
3465
3466# Find who we are.  Look in the path if we contain no directory separator.
3467as_myself=
3468case $0 in #((
3469  *[\\/]* ) as_myself=$0 ;;
3470  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3476  done
3477IFS=$as_save_IFS
3478
3479     ;;
3480esac
3481# We did not find ourselves, most probably we were run as `sh COMMAND'
3482# in which case we are not to be found in the path.
3483if test "x$as_myself" = x; then
3484  as_myself=$0
3485fi
3486if test ! -f "$as_myself"; then
3487  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3488  exit 1
3489fi
3490
3491# Unset variables that we do not need and which cause bugs (e.g. in
3492# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3493# suppresses any "Segmentation fault" message there.  '((' could
3494# trigger a bug in pdksh 5.2.14.
3495for as_var in BASH_ENV ENV MAIL MAILPATH
3496do eval test x\${$as_var+set} = xset \
3497  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3498done
3499PS1='$ '
3500PS2='> '
3501PS4='+ '
3502
3503# NLS nuisances.
3504LC_ALL=C
3505export LC_ALL
3506LANGUAGE=C
3507export LANGUAGE
3508
3509# CDPATH.
3510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3511
3512
3513# as_fn_error STATUS ERROR [LINENO LOG_FD]
3514# ----------------------------------------
3515# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3516# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3517# script with STATUS, using 1 if that was 0.
3518as_fn_error ()
3519{
3520  as_status=$1; test $as_status -eq 0 && as_status=1
3521  if test "$4"; then
3522    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3523    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3524  fi
3525  $as_echo "$as_me: error: $2" >&2
3526  as_fn_exit $as_status
3527} # as_fn_error
3528
3529
3530# as_fn_set_status STATUS
3531# -----------------------
3532# Set $? to STATUS, without forking.
3533as_fn_set_status ()
3534{
3535  return $1
3536} # as_fn_set_status
3537
3538# as_fn_exit STATUS
3539# -----------------
3540# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3541as_fn_exit ()
3542{
3543  set +e
3544  as_fn_set_status $1
3545  exit $1
3546} # as_fn_exit
3547
3548# as_fn_unset VAR
3549# ---------------
3550# Portably unset VAR.
3551as_fn_unset ()
3552{
3553  { eval $1=; unset $1;}
3554}
3555as_unset=as_fn_unset
3556# as_fn_append VAR VALUE
3557# ----------------------
3558# Append the text in VALUE to the end of the definition contained in VAR. Take
3559# advantage of any shell optimizations that allow amortized linear growth over
3560# repeated appends, instead of the typical quadratic growth present in naive
3561# implementations.
3562if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3563  eval 'as_fn_append ()
3564  {
3565    eval $1+=\$2
3566  }'
3567else
3568  as_fn_append ()
3569  {
3570    eval $1=\$$1\$2
3571  }
3572fi # as_fn_append
3573
3574# as_fn_arith ARG...
3575# ------------------
3576# Perform arithmetic evaluation on the ARGs, and store the result in the
3577# global $as_val. Take advantage of shells that can avoid forks. The arguments
3578# must be portable across $(()) and expr.
3579if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3580  eval 'as_fn_arith ()
3581  {
3582    as_val=$(( $* ))
3583  }'
3584else
3585  as_fn_arith ()
3586  {
3587    as_val=`expr "$@" || test $? -eq 1`
3588  }
3589fi # as_fn_arith
3590
3591
3592if expr a : '\(a\)' >/dev/null 2>&1 &&
3593   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3594  as_expr=expr
3595else
3596  as_expr=false
3597fi
3598
3599if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3600  as_basename=basename
3601else
3602  as_basename=false
3603fi
3604
3605if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3606  as_dirname=dirname
3607else
3608  as_dirname=false
3609fi
3610
3611as_me=`$as_basename -- "$0" ||
3612$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3613	 X"$0" : 'X\(//\)$' \| \
3614	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3615$as_echo X/"$0" |
3616    sed '/^.*\/\([^/][^/]*\)\/*$/{
3617	    s//\1/
3618	    q
3619	  }
3620	  /^X\/\(\/\/\)$/{
3621	    s//\1/
3622	    q
3623	  }
3624	  /^X\/\(\/\).*/{
3625	    s//\1/
3626	    q
3627	  }
3628	  s/.*/./; q'`
3629
3630# Avoid depending upon Character Ranges.
3631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3634as_cr_digits='0123456789'
3635as_cr_alnum=$as_cr_Letters$as_cr_digits
3636
3637ECHO_C= ECHO_N= ECHO_T=
3638case `echo -n x` in #(((((
3639-n*)
3640  case `echo 'xy\c'` in
3641  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3642  xy)  ECHO_C='\c';;
3643  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3644       ECHO_T='	';;
3645  esac;;
3646*)
3647  ECHO_N='-n';;
3648esac
3649
3650rm -f conf$$ conf$$.exe conf$$.file
3651if test -d conf$$.dir; then
3652  rm -f conf$$.dir/conf$$.file
3653else
3654  rm -f conf$$.dir
3655  mkdir conf$$.dir 2>/dev/null
3656fi
3657if (echo >conf$$.file) 2>/dev/null; then
3658  if ln -s conf$$.file conf$$ 2>/dev/null; then
3659    as_ln_s='ln -s'
3660    # ... but there are two gotchas:
3661    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3662    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3663    # In both cases, we have to default to `cp -pR'.
3664    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3665      as_ln_s='cp -pR'
3666  elif ln conf$$.file conf$$ 2>/dev/null; then
3667    as_ln_s=ln
3668  else
3669    as_ln_s='cp -pR'
3670  fi
3671else
3672  as_ln_s='cp -pR'
3673fi
3674rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3675rmdir conf$$.dir 2>/dev/null
3676
3677
3678# as_fn_mkdir_p
3679# -------------
3680# Create "$as_dir" as a directory, including parents if necessary.
3681as_fn_mkdir_p ()
3682{
3683
3684  case $as_dir in #(
3685  -*) as_dir=./$as_dir;;
3686  esac
3687  test -d "$as_dir" || eval $as_mkdir_p || {
3688    as_dirs=
3689    while :; do
3690      case $as_dir in #(
3691      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3692      *) as_qdir=$as_dir;;
3693      esac
3694      as_dirs="'$as_qdir' $as_dirs"
3695      as_dir=`$as_dirname -- "$as_dir" ||
3696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3697	 X"$as_dir" : 'X\(//\)[^/]' \| \
3698	 X"$as_dir" : 'X\(//\)$' \| \
3699	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3700$as_echo X"$as_dir" |
3701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3702	    s//\1/
3703	    q
3704	  }
3705	  /^X\(\/\/\)[^/].*/{
3706	    s//\1/
3707	    q
3708	  }
3709	  /^X\(\/\/\)$/{
3710	    s//\1/
3711	    q
3712	  }
3713	  /^X\(\/\).*/{
3714	    s//\1/
3715	    q
3716	  }
3717	  s/.*/./; q'`
3718      test -d "$as_dir" && break
3719    done
3720    test -z "$as_dirs" || eval "mkdir $as_dirs"
3721  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3722
3723
3724} # as_fn_mkdir_p
3725if mkdir -p . 2>/dev/null; then
3726  as_mkdir_p='mkdir -p "$as_dir"'
3727else
3728  test -d ./-p && rmdir ./-p
3729  as_mkdir_p=false
3730fi
3731
3732
3733# as_fn_executable_p FILE
3734# -----------------------
3735# Test if FILE is an executable regular file.
3736as_fn_executable_p ()
3737{
3738  test -f "$1" && test -x "$1"
3739} # as_fn_executable_p
3740as_test_x='test -x'
3741as_executable_p=as_fn_executable_p
3742
3743# Sed expression to map a string onto a valid CPP name.
3744as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3745
3746# Sed expression to map a string onto a valid variable name.
3747as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3748
3749
3750exec 6>&1
3751## ----------------------------------- ##
3752## Main body of $CONFIG_STATUS script. ##
3753## ----------------------------------- ##
3754_ASEOF
3755test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3756
3757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3758# Save the log message, to keep $0 and so on meaningful, and to
3759# report actual input values of CONFIG_FILES etc. instead of their
3760# values after options handling.
3761ac_log="
3762This file was extended by torrus $as_me 2.09, which was
3763generated by GNU Autoconf 2.69.  Invocation command line was
3764
3765  CONFIG_FILES    = $CONFIG_FILES
3766  CONFIG_HEADERS  = $CONFIG_HEADERS
3767  CONFIG_LINKS    = $CONFIG_LINKS
3768  CONFIG_COMMANDS = $CONFIG_COMMANDS
3769  $ $0 $@
3770
3771on `(hostname || uname -n) 2>/dev/null | sed 1q`
3772"
3773
3774_ACEOF
3775
3776case $ac_config_files in *"
3777"*) set x $ac_config_files; shift; ac_config_files=$*;;
3778esac
3779
3780
3781
3782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3783# Files that config.status was made for.
3784config_files="$ac_config_files"
3785
3786_ACEOF
3787
3788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3789ac_cs_usage="\
3790\`$as_me' instantiates files and other configuration actions
3791from templates according to the current configuration.  Unless the files
3792and actions are specified as TAGs, all are instantiated by default.
3793
3794Usage: $0 [OPTION]... [TAG]...
3795
3796  -h, --help       print this help, then exit
3797  -V, --version    print version number and configuration settings, then exit
3798      --config     print configuration, then exit
3799  -q, --quiet, --silent
3800                   do not print progress messages
3801  -d, --debug      don't remove temporary files
3802      --recheck    update $as_me by reconfiguring in the same conditions
3803      --file=FILE[:TEMPLATE]
3804                   instantiate the configuration file FILE
3805
3806Configuration files:
3807$config_files
3808
3809Report bugs to <ssinyagin@users.sourceforge.net>."
3810
3811_ACEOF
3812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3813ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3814ac_cs_version="\\
3815torrus config.status 2.09
3816configured by $0, generated by GNU Autoconf 2.69,
3817  with options \\"\$ac_cs_config\\"
3818
3819Copyright (C) 2012 Free Software Foundation, Inc.
3820This config.status script is free software; the Free Software Foundation
3821gives unlimited permission to copy, distribute and modify it."
3822
3823ac_pwd='$ac_pwd'
3824srcdir='$srcdir'
3825INSTALL='$INSTALL'
3826MKDIR_P='$MKDIR_P'
3827AWK='$AWK'
3828test -n "\$AWK" || AWK=awk
3829_ACEOF
3830
3831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3832# The default lists apply if the user does not specify any file.
3833ac_need_defaults=:
3834while test $# != 0
3835do
3836  case $1 in
3837  --*=?*)
3838    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3839    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3840    ac_shift=:
3841    ;;
3842  --*=)
3843    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3844    ac_optarg=
3845    ac_shift=:
3846    ;;
3847  *)
3848    ac_option=$1
3849    ac_optarg=$2
3850    ac_shift=shift
3851    ;;
3852  esac
3853
3854  case $ac_option in
3855  # Handling of the options.
3856  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3857    ac_cs_recheck=: ;;
3858  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3859    $as_echo "$ac_cs_version"; exit ;;
3860  --config | --confi | --conf | --con | --co | --c )
3861    $as_echo "$ac_cs_config"; exit ;;
3862  --debug | --debu | --deb | --de | --d | -d )
3863    debug=: ;;
3864  --file | --fil | --fi | --f )
3865    $ac_shift
3866    case $ac_optarg in
3867    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3868    '') as_fn_error $? "missing file argument" ;;
3869    esac
3870    as_fn_append CONFIG_FILES " '$ac_optarg'"
3871    ac_need_defaults=false;;
3872  --he | --h |  --help | --hel | -h )
3873    $as_echo "$ac_cs_usage"; exit ;;
3874  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3875  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3876    ac_cs_silent=: ;;
3877
3878  # This is an error.
3879  -*) as_fn_error $? "unrecognized option: \`$1'
3880Try \`$0 --help' for more information." ;;
3881
3882  *) as_fn_append ac_config_targets " $1"
3883     ac_need_defaults=false ;;
3884
3885  esac
3886  shift
3887done
3888
3889ac_configure_extra_args=
3890
3891if $ac_cs_silent; then
3892  exec 6>/dev/null
3893  ac_configure_extra_args="$ac_configure_extra_args --silent"
3894fi
3895
3896_ACEOF
3897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3898if \$ac_cs_recheck; then
3899  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3900  shift
3901  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3902  CONFIG_SHELL='$SHELL'
3903  export CONFIG_SHELL
3904  exec "\$@"
3905fi
3906
3907_ACEOF
3908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3909exec 5>>config.log
3910{
3911  echo
3912  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3913## Running $as_me. ##
3914_ASBOX
3915  $as_echo "$ac_log"
3916} >&5
3917
3918_ACEOF
3919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3920_ACEOF
3921
3922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3923
3924# Handling of arguments.
3925for ac_config_target in $ac_config_targets
3926do
3927  case $ac_config_target in
3928    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3929    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
3930    "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
3931    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3932    "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
3933    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3934    "perllib/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/Makefile" ;;
3935    "sup/Makefile") CONFIG_FILES="$CONFIG_FILES sup/Makefile" ;;
3936    "xmlconfig/Makefile") CONFIG_FILES="$CONFIG_FILES xmlconfig/Makefile" ;;
3937    "setup_tools/substvars.sh") CONFIG_FILES="$CONFIG_FILES setup_tools/substvars.sh" ;;
3938    "setup_tools/mkvardir.sh") CONFIG_FILES="$CONFIG_FILES setup_tools/mkvardir.sh" ;;
3939    "init.d/torrus") CONFIG_FILES="$CONFIG_FILES init.d/torrus" ;;
3940
3941  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3942  esac
3943done
3944
3945
3946# If the user did not use the arguments to specify the items to instantiate,
3947# then the envvar interface is used.  Set only those that are not.
3948# We use the long form for the default assignment because of an extremely
3949# bizarre bug on SunOS 4.1.3.
3950if $ac_need_defaults; then
3951  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3952fi
3953
3954# Have a temporary directory for convenience.  Make it in the build tree
3955# simply because there is no reason against having it here, and in addition,
3956# creating and moving files from /tmp can sometimes cause problems.
3957# Hook for its removal unless debugging.
3958# Note that there is a small window in which the directory will not be cleaned:
3959# after its creation but before its name has been assigned to `$tmp'.
3960$debug ||
3961{
3962  tmp= ac_tmp=
3963  trap 'exit_status=$?
3964  : "${ac_tmp:=$tmp}"
3965  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3966' 0
3967  trap 'as_fn_exit 1' 1 2 13 15
3968}
3969# Create a (secure) tmp directory for tmp files.
3970
3971{
3972  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3973  test -d "$tmp"
3974}  ||
3975{
3976  tmp=./conf$$-$RANDOM
3977  (umask 077 && mkdir "$tmp")
3978} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3979ac_tmp=$tmp
3980
3981# Set up the scripts for CONFIG_FILES section.
3982# No need to generate them if there are no CONFIG_FILES.
3983# This happens for instance with `./config.status config.h'.
3984if test -n "$CONFIG_FILES"; then
3985
3986
3987ac_cr=`echo X | tr X '\015'`
3988# On cygwin, bash can eat \r inside `` if the user requested igncr.
3989# But we know of no other shell where ac_cr would be empty at this
3990# point, so we can use a bashism as a fallback.
3991if test "x$ac_cr" = x; then
3992  eval ac_cr=\$\'\\r\'
3993fi
3994ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3995if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3996  ac_cs_awk_cr='\\r'
3997else
3998  ac_cs_awk_cr=$ac_cr
3999fi
4000
4001echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4002_ACEOF
4003
4004
4005{
4006  echo "cat >conf$$subs.awk <<_ACEOF" &&
4007  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4008  echo "_ACEOF"
4009} >conf$$subs.sh ||
4010  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4011ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4012ac_delim='%!_!# '
4013for ac_last_try in false false false false false :; do
4014  . ./conf$$subs.sh ||
4015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4016
4017  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4018  if test $ac_delim_n = $ac_delim_num; then
4019    break
4020  elif $ac_last_try; then
4021    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4022  else
4023    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4024  fi
4025done
4026rm -f conf$$subs.sh
4027
4028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4029cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4030_ACEOF
4031sed -n '
4032h
4033s/^/S["/; s/!.*/"]=/
4034p
4035g
4036s/^[^!]*!//
4037:repl
4038t repl
4039s/'"$ac_delim"'$//
4040t delim
4041:nl
4042h
4043s/\(.\{148\}\)..*/\1/
4044t more1
4045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4046p
4047n
4048b repl
4049:more1
4050s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4051p
4052g
4053s/.\{148\}//
4054t nl
4055:delim
4056h
4057s/\(.\{148\}\)..*/\1/
4058t more2
4059s/["\\]/\\&/g; s/^/"/; s/$/"/
4060p
4061b
4062:more2
4063s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4064p
4065g
4066s/.\{148\}//
4067t delim
4068' <conf$$subs.awk | sed '
4069/^[^""]/{
4070  N
4071  s/\n//
4072}
4073' >>$CONFIG_STATUS || ac_write_fail=1
4074rm -f conf$$subs.awk
4075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4076_ACAWK
4077cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4078  for (key in S) S_is_set[key] = 1
4079  FS = ""
4080
4081}
4082{
4083  line = $ 0
4084  nfields = split(line, field, "@")
4085  substed = 0
4086  len = length(field[1])
4087  for (i = 2; i < nfields; i++) {
4088    key = field[i]
4089    keylen = length(key)
4090    if (S_is_set[key]) {
4091      value = S[key]
4092      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4093      len += length(value) + length(field[++i])
4094      substed = 1
4095    } else
4096      len += 1 + keylen
4097  }
4098
4099  print line
4100}
4101
4102_ACAWK
4103_ACEOF
4104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4106  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4107else
4108  cat
4109fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4110  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4111_ACEOF
4112
4113# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4114# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4115# trailing colons and then remove the whole line if VPATH becomes empty
4116# (actually we leave an empty line to preserve line numbers).
4117if test "x$srcdir" = x.; then
4118  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4119h
4120s///
4121s/^/:/
4122s/[	 ]*$/:/
4123s/:\$(srcdir):/:/g
4124s/:\${srcdir}:/:/g
4125s/:@srcdir@:/:/g
4126s/^:*//
4127s/:*$//
4128x
4129s/\(=[	 ]*\).*/\1/
4130G
4131s/\n//
4132s/^[^=]*=[	 ]*$//
4133}'
4134fi
4135
4136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4137fi # test -n "$CONFIG_FILES"
4138
4139
4140eval set X "  :F $CONFIG_FILES      "
4141shift
4142for ac_tag
4143do
4144  case $ac_tag in
4145  :[FHLC]) ac_mode=$ac_tag; continue;;
4146  esac
4147  case $ac_mode$ac_tag in
4148  :[FHL]*:*);;
4149  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4150  :[FH]-) ac_tag=-:-;;
4151  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4152  esac
4153  ac_save_IFS=$IFS
4154  IFS=:
4155  set x $ac_tag
4156  IFS=$ac_save_IFS
4157  shift
4158  ac_file=$1
4159  shift
4160
4161  case $ac_mode in
4162  :L) ac_source=$1;;
4163  :[FH])
4164    ac_file_inputs=
4165    for ac_f
4166    do
4167      case $ac_f in
4168      -) ac_f="$ac_tmp/stdin";;
4169      *) # Look for the file first in the build tree, then in the source tree
4170	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4171	 # because $ac_f cannot contain `:'.
4172	 test -f "$ac_f" ||
4173	   case $ac_f in
4174	   [\\/$]*) false;;
4175	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4176	   esac ||
4177	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4178      esac
4179      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4180      as_fn_append ac_file_inputs " '$ac_f'"
4181    done
4182
4183    # Let's still pretend it is `configure' which instantiates (i.e., don't
4184    # use $as_me), people would be surprised to read:
4185    #    /* config.h.  Generated by config.status.  */
4186    configure_input='Generated from '`
4187	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4188	`' by configure.'
4189    if test x"$ac_file" != x-; then
4190      configure_input="$ac_file.  $configure_input"
4191      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4192$as_echo "$as_me: creating $ac_file" >&6;}
4193    fi
4194    # Neutralize special characters interpreted by sed in replacement strings.
4195    case $configure_input in #(
4196    *\&* | *\|* | *\\* )
4197       ac_sed_conf_input=`$as_echo "$configure_input" |
4198       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4199    *) ac_sed_conf_input=$configure_input;;
4200    esac
4201
4202    case $ac_tag in
4203    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4204      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4205    esac
4206    ;;
4207  esac
4208
4209  ac_dir=`$as_dirname -- "$ac_file" ||
4210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4211	 X"$ac_file" : 'X\(//\)[^/]' \| \
4212	 X"$ac_file" : 'X\(//\)$' \| \
4213	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4214$as_echo X"$ac_file" |
4215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4216	    s//\1/
4217	    q
4218	  }
4219	  /^X\(\/\/\)[^/].*/{
4220	    s//\1/
4221	    q
4222	  }
4223	  /^X\(\/\/\)$/{
4224	    s//\1/
4225	    q
4226	  }
4227	  /^X\(\/\).*/{
4228	    s//\1/
4229	    q
4230	  }
4231	  s/.*/./; q'`
4232  as_dir="$ac_dir"; as_fn_mkdir_p
4233  ac_builddir=.
4234
4235case "$ac_dir" in
4236.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4237*)
4238  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4239  # A ".." for each directory in $ac_dir_suffix.
4240  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4241  case $ac_top_builddir_sub in
4242  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4243  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4244  esac ;;
4245esac
4246ac_abs_top_builddir=$ac_pwd
4247ac_abs_builddir=$ac_pwd$ac_dir_suffix
4248# for backward compatibility:
4249ac_top_builddir=$ac_top_build_prefix
4250
4251case $srcdir in
4252  .)  # We are building in place.
4253    ac_srcdir=.
4254    ac_top_srcdir=$ac_top_builddir_sub
4255    ac_abs_top_srcdir=$ac_pwd ;;
4256  [\\/]* | ?:[\\/]* )  # Absolute name.
4257    ac_srcdir=$srcdir$ac_dir_suffix;
4258    ac_top_srcdir=$srcdir
4259    ac_abs_top_srcdir=$srcdir ;;
4260  *) # Relative name.
4261    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4262    ac_top_srcdir=$ac_top_build_prefix$srcdir
4263    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4264esac
4265ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4266
4267
4268  case $ac_mode in
4269  :F)
4270  #
4271  # CONFIG_FILE
4272  #
4273
4274  case $INSTALL in
4275  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4276  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4277  esac
4278  ac_MKDIR_P=$MKDIR_P
4279  case $MKDIR_P in
4280  [\\/$]* | ?:[\\/]* ) ;;
4281  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4282  esac
4283_ACEOF
4284
4285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4286# If the template does not know about datarootdir, expand it.
4287# FIXME: This hack should be removed a few years after 2.60.
4288ac_datarootdir_hack=; ac_datarootdir_seen=
4289ac_sed_dataroot='
4290/datarootdir/ {
4291  p
4292  q
4293}
4294/@datadir@/p
4295/@docdir@/p
4296/@infodir@/p
4297/@localedir@/p
4298/@mandir@/p'
4299case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4300*datarootdir*) ac_datarootdir_seen=yes;;
4301*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4302  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4303$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4304_ACEOF
4305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4306  ac_datarootdir_hack='
4307  s&@datadir@&$datadir&g
4308  s&@docdir@&$docdir&g
4309  s&@infodir@&$infodir&g
4310  s&@localedir@&$localedir&g
4311  s&@mandir@&$mandir&g
4312  s&\\\${datarootdir}&$datarootdir&g' ;;
4313esac
4314_ACEOF
4315
4316# Neutralize VPATH when `$srcdir' = `.'.
4317# Shell code in configure.ac might set extrasub.
4318# FIXME: do we really want to maintain this feature?
4319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4320ac_sed_extra="$ac_vpsub
4321$extrasub
4322_ACEOF
4323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4324:t
4325/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4326s|@configure_input@|$ac_sed_conf_input|;t t
4327s&@top_builddir@&$ac_top_builddir_sub&;t t
4328s&@top_build_prefix@&$ac_top_build_prefix&;t t
4329s&@srcdir@&$ac_srcdir&;t t
4330s&@abs_srcdir@&$ac_abs_srcdir&;t t
4331s&@top_srcdir@&$ac_top_srcdir&;t t
4332s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4333s&@builddir@&$ac_builddir&;t t
4334s&@abs_builddir@&$ac_abs_builddir&;t t
4335s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4336s&@INSTALL@&$ac_INSTALL&;t t
4337s&@MKDIR_P@&$ac_MKDIR_P&;t t
4338$ac_datarootdir_hack
4339"
4340eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4341  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4342
4343test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4344  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4345  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4346      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4348which seems to be undefined.  Please make sure it is defined" >&5
4349$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4350which seems to be undefined.  Please make sure it is defined" >&2;}
4351
4352  rm -f "$ac_tmp/stdin"
4353  case $ac_file in
4354  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4355  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4356  esac \
4357  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4358 ;;
4359
4360
4361
4362  esac
4363
4364
4365  case $ac_file$ac_mode in
4366    "setup_tools/substvars.sh":F) chmod +x setup_tools/substvars.sh ;;
4367    "setup_tools/mkvardir.sh":F) chmod +x setup_tools/mkvardir.sh ;;
4368    "init.d/torrus":F) chmod +x init.d/torrus ;;
4369
4370  esac
4371done # for ac_tag
4372
4373
4374as_fn_exit 0
4375_ACEOF
4376ac_clean_files=$ac_clean_files_save
4377
4378test $ac_write_fail = 0 ||
4379  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4380
4381
4382# configure is writing to config.log, and then calls config.status.
4383# config.status does its own redirection, appending to config.log.
4384# Unfortunately, on DOS this fails, as config.log is still kept open
4385# by configure, so config.status won't be able to write to it; its
4386# output is simply discarded.  So we exec the FD to /dev/null,
4387# effectively closing config.log, so it can be properly (re)opened and
4388# appended to by config.status.  When coming back to configure, we
4389# need to make the FD available again.
4390if test "$no_create" != yes; then
4391  ac_cs_success=:
4392  ac_config_status_args=
4393  test "$silent" = yes &&
4394    ac_config_status_args="$ac_config_status_args --quiet"
4395  exec 5>/dev/null
4396  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4397  exec 5>>config.log
4398  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4399  # would make configure fail if this is the last instruction.
4400  $ac_cs_success || as_fn_exit 1
4401fi
4402if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4403  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4404$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4405fi
4406
4407
4408VARSAVE=configs/instvars
4409echo creating $VARSAVE
4410rm -f $VARSAVE
4411for VAR in $ac_subst_vars; do
4412    case ${VAR} in
4413      DEFS | PACKAGE* | INSTALL* | VERSION | ACLOCAL | AUTO* | MAKEINFO |\
4414      install_sh | AM* | am* | ac* | ECHO* | build* | host* | target* |\
4415      CYG* | PATH_SEPARATOR | AWK | STRIP | mkdir* |\
4416      perllibdirs )
4417      ;;
4418      *)
4419        eval 'VAL=${'$VAR'}'
4420        echo ${VAR}=\'${VAL}\' >>$VARSAVE
4421      ;;
4422    esac
4423done
4424