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