source: trunk/gui/configure @ 408

Last change on this file since 408 was 408, checked in by cxsong, 18 years ago

changed for relocatable builds

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