1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199  if (eval "$as_required") 2>/dev/null; then :
200  as_have_required=yes
201else
202  as_have_required=no
203fi
204  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  test -z "$as_dir" && as_dir=.
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir/$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237      if test "x$CONFIG_SHELL" != x; then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno; then :
260  $as_echo "$0: This script requires a shell more modern than all"
261  $as_echo "$0: the shells that I found on your system."
262  if test x${ZSH_VERSION+set} = xset ; then
263    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298  return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306  set +e
307  as_fn_set_status $1
308  exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317  case $as_dir in #(
318  -*) as_dir=./$as_dir;;
319  esac
320  test -d "$as_dir" || eval $as_mkdir_p || {
321    as_dirs=
322    while :; do
323      case $as_dir in #(
324      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325      *) as_qdir=$as_dir;;
326      esac
327      as_dirs="'$as_qdir' $as_dirs"
328      as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330	 X"$as_dir" : 'X\(//\)[^/]' \| \
331	 X"$as_dir" : 'X\(//\)$' \| \
332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335	    s//\1/
336	    q
337	  }
338	  /^X\(\/\/\)[^/].*/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\).*/{
347	    s//\1/
348	    q
349	  }
350	  s/.*/./; q'`
351      test -d "$as_dir" && break
352    done
353    test -z "$as_dirs" || eval "mkdir $as_dirs"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364  test -f "$1" && test -x "$1"
365} # as_fn_executable_p
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373  eval 'as_fn_append ()
374  {
375    eval $1+=\$2
376  }'
377else
378  as_fn_append ()
379  {
380    eval $1=\$$1\$2
381  }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390  eval 'as_fn_arith ()
391  {
392    as_val=$(( $* ))
393  }'
394else
395  as_fn_arith ()
396  {
397    as_val=`expr "$@" || test $? -eq 1`
398  }
399fi # as_fn_arith
400
401
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
409  as_status=$1; test $as_status -eq 0 && as_status=1
410  if test "$4"; then
411    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413  fi
414  $as_echo "$as_me: error: $2" >&2
415  as_fn_exit $as_status
416} # as_fn_error
417
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419   test "X`expr 00001 : '.*\(...\)'`" = X001; then
420  as_expr=expr
421else
422  as_expr=false
423fi
424
425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426  as_basename=basename
427else
428  as_basename=false
429fi
430
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432  as_dirname=dirname
433else
434  as_dirname=false
435fi
436
437as_me=`$as_basename -- "$0" ||
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439	 X"$0" : 'X\(//\)$' \| \
440	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442    sed '/^.*\/\([^/][^/]*\)\/*$/{
443	    s//\1/
444	    q
445	  }
446	  /^X\/\(\/\/\)$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\).*/{
451	    s//\1/
452	    q
453	  }
454	  s/.*/./; q'`
455
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464  as_lineno_1=$LINENO as_lineno_1a=$LINENO
465  as_lineno_2=$LINENO as_lineno_2a=$LINENO
466  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
469  sed -n '
470    p
471    /[$]LINENO/=
472  ' <$as_myself |
473    sed '
474      s/[$]LINENO.*/&-/
475      t lineno
476      b
477      :lineno
478      N
479      :loop
480      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481      t loop
482      s/-\n.*//
483    ' >$as_me.lineno &&
484  chmod +x "$as_me.lineno" ||
485    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488  # already done that, so ensure we don't try to do so again and fall
489  # in an infinite loop.  This has already happened in practice.
490  _as_can_reexec=no; export _as_can_reexec
491  # Don't try to exec as it changes $[0], causing all sort of problems
492  # (the dirname of $[0] is not the place where we might find the
493  # original and so on.  Autoconf is especially sensitive to this).
494  . "./$as_me.lineno"
495  # Exit status is that of the last command.
496  exit
497}
498
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502  case `echo 'xy\c'` in
503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
504  xy)  ECHO_C='\c';;
505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
506       ECHO_T='	';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514  rm -f conf$$.dir/conf$$.file
515else
516  rm -f conf$$.dir
517  mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520  if ln -s conf$$.file conf$$ 2>/dev/null; then
521    as_ln_s='ln -s'
522    # ... but there are two gotchas:
523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540  as_mkdir_p='mkdir -p "$as_dir"'
541else
542  test -d ./-p && rmdir ./-p
543  as_mkdir_p=false
544fi
545
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
548
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
568ac_clean_files=
569ac_config_libobj_dir=.
570LIBOBJS=
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
582PACKAGE_URL=
583
584ac_unique_file="tdomhtml.tcl"
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
587EXTRA_SOURCES
588CLEANFILES
589INSTALL_DATA
590INSTALL_SCRIPT
591INSTALL_PROGRAM
592VERSION
593PACKAGE
594CONFIGDIR
595target_alias
596host_alias
597build_alias
598LIBS
599ECHO_T
600ECHO_N
601ECHO_C
602DEFS
603mandir
604localedir
605libdir
606psdir
607pdfdir
608dvidir
609htmldir
610infodir
611docdir
612oldincludedir
613includedir
614localstatedir
615sharedstatedir
616sysconfdir
617datadir
618datarootdir
619libexecdir
620sbindir
621bindir
622program_transform_name
623prefix
624exec_prefix
625PACKAGE_URL
626PACKAGE_BUGREPORT
627PACKAGE_STRING
628PACKAGE_VERSION
629PACKAGE_TARNAME
630PACKAGE_NAME
631PATH_SEPARATOR
632SHELL'
633ac_subst_files=''
634ac_user_opts='
635enable_option_checking
636'
637      ac_precious_vars='build_alias
638host_alias
639target_alias'
640
641
642# Initialize some variables set by options.
643ac_init_help=
644ac_init_version=false
645ac_unrecognized_opts=
646ac_unrecognized_sep=
647# The variables have the same names as the options, with
648# dashes changed to underlines.
649cache_file=/dev/null
650exec_prefix=NONE
651no_create=
652no_recursion=
653prefix=NONE
654program_prefix=NONE
655program_suffix=NONE
656program_transform_name=s,x,x,
657silent=
658site=
659srcdir=
660verbose=
661x_includes=NONE
662x_libraries=NONE
663
664# Installation directory options.
665# These are left unexpanded so users can "make install exec_prefix=/foo"
666# and all the variables that are supposed to be based on exec_prefix
667# by default will actually change.
668# Use braces instead of parens because sh, perl, etc. also accept them.
669# (The list follows the same order as the GNU Coding Standards.)
670bindir='${exec_prefix}/bin'
671sbindir='${exec_prefix}/sbin'
672libexecdir='${exec_prefix}/libexec'
673datarootdir='${prefix}/share'
674datadir='${datarootdir}'
675sysconfdir='${prefix}/etc'
676sharedstatedir='${prefix}/com'
677localstatedir='${prefix}/var'
678includedir='${prefix}/include'
679oldincludedir='/usr/include'
680docdir='${datarootdir}/doc/${PACKAGE}'
681infodir='${datarootdir}/info'
682htmldir='${docdir}'
683dvidir='${docdir}'
684pdfdir='${docdir}'
685psdir='${docdir}'
686libdir='${exec_prefix}/lib'
687localedir='${datarootdir}/locale'
688mandir='${datarootdir}/man'
689
690ac_prev=
691ac_dashdash=
692for ac_option
693do
694  # If the previous option needs an argument, assign it.
695  if test -n "$ac_prev"; then
696    eval $ac_prev=\$ac_option
697    ac_prev=
698    continue
699  fi
700
701  case $ac_option in
702  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
703  *=)   ac_optarg= ;;
704  *)    ac_optarg=yes ;;
705  esac
706
707  # Accept the important Cygnus configure options, so we can diagnose typos.
708
709  case $ac_dashdash$ac_option in
710  --)
711    ac_dashdash=yes ;;
712
713  -bindir | --bindir | --bindi | --bind | --bin | --bi)
714    ac_prev=bindir ;;
715  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
716    bindir=$ac_optarg ;;
717
718  -build | --build | --buil | --bui | --bu)
719    ac_prev=build_alias ;;
720  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
721    build_alias=$ac_optarg ;;
722
723  -cache-file | --cache-file | --cache-fil | --cache-fi \
724  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
725    ac_prev=cache_file ;;
726  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
727  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
728    cache_file=$ac_optarg ;;
729
730  --config-cache | -C)
731    cache_file=config.cache ;;
732
733  -datadir | --datadir | --datadi | --datad)
734    ac_prev=datadir ;;
735  -datadir=* | --datadir=* | --datadi=* | --datad=*)
736    datadir=$ac_optarg ;;
737
738  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
739  | --dataroo | --dataro | --datar)
740    ac_prev=datarootdir ;;
741  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
742  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
743    datarootdir=$ac_optarg ;;
744
745  -disable-* | --disable-*)
746    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
747    # Reject names that are not valid shell variable names.
748    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
749      as_fn_error $? "invalid feature name: $ac_useropt"
750    ac_useropt_orig=$ac_useropt
751    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
752    case $ac_user_opts in
753      *"
754"enable_$ac_useropt"
755"*) ;;
756      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
757	 ac_unrecognized_sep=', ';;
758    esac
759    eval enable_$ac_useropt=no ;;
760
761  -docdir | --docdir | --docdi | --doc | --do)
762    ac_prev=docdir ;;
763  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
764    docdir=$ac_optarg ;;
765
766  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
767    ac_prev=dvidir ;;
768  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
769    dvidir=$ac_optarg ;;
770
771  -enable-* | --enable-*)
772    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
773    # Reject names that are not valid shell variable names.
774    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
775      as_fn_error $? "invalid feature name: $ac_useropt"
776    ac_useropt_orig=$ac_useropt
777    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
778    case $ac_user_opts in
779      *"
780"enable_$ac_useropt"
781"*) ;;
782      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
783	 ac_unrecognized_sep=', ';;
784    esac
785    eval enable_$ac_useropt=\$ac_optarg ;;
786
787  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
788  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
789  | --exec | --exe | --ex)
790    ac_prev=exec_prefix ;;
791  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
792  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
793  | --exec=* | --exe=* | --ex=*)
794    exec_prefix=$ac_optarg ;;
795
796  -gas | --gas | --ga | --g)
797    # Obsolete; use --with-gas.
798    with_gas=yes ;;
799
800  -help | --help | --hel | --he | -h)
801    ac_init_help=long ;;
802  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
803    ac_init_help=recursive ;;
804  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
805    ac_init_help=short ;;
806
807  -host | --host | --hos | --ho)
808    ac_prev=host_alias ;;
809  -host=* | --host=* | --hos=* | --ho=*)
810    host_alias=$ac_optarg ;;
811
812  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
813    ac_prev=htmldir ;;
814  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
815  | --ht=*)
816    htmldir=$ac_optarg ;;
817
818  -includedir | --includedir | --includedi | --included | --include \
819  | --includ | --inclu | --incl | --inc)
820    ac_prev=includedir ;;
821  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
822  | --includ=* | --inclu=* | --incl=* | --inc=*)
823    includedir=$ac_optarg ;;
824
825  -infodir | --infodir | --infodi | --infod | --info | --inf)
826    ac_prev=infodir ;;
827  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
828    infodir=$ac_optarg ;;
829
830  -libdir | --libdir | --libdi | --libd)
831    ac_prev=libdir ;;
832  -libdir=* | --libdir=* | --libdi=* | --libd=*)
833    libdir=$ac_optarg ;;
834
835  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
836  | --libexe | --libex | --libe)
837    ac_prev=libexecdir ;;
838  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
839  | --libexe=* | --libex=* | --libe=*)
840    libexecdir=$ac_optarg ;;
841
842  -localedir | --localedir | --localedi | --localed | --locale)
843    ac_prev=localedir ;;
844  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
845    localedir=$ac_optarg ;;
846
847  -localstatedir | --localstatedir | --localstatedi | --localstated \
848  | --localstate | --localstat | --localsta | --localst | --locals)
849    ac_prev=localstatedir ;;
850  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
851  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
852    localstatedir=$ac_optarg ;;
853
854  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
855    ac_prev=mandir ;;
856  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
857    mandir=$ac_optarg ;;
858
859  -nfp | --nfp | --nf)
860    # Obsolete; use --without-fp.
861    with_fp=no ;;
862
863  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
864  | --no-cr | --no-c | -n)
865    no_create=yes ;;
866
867  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
868  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
869    no_recursion=yes ;;
870
871  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
872  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
873  | --oldin | --oldi | --old | --ol | --o)
874    ac_prev=oldincludedir ;;
875  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
876  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
877  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
878    oldincludedir=$ac_optarg ;;
879
880  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
881    ac_prev=prefix ;;
882  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
883    prefix=$ac_optarg ;;
884
885  -program-prefix | --program-prefix | --program-prefi | --program-pref \
886  | --program-pre | --program-pr | --program-p)
887    ac_prev=program_prefix ;;
888  -program-prefix=* | --program-prefix=* | --program-prefi=* \
889  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
890    program_prefix=$ac_optarg ;;
891
892  -program-suffix | --program-suffix | --program-suffi | --program-suff \
893  | --program-suf | --program-su | --program-s)
894    ac_prev=program_suffix ;;
895  -program-suffix=* | --program-suffix=* | --program-suffi=* \
896  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
897    program_suffix=$ac_optarg ;;
898
899  -program-transform-name | --program-transform-name \
900  | --program-transform-nam | --program-transform-na \
901  | --program-transform-n | --program-transform- \
902  | --program-transform | --program-transfor \
903  | --program-transfo | --program-transf \
904  | --program-trans | --program-tran \
905  | --progr-tra | --program-tr | --program-t)
906    ac_prev=program_transform_name ;;
907  -program-transform-name=* | --program-transform-name=* \
908  | --program-transform-nam=* | --program-transform-na=* \
909  | --program-transform-n=* | --program-transform-=* \
910  | --program-transform=* | --program-transfor=* \
911  | --program-transfo=* | --program-transf=* \
912  | --program-trans=* | --program-tran=* \
913  | --progr-tra=* | --program-tr=* | --program-t=*)
914    program_transform_name=$ac_optarg ;;
915
916  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
917    ac_prev=pdfdir ;;
918  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
919    pdfdir=$ac_optarg ;;
920
921  -psdir | --psdir | --psdi | --psd | --ps)
922    ac_prev=psdir ;;
923  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
924    psdir=$ac_optarg ;;
925
926  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
927  | -silent | --silent | --silen | --sile | --sil)
928    silent=yes ;;
929
930  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
931    ac_prev=sbindir ;;
932  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
933  | --sbi=* | --sb=*)
934    sbindir=$ac_optarg ;;
935
936  -sharedstatedir | --sharedstatedir | --sharedstatedi \
937  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
938  | --sharedst | --shareds | --shared | --share | --shar \
939  | --sha | --sh)
940    ac_prev=sharedstatedir ;;
941  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
942  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
943  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
944  | --sha=* | --sh=*)
945    sharedstatedir=$ac_optarg ;;
946
947  -site | --site | --sit)
948    ac_prev=site ;;
949  -site=* | --site=* | --sit=*)
950    site=$ac_optarg ;;
951
952  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
953    ac_prev=srcdir ;;
954  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
955    srcdir=$ac_optarg ;;
956
957  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
958  | --syscon | --sysco | --sysc | --sys | --sy)
959    ac_prev=sysconfdir ;;
960  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
961  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
962    sysconfdir=$ac_optarg ;;
963
964  -target | --target | --targe | --targ | --tar | --ta | --t)
965    ac_prev=target_alias ;;
966  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
967    target_alias=$ac_optarg ;;
968
969  -v | -verbose | --verbose | --verbos | --verbo | --verb)
970    verbose=yes ;;
971
972  -version | --version | --versio | --versi | --vers | -V)
973    ac_init_version=: ;;
974
975  -with-* | --with-*)
976    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
977    # Reject names that are not valid shell variable names.
978    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979      as_fn_error $? "invalid package name: $ac_useropt"
980    ac_useropt_orig=$ac_useropt
981    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982    case $ac_user_opts in
983      *"
984"with_$ac_useropt"
985"*) ;;
986      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
987	 ac_unrecognized_sep=', ';;
988    esac
989    eval with_$ac_useropt=\$ac_optarg ;;
990
991  -without-* | --without-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid package name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"with_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval with_$ac_useropt=no ;;
1006
1007  --x)
1008    # Obsolete; use --with-x.
1009    with_x=yes ;;
1010
1011  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1012  | --x-incl | --x-inc | --x-in | --x-i)
1013    ac_prev=x_includes ;;
1014  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1015  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1016    x_includes=$ac_optarg ;;
1017
1018  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1019  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1020    ac_prev=x_libraries ;;
1021  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1022  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1023    x_libraries=$ac_optarg ;;
1024
1025  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1026Try \`$0 --help' for more information"
1027    ;;
1028
1029  *=*)
1030    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1031    # Reject names that are not valid shell variable names.
1032    case $ac_envvar in #(
1033      '' | [0-9]* | *[!_$as_cr_alnum]* )
1034      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1035    esac
1036    eval $ac_envvar=\$ac_optarg
1037    export $ac_envvar ;;
1038
1039  *)
1040    # FIXME: should be removed in autoconf 3.0.
1041    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1042    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1044    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1045    ;;
1046
1047  esac
1048done
1049
1050if test -n "$ac_prev"; then
1051  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1052  as_fn_error $? "missing argument to $ac_option"
1053fi
1054
1055if test -n "$ac_unrecognized_opts"; then
1056  case $enable_option_checking in
1057    no) ;;
1058    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1059    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1060  esac
1061fi
1062
1063# Check all directory arguments for consistency.
1064for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065		datadir sysconfdir sharedstatedir localstatedir includedir \
1066		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067		libdir localedir mandir
1068do
1069  eval ac_val=\$$ac_var
1070  # Remove trailing slashes.
1071  case $ac_val in
1072    */ )
1073      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1074      eval $ac_var=\$ac_val;;
1075  esac
1076  # Be sure to have absolute directory names.
1077  case $ac_val in
1078    [\\/$]* | ?:[\\/]* )  continue;;
1079    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1080  esac
1081  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1082done
1083
1084# There might be people who depend on the old broken behavior: `$host'
1085# used to hold the argument of --host etc.
1086# FIXME: To remove some day.
1087build=$build_alias
1088host=$host_alias
1089target=$target_alias
1090
1091# FIXME: To remove some day.
1092if test "x$host_alias" != x; then
1093  if test "x$build_alias" = x; then
1094    cross_compiling=maybe
1095  elif test "x$build_alias" != "x$host_alias"; then
1096    cross_compiling=yes
1097  fi
1098fi
1099
1100ac_tool_prefix=
1101test -n "$host_alias" && ac_tool_prefix=$host_alias-
1102
1103test "$silent" = yes && exec 6>/dev/null
1104
1105
1106ac_pwd=`pwd` && test -n "$ac_pwd" &&
1107ac_ls_di=`ls -di .` &&
1108ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1109  as_fn_error $? "working directory cannot be determined"
1110test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1111  as_fn_error $? "pwd does not report name of working directory"
1112
1113
1114# Find the source files, if location was not specified.
1115if test -z "$srcdir"; then
1116  ac_srcdir_defaulted=yes
1117  # Try the directory containing this script, then the parent directory.
1118  ac_confdir=`$as_dirname -- "$as_myself" ||
1119$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1120	 X"$as_myself" : 'X\(//\)[^/]' \| \
1121	 X"$as_myself" : 'X\(//\)$' \| \
1122	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1123$as_echo X"$as_myself" |
1124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1125	    s//\1/
1126	    q
1127	  }
1128	  /^X\(\/\/\)[^/].*/{
1129	    s//\1/
1130	    q
1131	  }
1132	  /^X\(\/\/\)$/{
1133	    s//\1/
1134	    q
1135	  }
1136	  /^X\(\/\).*/{
1137	    s//\1/
1138	    q
1139	  }
1140	  s/.*/./; q'`
1141  srcdir=$ac_confdir
1142  if test ! -r "$srcdir/$ac_unique_file"; then
1143    srcdir=..
1144  fi
1145else
1146  ac_srcdir_defaulted=no
1147fi
1148if test ! -r "$srcdir/$ac_unique_file"; then
1149  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1150  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1151fi
1152ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1153ac_abs_confdir=`(
1154	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1155	pwd)`
1156# When building in place, set srcdir=.
1157if test "$ac_abs_confdir" = "$ac_pwd"; then
1158  srcdir=.
1159fi
1160# Remove unnecessary trailing slashes from srcdir.
1161# Double slashes in file names in object file debugging info
1162# mess up M-x gdb in Emacs.
1163case $srcdir in
1164*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165esac
1166for ac_var in $ac_precious_vars; do
1167  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168  eval ac_env_${ac_var}_value=\$${ac_var}
1169  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171done
1172
1173#
1174# Report the --help message.
1175#
1176if test "$ac_init_help" = "long"; then
1177  # Omit some internal or obsolete options to make the list less imposing.
1178  # This message is too long to be a string in the A/UX 3.1 sh.
1179  cat <<_ACEOF
1180\`configure' configures this package to adapt to many kinds of systems.
1181
1182Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185VAR=VALUE.  See below for descriptions of some of the useful variables.
1186
1187Defaults for the options are specified in brackets.
1188
1189Configuration:
1190  -h, --help              display this help and exit
1191      --help=short        display options specific to this package
1192      --help=recursive    display the short help of all the included packages
1193  -V, --version           display version information and exit
1194  -q, --quiet, --silent   do not print \`checking ...' messages
1195      --cache-file=FILE   cache test results in FILE [disabled]
1196  -C, --config-cache      alias for \`--cache-file=config.cache'
1197  -n, --no-create         do not create output files
1198      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1199
1200Installation directories:
1201  --prefix=PREFIX         install architecture-independent files in PREFIX
1202                          [$ac_default_prefix]
1203  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1204                          [PREFIX]
1205
1206By default, \`make install' will install all the files in
1207\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1208an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209for instance \`--prefix=\$HOME'.
1210
1211For better control, use the options below.
1212
1213Fine tuning of the installation directories:
1214  --bindir=DIR            user executables [EPREFIX/bin]
1215  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1216  --libexecdir=DIR        program executables [EPREFIX/libexec]
1217  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1218  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1219  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1220  --libdir=DIR            object code libraries [EPREFIX/lib]
1221  --includedir=DIR        C header files [PREFIX/include]
1222  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1223  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1224  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1225  --infodir=DIR           info documentation [DATAROOTDIR/info]
1226  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1227  --mandir=DIR            man documentation [DATAROOTDIR/man]
1228  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1229  --htmldir=DIR           html documentation [DOCDIR]
1230  --dvidir=DIR            dvi documentation [DOCDIR]
1231  --pdfdir=DIR            pdf documentation [DOCDIR]
1232  --psdir=DIR             ps documentation [DOCDIR]
1233_ACEOF
1234
1235  cat <<\_ACEOF
1236_ACEOF
1237fi
1238
1239if test -n "$ac_init_help"; then
1240
1241  cat <<\_ACEOF
1242
1243Report bugs to the package provider.
1244_ACEOF
1245ac_status=$?
1246fi
1247
1248if test "$ac_init_help" = "recursive"; then
1249  # If there are subdirs, report their specific --help.
1250  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1251    test -d "$ac_dir" ||
1252      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1253      continue
1254    ac_builddir=.
1255
1256case "$ac_dir" in
1257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1258*)
1259  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1260  # A ".." for each directory in $ac_dir_suffix.
1261  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1262  case $ac_top_builddir_sub in
1263  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1264  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1265  esac ;;
1266esac
1267ac_abs_top_builddir=$ac_pwd
1268ac_abs_builddir=$ac_pwd$ac_dir_suffix
1269# for backward compatibility:
1270ac_top_builddir=$ac_top_build_prefix
1271
1272case $srcdir in
1273  .)  # We are building in place.
1274    ac_srcdir=.
1275    ac_top_srcdir=$ac_top_builddir_sub
1276    ac_abs_top_srcdir=$ac_pwd ;;
1277  [\\/]* | ?:[\\/]* )  # Absolute name.
1278    ac_srcdir=$srcdir$ac_dir_suffix;
1279    ac_top_srcdir=$srcdir
1280    ac_abs_top_srcdir=$srcdir ;;
1281  *) # Relative name.
1282    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1283    ac_top_srcdir=$ac_top_build_prefix$srcdir
1284    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1285esac
1286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1287
1288    cd "$ac_dir" || { ac_status=$?; continue; }
1289    # Check for guested configure.
1290    if test -f "$ac_srcdir/configure.gnu"; then
1291      echo &&
1292      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1293    elif test -f "$ac_srcdir/configure"; then
1294      echo &&
1295      $SHELL "$ac_srcdir/configure" --help=recursive
1296    else
1297      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298    fi || ac_status=$?
1299    cd "$ac_pwd" || { ac_status=$?; break; }
1300  done
1301fi
1302
1303test -n "$ac_init_help" && exit $ac_status
1304if $ac_init_version; then
1305  cat <<\_ACEOF
1306configure
1307generated by GNU Autoconf 2.69
1308
1309Copyright (C) 2012 Free Software Foundation, Inc.
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312_ACEOF
1313  exit
1314fi
1315
1316## ------------------------ ##
1317## Autoconf initialization. ##
1318## ------------------------ ##
1319cat >config.log <<_ACEOF
1320This file contains any messages produced by compilers while
1321running configure, to aid debugging if configure makes a mistake.
1322
1323It was created by $as_me, which was
1324generated by GNU Autoconf 2.69.  Invocation command line was
1325
1326  $ $0 $@
1327
1328_ACEOF
1329exec 5>>config.log
1330{
1331cat <<_ASUNAME
1332## --------- ##
1333## Platform. ##
1334## --------- ##
1335
1336hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1337uname -m = `(uname -m) 2>/dev/null || echo unknown`
1338uname -r = `(uname -r) 2>/dev/null || echo unknown`
1339uname -s = `(uname -s) 2>/dev/null || echo unknown`
1340uname -v = `(uname -v) 2>/dev/null || echo unknown`
1341
1342/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1343/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1344
1345/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1346/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1347/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1348/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1349/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1350/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1351/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1352
1353_ASUNAME
1354
1355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356for as_dir in $PATH
1357do
1358  IFS=$as_save_IFS
1359  test -z "$as_dir" && as_dir=.
1360    $as_echo "PATH: $as_dir"
1361  done
1362IFS=$as_save_IFS
1363
1364} >&5
1365
1366cat >&5 <<_ACEOF
1367
1368
1369## ----------- ##
1370## Core tests. ##
1371## ----------- ##
1372
1373_ACEOF
1374
1375
1376# Keep a trace of the command line.
1377# Strip out --no-create and --no-recursion so they do not pile up.
1378# Strip out --silent because we don't want to record it for future runs.
1379# Also quote any args containing shell meta-characters.
1380# Make two passes to allow for proper duplicate-argument suppression.
1381ac_configure_args=
1382ac_configure_args0=
1383ac_configure_args1=
1384ac_must_keep_next=false
1385for ac_pass in 1 2
1386do
1387  for ac_arg
1388  do
1389    case $ac_arg in
1390    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1391    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1392    | -silent | --silent | --silen | --sile | --sil)
1393      continue ;;
1394    *\'*)
1395      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1396    esac
1397    case $ac_pass in
1398    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1399    2)
1400      as_fn_append ac_configure_args1 " '$ac_arg'"
1401      if test $ac_must_keep_next = true; then
1402	ac_must_keep_next=false # Got value, back to normal.
1403      else
1404	case $ac_arg in
1405	  *=* | --config-cache | -C | -disable-* | --disable-* \
1406	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1407	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1408	  | -with-* | --with-* | -without-* | --without-* | --x)
1409	    case "$ac_configure_args0 " in
1410	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1411	    esac
1412	    ;;
1413	  -* ) ac_must_keep_next=true ;;
1414	esac
1415      fi
1416      as_fn_append ac_configure_args " '$ac_arg'"
1417      ;;
1418    esac
1419  done
1420done
1421{ ac_configure_args0=; unset ac_configure_args0;}
1422{ ac_configure_args1=; unset ac_configure_args1;}
1423
1424# When interrupted or exit'd, cleanup temporary files, and complete
1425# config.log.  We remove comments because anyway the quotes in there
1426# would cause problems or look ugly.
1427# WARNING: Use '\'' to represent an apostrophe within the trap.
1428# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1429trap 'exit_status=$?
1430  # Save into config.log some information that might help in debugging.
1431  {
1432    echo
1433
1434    $as_echo "## ---------------- ##
1435## Cache variables. ##
1436## ---------------- ##"
1437    echo
1438    # The following way of writing the cache mishandles newlines in values,
1439(
1440  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1441    eval ac_val=\$$ac_var
1442    case $ac_val in #(
1443    *${as_nl}*)
1444      case $ac_var in #(
1445      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1447      esac
1448      case $ac_var in #(
1449      _ | IFS | as_nl) ;; #(
1450      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1451      *) { eval $ac_var=; unset $ac_var;} ;;
1452      esac ;;
1453    esac
1454  done
1455  (set) 2>&1 |
1456    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1457    *${as_nl}ac_space=\ *)
1458      sed -n \
1459	"s/'\''/'\''\\\\'\'''\''/g;
1460	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1461      ;; #(
1462    *)
1463      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1464      ;;
1465    esac |
1466    sort
1467)
1468    echo
1469
1470    $as_echo "## ----------------- ##
1471## Output variables. ##
1472## ----------------- ##"
1473    echo
1474    for ac_var in $ac_subst_vars
1475    do
1476      eval ac_val=\$$ac_var
1477      case $ac_val in
1478      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1479      esac
1480      $as_echo "$ac_var='\''$ac_val'\''"
1481    done | sort
1482    echo
1483
1484    if test -n "$ac_subst_files"; then
1485      $as_echo "## ------------------- ##
1486## File substitutions. ##
1487## ------------------- ##"
1488      echo
1489      for ac_var in $ac_subst_files
1490      do
1491	eval ac_val=\$$ac_var
1492	case $ac_val in
1493	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1494	esac
1495	$as_echo "$ac_var='\''$ac_val'\''"
1496      done | sort
1497      echo
1498    fi
1499
1500    if test -s confdefs.h; then
1501      $as_echo "## ----------- ##
1502## confdefs.h. ##
1503## ----------- ##"
1504      echo
1505      cat confdefs.h
1506      echo
1507    fi
1508    test "$ac_signal" != 0 &&
1509      $as_echo "$as_me: caught signal $ac_signal"
1510    $as_echo "$as_me: exit $exit_status"
1511  } >&5
1512  rm -f core *.core core.conftest.* &&
1513    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1514    exit $exit_status
1515' 0
1516for ac_signal in 1 2 13 15; do
1517  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1518done
1519ac_signal=0
1520
1521# confdefs.h avoids OS command line length limits that DEFS can exceed.
1522rm -f -r conftest* confdefs.h
1523
1524$as_echo "/* confdefs.h */" > confdefs.h
1525
1526# Predefined preprocessor variables.
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_NAME "$PACKAGE_NAME"
1530_ACEOF
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1534_ACEOF
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_VERSION "$PACKAGE_VERSION"
1538_ACEOF
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_STRING "$PACKAGE_STRING"
1542_ACEOF
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_URL "$PACKAGE_URL"
1550_ACEOF
1551
1552
1553# Let the site file select an alternate cache file if it wants to.
1554# Prefer an explicitly selected file to automatically selected ones.
1555ac_site_file1=NONE
1556ac_site_file2=NONE
1557if test -n "$CONFIG_SITE"; then
1558  # We do not want a PATH search for config.site.
1559  case $CONFIG_SITE in #((
1560    -*)  ac_site_file1=./$CONFIG_SITE;;
1561    */*) ac_site_file1=$CONFIG_SITE;;
1562    *)   ac_site_file1=./$CONFIG_SITE;;
1563  esac
1564elif test "x$prefix" != xNONE; then
1565  ac_site_file1=$prefix/share/config.site
1566  ac_site_file2=$prefix/etc/config.site
1567else
1568  ac_site_file1=$ac_default_prefix/share/config.site
1569  ac_site_file2=$ac_default_prefix/etc/config.site
1570fi
1571for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1572do
1573  test "x$ac_site_file" = xNONE && continue
1574  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1575    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1576$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1577    sed 's/^/| /' "$ac_site_file" >&5
1578    . "$ac_site_file" \
1579      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1581as_fn_error $? "failed to load site script $ac_site_file
1582See \`config.log' for more details" "$LINENO" 5; }
1583  fi
1584done
1585
1586if test -r "$cache_file"; then
1587  # Some versions of bash will fail to source /dev/null (special files
1588  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1589  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1590    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1591$as_echo "$as_me: loading cache $cache_file" >&6;}
1592    case $cache_file in
1593      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1594      *)                      . "./$cache_file";;
1595    esac
1596  fi
1597else
1598  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1599$as_echo "$as_me: creating cache $cache_file" >&6;}
1600  >$cache_file
1601fi
1602
1603# Check that the precious variables saved in the cache have kept the same
1604# value.
1605ac_cache_corrupted=false
1606for ac_var in $ac_precious_vars; do
1607  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608  eval ac_new_set=\$ac_env_${ac_var}_set
1609  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1610  eval ac_new_val=\$ac_env_${ac_var}_value
1611  case $ac_old_set,$ac_new_set in
1612    set,)
1613      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615      ac_cache_corrupted=: ;;
1616    ,set)
1617      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1618$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619      ac_cache_corrupted=: ;;
1620    ,);;
1621    *)
1622      if test "x$ac_old_val" != "x$ac_new_val"; then
1623	# differences in whitespace do not lead to failure.
1624	ac_old_val_w=`echo x $ac_old_val`
1625	ac_new_val_w=`echo x $ac_new_val`
1626	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1627	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1628$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1629	  ac_cache_corrupted=:
1630	else
1631	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1632$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1633	  eval $ac_var=\$ac_old_val
1634	fi
1635	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1636$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1637	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1638$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1639      fi;;
1640  esac
1641  # Pass precious variables to config.status.
1642  if test "$ac_new_set" = set; then
1643    case $ac_new_val in
1644    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1645    *) ac_arg=$ac_var=$ac_new_val ;;
1646    esac
1647    case " $ac_configure_args " in
1648      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1649      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1650    esac
1651  fi
1652done
1653if $ac_cache_corrupted; then
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1656  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1657$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1658  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1659fi
1660## -------------------- ##
1661## Main body of script. ##
1662## -------------------- ##
1663
1664ac_ext=c
1665ac_cpp='$CPP $CPPFLAGS'
1666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1668ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669
1670
1671
1672ac_aux_dir=
1673for ac_dir in ../../tclconfig "$srcdir"/../../tclconfig; do
1674  if test -f "$ac_dir/install-sh"; then
1675    ac_aux_dir=$ac_dir
1676    ac_install_sh="$ac_aux_dir/install-sh -c"
1677    break
1678  elif test -f "$ac_dir/install.sh"; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/install.sh -c"
1681    break
1682  elif test -f "$ac_dir/shtool"; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/shtool install -c"
1685    break
1686  fi
1687done
1688if test -z "$ac_aux_dir"; then
1689  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../tclconfig \"$srcdir\"/../../tclconfig" "$LINENO" 5
1690fi
1691
1692# These three variables are undocumented and unsupported,
1693# and are intended to be withdrawn in a future Autoconf release.
1694# They can cause serious problems if a builder's source tree is in a directory
1695# whose full name contains unusual characters.
1696ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1697ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1698ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1699
1700
1701CONFIGDIR=${srcdir}/../../tclconfig
1702
1703
1704#----------------------------------------------------------------------
1705# __CHANGE__
1706# Set your package name and version numbers here.  The NODOT_VERSION is
1707# required for constructing the library name on systems that don't like
1708# dots in library names (Windows).  The VERSION variable is used on the
1709# other systems.
1710#----------------------------------------------------------------------
1711
1712PACKAGE=tdomhtml
1713
1714MAJOR_VERSION=0
1715MINOR_VERSION=1
1716PATCHLEVEL=0
1717
1718VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCHLEVEL}
1719NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}${PATCHLEVEL}
1720
1721
1722
1723
1724#--------------------------------------------------------------------
1725# We put this here so that you can compile with -DVERSION="1.2" to
1726# encode the package version directly into the source files.
1727#--------------------------------------------------------------------
1728
1729eval cat >>confdefs.h <<_ACEOF
1730#define VERSION "${VERSION}"
1731_ACEOF
1732
1733
1734#--------------------------------------------------------------------
1735# Call TEA_INIT as the first TEA_ macro to set up initial vars.
1736# This will define a ${TEA_PLATFORM} variable == "unix" or "windows".
1737#--------------------------------------------------------------------
1738
1739#TEA_INIT
1740
1741#--------------------------------------------------------------------
1742# Load the tclConfig.sh file
1743#--------------------------------------------------------------------
1744
1745#TEA_PATH_TCLCONFIG
1746#TEA_LOAD_TCLCONFIG
1747
1748#--------------------------------------------------------------------
1749# Load the tkConfig.sh file if necessary (Tk extension)
1750#--------------------------------------------------------------------
1751
1752#TEA_PATH_TKCONFIG
1753#TEA_LOAD_TKCONFIG
1754
1755#-----------------------------------------------------------------------
1756# Handle the --prefix=... option by defaulting to what Tcl gave.
1757# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
1758#-----------------------------------------------------------------------
1759
1760#TEA_PREFIX
1761
1762#-----------------------------------------------------------------------
1763# Standard compiler checks.
1764# This sets up CC by using the CC env var, or looks for gcc otherwise.
1765# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
1766# the basic setup necessary to compile executables.
1767#-----------------------------------------------------------------------
1768
1769#TEA_SETUP_COMPILER
1770
1771# Since we're not compiling, only installing...
1772# Find a good install program.  We prefer a C program (faster),
1773# so one script is as good as another.  But avoid the broken or
1774# incompatible versions:
1775# SysV /etc/install, /usr/sbin/install
1776# SunOS /usr/etc/install
1777# IRIX /sbin/install
1778# AIX /bin/install
1779# AmigaOS /C/install, which installs bootblocks on floppy discs
1780# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783# OS/2's system install, which has a completely different semantic
1784# ./install, which can be erroneously created by make from ./install.sh.
1785# Reject install programs that cannot install multiple files.
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1787$as_echo_n "checking for a BSD-compatible install... " >&6; }
1788if test -z "$INSTALL"; then
1789if ${ac_cv_path_install+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795  IFS=$as_save_IFS
1796  test -z "$as_dir" && as_dir=.
1797    # Account for people who put trailing slashes in PATH elements.
1798case $as_dir/ in #((
1799  ./ | .// | /[cC]/* | \
1800  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1801  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1802  /usr/ucb/* ) ;;
1803  *)
1804    # OSF1 and SCO ODT 3.0 have their own names for install.
1805    # Don't use installbsd from OSF since it installs stuff as root
1806    # by default.
1807    for ac_prog in ginstall scoinst install; do
1808      for ac_exec_ext in '' $ac_executable_extensions; do
1809	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1810	  if test $ac_prog = install &&
1811	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812	    # AIX install.  It has an incompatible calling convention.
1813	    :
1814	  elif test $ac_prog = install &&
1815	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816	    # program-specific install script used by HP pwplus--don't use.
1817	    :
1818	  else
1819	    rm -rf conftest.one conftest.two conftest.dir
1820	    echo one > conftest.one
1821	    echo two > conftest.two
1822	    mkdir conftest.dir
1823	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1824	      test -s conftest.one && test -s conftest.two &&
1825	      test -s conftest.dir/conftest.one &&
1826	      test -s conftest.dir/conftest.two
1827	    then
1828	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1829	      break 3
1830	    fi
1831	  fi
1832	fi
1833      done
1834    done
1835    ;;
1836esac
1837
1838  done
1839IFS=$as_save_IFS
1840
1841rm -rf conftest.one conftest.two conftest.dir
1842
1843fi
1844  if test "${ac_cv_path_install+set}" = set; then
1845    INSTALL=$ac_cv_path_install
1846  else
1847    # As a last resort, use the slow shell script.  Don't cache a
1848    # value for INSTALL within a source directory, because that will
1849    # break other packages using the cache if that directory is
1850    # removed, or if the value is a relative name.
1851    INSTALL=$ac_install_sh
1852  fi
1853fi
1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1855$as_echo "$INSTALL" >&6; }
1856
1857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1858# It thinks the first close brace ends the variable substitution.
1859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1860
1861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1862
1863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1864
1865
1866#--------------------------------------------------------------------
1867# __CHANGE__
1868# Choose which headers you need.  Extension authors should try very
1869# hard to only rely on the Tcl public header files.  Internal headers
1870# contain private data structures and are subject to change without
1871# notice.
1872# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
1873#--------------------------------------------------------------------
1874
1875#TEA_PUBLIC_TCL_HEADERS
1876#TEA_PRIVATE_TCL_HEADERS
1877
1878#TEA_PUBLIC_TK_HEADERS
1879#TEA_PRIVATE_TK_HEADERS
1880
1881#--------------------------------------------------------------------
1882# __CHANGE__
1883# A few miscellaneous platform-specific items:
1884#--------------------------------------------------------------------
1885
1886if test "${TEA_PLATFORM}" = "windows" ; then
1887    CLEANFILES="pkgIndex.tcl"
1888    EXTRA_SOURCES='$(WIN_SOURCES)'
1889else
1890    CLEANFILES="pkgIndex.tcl"
1891    EXTRA_SOURCES='$(UNIX_SOURCES)'
1892fi
1893
1894
1895
1896
1897#--------------------------------------------------------------------
1898# Check whether --enable-threads or --disable-threads was given.
1899#--------------------------------------------------------------------
1900
1901#TEA_ENABLE_THREADS
1902
1903#--------------------------------------------------------------------
1904# The statement below defines a collection of symbols related to
1905# building as a shared library instead of a static library.
1906#--------------------------------------------------------------------
1907
1908#TEA_ENABLE_SHARED
1909
1910#--------------------------------------------------------------------
1911# This macro figures out what flags to use with the compiler/linker
1912# when building shared/static debug/optimized objects.  This information
1913# can be taken from the tclConfig.sh file, but this figures it all out.
1914#--------------------------------------------------------------------
1915
1916#TEA_CONFIG_CFLAGS
1917
1918#--------------------------------------------------------------------
1919# Set the default compiler switches based on the --enable-symbols option.
1920#--------------------------------------------------------------------
1921
1922#TEA_ENABLE_SYMBOLS
1923
1924#--------------------------------------------------------------------
1925# Everyone should be linking against the Tcl stub library.  If you
1926# can't for some reason, remove this definition.  If you aren't using
1927# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
1928# link against the non-stubbed Tcl library.  Add Tk too if necessary.
1929#--------------------------------------------------------------------
1930
1931#AC_DEFINE(USE_TCL_STUBS)
1932#AC_DEFINE(USE_TK_STUBS)
1933
1934#--------------------------------------------------------------------
1935# This macro generates a line to use when building a library.  It
1936# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
1937# and TEA_LOAD_TCLCONFIG macros above.
1938# For tDOM we always build both, static and shared libraries
1939#--------------------------------------------------------------------
1940
1941#TEA_MAKE_LIB
1942
1943#--------------------------------------------------------------------
1944# __CHANGE__
1945# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
1946#--------------------------------------------------------------------
1947
1948#LIBS="${LIBS} --lsuperfly"
1949
1950#--------------------------------------------------------------------
1951# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
1952# file during the install process.  Don't run the TCLSH_PROG through
1953# ${CYGPATH} because it's being used directly by make.
1954# Require that we use a tclsh shell version 8.2 or later since earlier
1955# versions have bugs in the pkg_mkIndex routine.
1956# Add WISH as well if this is a Tk extension.
1957#--------------------------------------------------------------------
1958
1959#TEA_PROG_TCLSH
1960#TEA_PROG_WISH
1961
1962#--------------------------------------------------------------------
1963# Add some private include directories
1964#--------------------------------------------------------------------
1965
1966#--------------------------------------------------------------------
1967# Finally, substitute all of the various values into the Makefile.
1968# You may alternatively have a special pkgIndex.tcl.in or other files
1969# which require substituting th AC variables in.  Include these here.
1970#--------------------------------------------------------------------
1971
1972ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
1973
1974cat >confcache <<\_ACEOF
1975# This file is a shell script that caches the results of configure
1976# tests run on this system so they can be shared between configure
1977# scripts and configure runs, see configure's option --config-cache.
1978# It is not useful on other systems.  If it contains results you don't
1979# want to keep, you may remove or edit it.
1980#
1981# config.status only pays attention to the cache file if you give it
1982# the --recheck option to rerun configure.
1983#
1984# `ac_cv_env_foo' variables (set or unset) will be overridden when
1985# loading this file, other *unset* `ac_cv_foo' will be assigned the
1986# following values.
1987
1988_ACEOF
1989
1990# The following way of writing the cache mishandles newlines in values,
1991# but we know of no workaround that is simple, portable, and efficient.
1992# So, we kill variables containing newlines.
1993# Ultrix sh set writes to stderr and can't be redirected directly,
1994# and sets the high bit in the cache file unless we assign to the vars.
1995(
1996  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1997    eval ac_val=\$$ac_var
1998    case $ac_val in #(
1999    *${as_nl}*)
2000      case $ac_var in #(
2001      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003      esac
2004      case $ac_var in #(
2005      _ | IFS | as_nl) ;; #(
2006      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007      *) { eval $ac_var=; unset $ac_var;} ;;
2008      esac ;;
2009    esac
2010  done
2011
2012  (set) 2>&1 |
2013    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2014    *${as_nl}ac_space=\ *)
2015      # `set' does not quote correctly, so add quotes: double-quote
2016      # substitution turns \\\\ into \\, and sed turns \\ into \.
2017      sed -n \
2018	"s/'/'\\\\''/g;
2019	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2020      ;; #(
2021    *)
2022      # `set' quotes correctly as required by POSIX, so do not add quotes.
2023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024      ;;
2025    esac |
2026    sort
2027) |
2028  sed '
2029     /^ac_cv_env_/b end
2030     t clear
2031     :clear
2032     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2033     t end
2034     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2035     :end' >>confcache
2036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2037  if test -w "$cache_file"; then
2038    if test "x$cache_file" != "x/dev/null"; then
2039      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2040$as_echo "$as_me: updating cache $cache_file" >&6;}
2041      if test ! -f "$cache_file" || test -h "$cache_file"; then
2042	cat confcache >"$cache_file"
2043      else
2044        case $cache_file in #(
2045        */* | ?:*)
2046	  mv -f confcache "$cache_file"$$ &&
2047	  mv -f "$cache_file"$$ "$cache_file" ;; #(
2048        *)
2049	  mv -f confcache "$cache_file" ;;
2050	esac
2051      fi
2052    fi
2053  else
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2055$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2056  fi
2057fi
2058rm -f confcache
2059
2060test "x$prefix" = xNONE && prefix=$ac_default_prefix
2061# Let make expand exec_prefix.
2062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2063
2064# Transform confdefs.h into DEFS.
2065# Protect against shell expansion while executing Makefile rules.
2066# Protect against Makefile macro expansion.
2067#
2068# If the first sed substitution is executed (which looks for macros that
2069# take arguments), then branch to the quote section.  Otherwise,
2070# look for a macro that doesn't take arguments.
2071ac_script='
2072:mline
2073/\\$/{
2074 N
2075 s,\\\n,,
2076 b mline
2077}
2078t clear
2079:clear
2080s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
2081t quote
2082s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
2083t quote
2084b any
2085:quote
2086s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2087s/\[/\\&/g
2088s/\]/\\&/g
2089s/\$/$$/g
2090H
2091:any
2092${
2093	g
2094	s/^\n//
2095	s/\n/ /g
2096	p
2097}
2098'
2099DEFS=`sed -n "$ac_script" confdefs.h`
2100
2101
2102ac_libobjs=
2103ac_ltlibobjs=
2104U=
2105for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2106  # 1. Remove the extension, and $U if already installed.
2107  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2108  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2109  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2110  #    will be set to the directory where LIBOBJS objects are built.
2111  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2112  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2113done
2114LIBOBJS=$ac_libobjs
2115
2116LTLIBOBJS=$ac_ltlibobjs
2117
2118
2119
2120: "${CONFIG_STATUS=./config.status}"
2121ac_write_fail=0
2122ac_clean_files_save=$ac_clean_files
2123ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2125$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2126as_write_fail=0
2127cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2128#! $SHELL
2129# Generated by $as_me.
2130# Run this file to recreate the current configuration.
2131# Compiler output produced by configure, useful for debugging
2132# configure, is in config.log if it exists.
2133
2134debug=false
2135ac_cs_recheck=false
2136ac_cs_silent=false
2137
2138SHELL=\${CONFIG_SHELL-$SHELL}
2139export SHELL
2140_ASEOF
2141cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2142## -------------------- ##
2143## M4sh Initialization. ##
2144## -------------------- ##
2145
2146# Be more Bourne compatible
2147DUALCASE=1; export DUALCASE # for MKS sh
2148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2149  emulate sh
2150  NULLCMD=:
2151  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2152  # is contrary to our usage.  Disable this feature.
2153  alias -g '${1+"$@"}'='"$@"'
2154  setopt NO_GLOB_SUBST
2155else
2156  case `(set -o) 2>/dev/null` in #(
2157  *posix*) :
2158    set -o posix ;; #(
2159  *) :
2160     ;;
2161esac
2162fi
2163
2164
2165as_nl='
2166'
2167export as_nl
2168# Printing a long string crashes Solaris 7 /usr/bin/printf.
2169as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2171as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2172# Prefer a ksh shell builtin over an external printf program on Solaris,
2173# but without wasting forks for bash or zsh.
2174if test -z "$BASH_VERSION$ZSH_VERSION" \
2175    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2176  as_echo='print -r --'
2177  as_echo_n='print -rn --'
2178elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2179  as_echo='printf %s\n'
2180  as_echo_n='printf %s'
2181else
2182  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2183    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2184    as_echo_n='/usr/ucb/echo -n'
2185  else
2186    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2187    as_echo_n_body='eval
2188      arg=$1;
2189      case $arg in #(
2190      *"$as_nl"*)
2191	expr "X$arg" : "X\\(.*\\)$as_nl";
2192	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2193      esac;
2194      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2195    '
2196    export as_echo_n_body
2197    as_echo_n='sh -c $as_echo_n_body as_echo'
2198  fi
2199  export as_echo_body
2200  as_echo='sh -c $as_echo_body as_echo'
2201fi
2202
2203# The user is always right.
2204if test "${PATH_SEPARATOR+set}" != set; then
2205  PATH_SEPARATOR=:
2206  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2207    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2208      PATH_SEPARATOR=';'
2209  }
2210fi
2211
2212
2213# IFS
2214# We need space, tab and new line, in precisely that order.  Quoting is
2215# there to prevent editors from complaining about space-tab.
2216# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2217# splitting by setting IFS to empty value.)
2218IFS=" ""	$as_nl"
2219
2220# Find who we are.  Look in the path if we contain no directory separator.
2221as_myself=
2222case $0 in #((
2223  *[\\/]* ) as_myself=$0 ;;
2224  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227  IFS=$as_save_IFS
2228  test -z "$as_dir" && as_dir=.
2229    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2230  done
2231IFS=$as_save_IFS
2232
2233     ;;
2234esac
2235# We did not find ourselves, most probably we were run as `sh COMMAND'
2236# in which case we are not to be found in the path.
2237if test "x$as_myself" = x; then
2238  as_myself=$0
2239fi
2240if test ! -f "$as_myself"; then
2241  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2242  exit 1
2243fi
2244
2245# Unset variables that we do not need and which cause bugs (e.g. in
2246# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
2247# suppresses any "Segmentation fault" message there.  '((' could
2248# trigger a bug in pdksh 5.2.14.
2249for as_var in BASH_ENV ENV MAIL MAILPATH
2250do eval test x\${$as_var+set} = xset \
2251  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2252done
2253PS1='$ '
2254PS2='> '
2255PS4='+ '
2256
2257# NLS nuisances.
2258LC_ALL=C
2259export LC_ALL
2260LANGUAGE=C
2261export LANGUAGE
2262
2263# CDPATH.
2264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2265
2266
2267# as_fn_error STATUS ERROR [LINENO LOG_FD]
2268# ----------------------------------------
2269# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2270# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2271# script with STATUS, using 1 if that was 0.
2272as_fn_error ()
2273{
2274  as_status=$1; test $as_status -eq 0 && as_status=1
2275  if test "$4"; then
2276    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2278  fi
2279  $as_echo "$as_me: error: $2" >&2
2280  as_fn_exit $as_status
2281} # as_fn_error
2282
2283
2284# as_fn_set_status STATUS
2285# -----------------------
2286# Set $? to STATUS, without forking.
2287as_fn_set_status ()
2288{
2289  return $1
2290} # as_fn_set_status
2291
2292# as_fn_exit STATUS
2293# -----------------
2294# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2295as_fn_exit ()
2296{
2297  set +e
2298  as_fn_set_status $1
2299  exit $1
2300} # as_fn_exit
2301
2302# as_fn_unset VAR
2303# ---------------
2304# Portably unset VAR.
2305as_fn_unset ()
2306{
2307  { eval $1=; unset $1;}
2308}
2309as_unset=as_fn_unset
2310# as_fn_append VAR VALUE
2311# ----------------------
2312# Append the text in VALUE to the end of the definition contained in VAR. Take
2313# advantage of any shell optimizations that allow amortized linear growth over
2314# repeated appends, instead of the typical quadratic growth present in naive
2315# implementations.
2316if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2317  eval 'as_fn_append ()
2318  {
2319    eval $1+=\$2
2320  }'
2321else
2322  as_fn_append ()
2323  {
2324    eval $1=\$$1\$2
2325  }
2326fi # as_fn_append
2327
2328# as_fn_arith ARG...
2329# ------------------
2330# Perform arithmetic evaluation on the ARGs, and store the result in the
2331# global $as_val. Take advantage of shells that can avoid forks. The arguments
2332# must be portable across $(()) and expr.
2333if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2334  eval 'as_fn_arith ()
2335  {
2336    as_val=$(( $* ))
2337  }'
2338else
2339  as_fn_arith ()
2340  {
2341    as_val=`expr "$@" || test $? -eq 1`
2342  }
2343fi # as_fn_arith
2344
2345
2346if expr a : '\(a\)' >/dev/null 2>&1 &&
2347   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2348  as_expr=expr
2349else
2350  as_expr=false
2351fi
2352
2353if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2354  as_basename=basename
2355else
2356  as_basename=false
2357fi
2358
2359if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2360  as_dirname=dirname
2361else
2362  as_dirname=false
2363fi
2364
2365as_me=`$as_basename -- "$0" ||
2366$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2367	 X"$0" : 'X\(//\)$' \| \
2368	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2369$as_echo X/"$0" |
2370    sed '/^.*\/\([^/][^/]*\)\/*$/{
2371	    s//\1/
2372	    q
2373	  }
2374	  /^X\/\(\/\/\)$/{
2375	    s//\1/
2376	    q
2377	  }
2378	  /^X\/\(\/\).*/{
2379	    s//\1/
2380	    q
2381	  }
2382	  s/.*/./; q'`
2383
2384# Avoid depending upon Character Ranges.
2385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2388as_cr_digits='0123456789'
2389as_cr_alnum=$as_cr_Letters$as_cr_digits
2390
2391ECHO_C= ECHO_N= ECHO_T=
2392case `echo -n x` in #(((((
2393-n*)
2394  case `echo 'xy\c'` in
2395  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
2396  xy)  ECHO_C='\c';;
2397  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
2398       ECHO_T='	';;
2399  esac;;
2400*)
2401  ECHO_N='-n';;
2402esac
2403
2404rm -f conf$$ conf$$.exe conf$$.file
2405if test -d conf$$.dir; then
2406  rm -f conf$$.dir/conf$$.file
2407else
2408  rm -f conf$$.dir
2409  mkdir conf$$.dir 2>/dev/null
2410fi
2411if (echo >conf$$.file) 2>/dev/null; then
2412  if ln -s conf$$.file conf$$ 2>/dev/null; then
2413    as_ln_s='ln -s'
2414    # ... but there are two gotchas:
2415    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2416    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2417    # In both cases, we have to default to `cp -pR'.
2418    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2419      as_ln_s='cp -pR'
2420  elif ln conf$$.file conf$$ 2>/dev/null; then
2421    as_ln_s=ln
2422  else
2423    as_ln_s='cp -pR'
2424  fi
2425else
2426  as_ln_s='cp -pR'
2427fi
2428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2429rmdir conf$$.dir 2>/dev/null
2430
2431
2432# as_fn_mkdir_p
2433# -------------
2434# Create "$as_dir" as a directory, including parents if necessary.
2435as_fn_mkdir_p ()
2436{
2437
2438  case $as_dir in #(
2439  -*) as_dir=./$as_dir;;
2440  esac
2441  test -d "$as_dir" || eval $as_mkdir_p || {
2442    as_dirs=
2443    while :; do
2444      case $as_dir in #(
2445      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2446      *) as_qdir=$as_dir;;
2447      esac
2448      as_dirs="'$as_qdir' $as_dirs"
2449      as_dir=`$as_dirname -- "$as_dir" ||
2450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2451	 X"$as_dir" : 'X\(//\)[^/]' \| \
2452	 X"$as_dir" : 'X\(//\)$' \| \
2453	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2454$as_echo X"$as_dir" |
2455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2456	    s//\1/
2457	    q
2458	  }
2459	  /^X\(\/\/\)[^/].*/{
2460	    s//\1/
2461	    q
2462	  }
2463	  /^X\(\/\/\)$/{
2464	    s//\1/
2465	    q
2466	  }
2467	  /^X\(\/\).*/{
2468	    s//\1/
2469	    q
2470	  }
2471	  s/.*/./; q'`
2472      test -d "$as_dir" && break
2473    done
2474    test -z "$as_dirs" || eval "mkdir $as_dirs"
2475  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2476
2477
2478} # as_fn_mkdir_p
2479if mkdir -p . 2>/dev/null; then
2480  as_mkdir_p='mkdir -p "$as_dir"'
2481else
2482  test -d ./-p && rmdir ./-p
2483  as_mkdir_p=false
2484fi
2485
2486
2487# as_fn_executable_p FILE
2488# -----------------------
2489# Test if FILE is an executable regular file.
2490as_fn_executable_p ()
2491{
2492  test -f "$1" && test -x "$1"
2493} # as_fn_executable_p
2494as_test_x='test -x'
2495as_executable_p=as_fn_executable_p
2496
2497# Sed expression to map a string onto a valid CPP name.
2498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2499
2500# Sed expression to map a string onto a valid variable name.
2501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2502
2503
2504exec 6>&1
2505## ----------------------------------- ##
2506## Main body of $CONFIG_STATUS script. ##
2507## ----------------------------------- ##
2508_ASEOF
2509test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2510
2511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2512# Save the log message, to keep $0 and so on meaningful, and to
2513# report actual input values of CONFIG_FILES etc. instead of their
2514# values after options handling.
2515ac_log="
2516This file was extended by $as_me, which was
2517generated by GNU Autoconf 2.69.  Invocation command line was
2518
2519  CONFIG_FILES    = $CONFIG_FILES
2520  CONFIG_HEADERS  = $CONFIG_HEADERS
2521  CONFIG_LINKS    = $CONFIG_LINKS
2522  CONFIG_COMMANDS = $CONFIG_COMMANDS
2523  $ $0 $@
2524
2525on `(hostname || uname -n) 2>/dev/null | sed 1q`
2526"
2527
2528_ACEOF
2529
2530case $ac_config_files in *"
2531"*) set x $ac_config_files; shift; ac_config_files=$*;;
2532esac
2533
2534
2535
2536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2537# Files that config.status was made for.
2538config_files="$ac_config_files"
2539
2540_ACEOF
2541
2542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2543ac_cs_usage="\
2544\`$as_me' instantiates files and other configuration actions
2545from templates according to the current configuration.  Unless the files
2546and actions are specified as TAGs, all are instantiated by default.
2547
2548Usage: $0 [OPTION]... [TAG]...
2549
2550  -h, --help       print this help, then exit
2551  -V, --version    print version number and configuration settings, then exit
2552      --config     print configuration, then exit
2553  -q, --quiet, --silent
2554                   do not print progress messages
2555  -d, --debug      don't remove temporary files
2556      --recheck    update $as_me by reconfiguring in the same conditions
2557      --file=FILE[:TEMPLATE]
2558                   instantiate the configuration file FILE
2559
2560Configuration files:
2561$config_files
2562
2563Report bugs to the package provider."
2564
2565_ACEOF
2566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2568ac_cs_version="\\
2569config.status
2570configured by $0, generated by GNU Autoconf 2.69,
2571  with options \\"\$ac_cs_config\\"
2572
2573Copyright (C) 2012 Free Software Foundation, Inc.
2574This config.status script is free software; the Free Software Foundation
2575gives unlimited permission to copy, distribute and modify it."
2576
2577ac_pwd='$ac_pwd'
2578srcdir='$srcdir'
2579INSTALL='$INSTALL'
2580test -n "\$AWK" || AWK=awk
2581_ACEOF
2582
2583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2584# The default lists apply if the user does not specify any file.
2585ac_need_defaults=:
2586while test $# != 0
2587do
2588  case $1 in
2589  --*=?*)
2590    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2591    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2592    ac_shift=:
2593    ;;
2594  --*=)
2595    ac_option=`expr "X$1" : 'X\([^=]*\)='`
2596    ac_optarg=
2597    ac_shift=:
2598    ;;
2599  *)
2600    ac_option=$1
2601    ac_optarg=$2
2602    ac_shift=shift
2603    ;;
2604  esac
2605
2606  case $ac_option in
2607  # Handling of the options.
2608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2609    ac_cs_recheck=: ;;
2610  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2611    $as_echo "$ac_cs_version"; exit ;;
2612  --config | --confi | --conf | --con | --co | --c )
2613    $as_echo "$ac_cs_config"; exit ;;
2614  --debug | --debu | --deb | --de | --d | -d )
2615    debug=: ;;
2616  --file | --fil | --fi | --f )
2617    $ac_shift
2618    case $ac_optarg in
2619    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2620    '') as_fn_error $? "missing file argument" ;;
2621    esac
2622    as_fn_append CONFIG_FILES " '$ac_optarg'"
2623    ac_need_defaults=false;;
2624  --he | --h |  --help | --hel | -h )
2625    $as_echo "$ac_cs_usage"; exit ;;
2626  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2627  | -silent | --silent | --silen | --sile | --sil | --si | --s)
2628    ac_cs_silent=: ;;
2629
2630  # This is an error.
2631  -*) as_fn_error $? "unrecognized option: \`$1'
2632Try \`$0 --help' for more information." ;;
2633
2634  *) as_fn_append ac_config_targets " $1"
2635     ac_need_defaults=false ;;
2636
2637  esac
2638  shift
2639done
2640
2641ac_configure_extra_args=
2642
2643if $ac_cs_silent; then
2644  exec 6>/dev/null
2645  ac_configure_extra_args="$ac_configure_extra_args --silent"
2646fi
2647
2648_ACEOF
2649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2650if \$ac_cs_recheck; then
2651  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2652  shift
2653  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
2654  CONFIG_SHELL='$SHELL'
2655  export CONFIG_SHELL
2656  exec "\$@"
2657fi
2658
2659_ACEOF
2660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2661exec 5>>config.log
2662{
2663  echo
2664  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2665## Running $as_me. ##
2666_ASBOX
2667  $as_echo "$ac_log"
2668} >&5
2669
2670_ACEOF
2671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2672_ACEOF
2673
2674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2675
2676# Handling of arguments.
2677for ac_config_target in $ac_config_targets
2678do
2679  case $ac_config_target in
2680    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2681    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
2682
2683  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2684  esac
2685done
2686
2687
2688# If the user did not use the arguments to specify the items to instantiate,
2689# then the envvar interface is used.  Set only those that are not.
2690# We use the long form for the default assignment because of an extremely
2691# bizarre bug on SunOS 4.1.3.
2692if $ac_need_defaults; then
2693  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2694fi
2695
2696# Have a temporary directory for convenience.  Make it in the build tree
2697# simply because there is no reason against having it here, and in addition,
2698# creating and moving files from /tmp can sometimes cause problems.
2699# Hook for its removal unless debugging.
2700# Note that there is a small window in which the directory will not be cleaned:
2701# after its creation but before its name has been assigned to `$tmp'.
2702$debug ||
2703{
2704  tmp= ac_tmp=
2705  trap 'exit_status=$?
2706  : "${ac_tmp:=$tmp}"
2707  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2708' 0
2709  trap 'as_fn_exit 1' 1 2 13 15
2710}
2711# Create a (secure) tmp directory for tmp files.
2712
2713{
2714  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2715  test -d "$tmp"
2716}  ||
2717{
2718  tmp=./conf$$-$RANDOM
2719  (umask 077 && mkdir "$tmp")
2720} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
2721ac_tmp=$tmp
2722
2723# Set up the scripts for CONFIG_FILES section.
2724# No need to generate them if there are no CONFIG_FILES.
2725# This happens for instance with `./config.status config.h'.
2726if test -n "$CONFIG_FILES"; then
2727
2728
2729ac_cr=`echo X | tr X '\015'`
2730# On cygwin, bash can eat \r inside `` if the user requested igncr.
2731# But we know of no other shell where ac_cr would be empty at this
2732# point, so we can use a bashism as a fallback.
2733if test "x$ac_cr" = x; then
2734  eval ac_cr=\$\'\\r\'
2735fi
2736ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
2737if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2738  ac_cs_awk_cr='\\r'
2739else
2740  ac_cs_awk_cr=$ac_cr
2741fi
2742
2743echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2744_ACEOF
2745
2746
2747{
2748  echo "cat >conf$$subs.awk <<_ACEOF" &&
2749  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
2750  echo "_ACEOF"
2751} >conf$$subs.sh ||
2752  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2753ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2754ac_delim='%!_!# '
2755for ac_last_try in false false false false false :; do
2756  . ./conf$$subs.sh ||
2757    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2758
2759  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
2760  if test $ac_delim_n = $ac_delim_num; then
2761    break
2762  elif $ac_last_try; then
2763    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2764  else
2765    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2766  fi
2767done
2768rm -f conf$$subs.sh
2769
2770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2771cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2772_ACEOF
2773sed -n '
2774h
2775s/^/S["/; s/!.*/"]=/
2776p
2777g
2778s/^[^!]*!//
2779:repl
2780t repl
2781s/'"$ac_delim"'$//
2782t delim
2783:nl
2784h
2785s/\(.\{148\}\)..*/\1/
2786t more1
2787s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
2788p
2789n
2790b repl
2791:more1
2792s/["\\]/\\&/g; s/^/"/; s/$/"\\/
2793p
2794g
2795s/.\{148\}//
2796t nl
2797:delim
2798h
2799s/\(.\{148\}\)..*/\1/
2800t more2
2801s/["\\]/\\&/g; s/^/"/; s/$/"/
2802p
2803b
2804:more2
2805s/["\\]/\\&/g; s/^/"/; s/$/"\\/
2806p
2807g
2808s/.\{148\}//
2809t delim
2810' <conf$$subs.awk | sed '
2811/^[^""]/{
2812  N
2813  s/\n//
2814}
2815' >>$CONFIG_STATUS || ac_write_fail=1
2816rm -f conf$$subs.awk
2817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2818_ACAWK
2819cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
2820  for (key in S) S_is_set[key] = 1
2821  FS = ""
2822
2823}
2824{
2825  line = $ 0
2826  nfields = split(line, field, "@")
2827  substed = 0
2828  len = length(field[1])
2829  for (i = 2; i < nfields; i++) {
2830    key = field[i]
2831    keylen = length(key)
2832    if (S_is_set[key]) {
2833      value = S[key]
2834      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
2835      len += length(value) + length(field[++i])
2836      substed = 1
2837    } else
2838      len += 1 + keylen
2839  }
2840
2841  print line
2842}
2843
2844_ACAWK
2845_ACEOF
2846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2847if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
2848  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
2849else
2850  cat
2851fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2852  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
2853_ACEOF
2854
2855# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
2856# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
2857# trailing colons and then remove the whole line if VPATH becomes empty
2858# (actually we leave an empty line to preserve line numbers).
2859if test "x$srcdir" = x.; then
2860  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
2861h
2862s///
2863s/^/:/
2864s/[	 ]*$/:/
2865s/:\$(srcdir):/:/g
2866s/:\${srcdir}:/:/g
2867s/:@srcdir@:/:/g
2868s/^:*//
2869s/:*$//
2870x
2871s/\(=[	 ]*\).*/\1/
2872G
2873s/\n//
2874s/^[^=]*=[	 ]*$//
2875}'
2876fi
2877
2878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2879fi # test -n "$CONFIG_FILES"
2880
2881
2882eval set X "  :F $CONFIG_FILES      "
2883shift
2884for ac_tag
2885do
2886  case $ac_tag in
2887  :[FHLC]) ac_mode=$ac_tag; continue;;
2888  esac
2889  case $ac_mode$ac_tag in
2890  :[FHL]*:*);;
2891  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
2892  :[FH]-) ac_tag=-:-;;
2893  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2894  esac
2895  ac_save_IFS=$IFS
2896  IFS=:
2897  set x $ac_tag
2898  IFS=$ac_save_IFS
2899  shift
2900  ac_file=$1
2901  shift
2902
2903  case $ac_mode in
2904  :L) ac_source=$1;;
2905  :[FH])
2906    ac_file_inputs=
2907    for ac_f
2908    do
2909      case $ac_f in
2910      -) ac_f="$ac_tmp/stdin";;
2911      *) # Look for the file first in the build tree, then in the source tree
2912	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
2913	 # because $ac_f cannot contain `:'.
2914	 test -f "$ac_f" ||
2915	   case $ac_f in
2916	   [\\/$]*) false;;
2917	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2918	   esac ||
2919	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
2920      esac
2921      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
2922      as_fn_append ac_file_inputs " '$ac_f'"
2923    done
2924
2925    # Let's still pretend it is `configure' which instantiates (i.e., don't
2926    # use $as_me), people would be surprised to read:
2927    #    /* config.h.  Generated by config.status.  */
2928    configure_input='Generated from '`
2929	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
2930	`' by configure.'
2931    if test x"$ac_file" != x-; then
2932      configure_input="$ac_file.  $configure_input"
2933      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
2934$as_echo "$as_me: creating $ac_file" >&6;}
2935    fi
2936    # Neutralize special characters interpreted by sed in replacement strings.
2937    case $configure_input in #(
2938    *\&* | *\|* | *\\* )
2939       ac_sed_conf_input=`$as_echo "$configure_input" |
2940       sed 's/[\\\\&|]/\\\\&/g'`;; #(
2941    *) ac_sed_conf_input=$configure_input;;
2942    esac
2943
2944    case $ac_tag in
2945    *:-:* | *:-) cat >"$ac_tmp/stdin" \
2946      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
2947    esac
2948    ;;
2949  esac
2950
2951  ac_dir=`$as_dirname -- "$ac_file" ||
2952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2953	 X"$ac_file" : 'X\(//\)[^/]' \| \
2954	 X"$ac_file" : 'X\(//\)$' \| \
2955	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2956$as_echo X"$ac_file" |
2957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2958	    s//\1/
2959	    q
2960	  }
2961	  /^X\(\/\/\)[^/].*/{
2962	    s//\1/
2963	    q
2964	  }
2965	  /^X\(\/\/\)$/{
2966	    s//\1/
2967	    q
2968	  }
2969	  /^X\(\/\).*/{
2970	    s//\1/
2971	    q
2972	  }
2973	  s/.*/./; q'`
2974  as_dir="$ac_dir"; as_fn_mkdir_p
2975  ac_builddir=.
2976
2977case "$ac_dir" in
2978.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2979*)
2980  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2981  # A ".." for each directory in $ac_dir_suffix.
2982  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2983  case $ac_top_builddir_sub in
2984  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2985  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2986  esac ;;
2987esac
2988ac_abs_top_builddir=$ac_pwd
2989ac_abs_builddir=$ac_pwd$ac_dir_suffix
2990# for backward compatibility:
2991ac_top_builddir=$ac_top_build_prefix
2992
2993case $srcdir in
2994  .)  # We are building in place.
2995    ac_srcdir=.
2996    ac_top_srcdir=$ac_top_builddir_sub
2997    ac_abs_top_srcdir=$ac_pwd ;;
2998  [\\/]* | ?:[\\/]* )  # Absolute name.
2999    ac_srcdir=$srcdir$ac_dir_suffix;
3000    ac_top_srcdir=$srcdir
3001    ac_abs_top_srcdir=$srcdir ;;
3002  *) # Relative name.
3003    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3004    ac_top_srcdir=$ac_top_build_prefix$srcdir
3005    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3006esac
3007ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3008
3009
3010  case $ac_mode in
3011  :F)
3012  #
3013  # CONFIG_FILE
3014  #
3015
3016  case $INSTALL in
3017  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3018  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3019  esac
3020_ACEOF
3021
3022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3023# If the template does not know about datarootdir, expand it.
3024# FIXME: This hack should be removed a few years after 2.60.
3025ac_datarootdir_hack=; ac_datarootdir_seen=
3026ac_sed_dataroot='
3027/datarootdir/ {
3028  p
3029  q
3030}
3031/@datadir@/p
3032/@docdir@/p
3033/@infodir@/p
3034/@localedir@/p
3035/@mandir@/p'
3036case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3037*datarootdir*) ac_datarootdir_seen=yes;;
3038*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3040$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3041_ACEOF
3042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3043  ac_datarootdir_hack='
3044  s&@datadir@&$datadir&g
3045  s&@docdir@&$docdir&g
3046  s&@infodir@&$infodir&g
3047  s&@localedir@&$localedir&g
3048  s&@mandir@&$mandir&g
3049  s&\\\${datarootdir}&$datarootdir&g' ;;
3050esac
3051_ACEOF
3052
3053# Neutralize VPATH when `$srcdir' = `.'.
3054# Shell code in configure.ac might set extrasub.
3055# FIXME: do we really want to maintain this feature?
3056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3057ac_sed_extra="$ac_vpsub
3058$extrasub
3059_ACEOF
3060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3061:t
3062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3063s|@configure_input@|$ac_sed_conf_input|;t t
3064s&@top_builddir@&$ac_top_builddir_sub&;t t
3065s&@top_build_prefix@&$ac_top_build_prefix&;t t
3066s&@srcdir@&$ac_srcdir&;t t
3067s&@abs_srcdir@&$ac_abs_srcdir&;t t
3068s&@top_srcdir@&$ac_top_srcdir&;t t
3069s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3070s&@builddir@&$ac_builddir&;t t
3071s&@abs_builddir@&$ac_abs_builddir&;t t
3072s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3073s&@INSTALL@&$ac_INSTALL&;t t
3074$ac_datarootdir_hack
3075"
3076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3077  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3078
3079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3080  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3081  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
3082      "$ac_tmp/out"`; test -z "$ac_out"; } &&
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3084which seems to be undefined.  Please make sure it is defined" >&5
3085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3086which seems to be undefined.  Please make sure it is defined" >&2;}
3087
3088  rm -f "$ac_tmp/stdin"
3089  case $ac_file in
3090  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3091  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3092  esac \
3093  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3094 ;;
3095
3096
3097
3098  esac
3099
3100done # for ac_tag
3101
3102
3103as_fn_exit 0
3104_ACEOF
3105ac_clean_files=$ac_clean_files_save
3106
3107test $ac_write_fail = 0 ||
3108  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3109
3110
3111# configure is writing to config.log, and then calls config.status.
3112# config.status does its own redirection, appending to config.log.
3113# Unfortunately, on DOS this fails, as config.log is still kept open
3114# by configure, so config.status won't be able to write to it; its
3115# output is simply discarded.  So we exec the FD to /dev/null,
3116# effectively closing config.log, so it can be properly (re)opened and
3117# appended to by config.status.  When coming back to configure, we
3118# need to make the FD available again.
3119if test "$no_create" != yes; then
3120  ac_cs_success=:
3121  ac_config_status_args=
3122  test "$silent" = yes &&
3123    ac_config_status_args="$ac_config_status_args --quiet"
3124  exec 5>/dev/null
3125  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3126  exec 5>>config.log
3127  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3128  # would make configure fail if this is the last instruction.
3129  $ac_cs_success || as_fn_exit 1
3130fi
3131if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3133$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3134fi
3135
3136