source: trunk/gui/configure @ 4144

Last change on this file since 4144 was 4144, checked in by gah, 10 years ago

initial changes for new build system for rappture

  • Property svn:executable set to *
File size: 194.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for RapptureGUI 1.1.
4#
5# Report bugs to <rappture@nanohub.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62        expr "X$arg" : "X\\(.*\\)$as_nl";
63        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""        $as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218         /*)
219           for as_base in sh bash ksh sh5; do
220             # Try only shells that exist, to save several forks.
221             as_shell=$as_dir/$as_base
222             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229           done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: rappture@nanohub.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334         X"$as_dir" : 'X\(//\)[^/]' \| \
335         X"$as_dir" : 'X\(//\)$' \| \
336         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339            s//\1/
340            q
341          }
342          /^X\(\/\/\)[^/].*/{
343            s//\1/
344            q
345          }
346          /^X\(\/\/\)$/{
347            s//\1/
348            q
349          }
350          /^X\(\/\).*/{
351            s//\1/
352            q
353          }
354          s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443         X"$0" : 'X\(//\)$' \| \
444         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447            s//\1/
448            q
449          }
450          /^X\/\(\/\/\)$/{
451            s//\1/
452            q
453          }
454          /^X\/\(\/\).*/{
455            s//\1/
456            q
457          }
458          s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T=' ';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='RapptureGUI'
582PACKAGE_TARNAME='rappturegui'
583PACKAGE_VERSION='1.1'
584PACKAGE_STRING='RapptureGUI 1.1'
585PACKAGE_BUGREPORT='rappture@nanohub.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626TCL_SHLIB_SUFFIX
627TCL_SHLIB_LDFLAGS
628TCL_SHLIB_CFLAGS
629TCL_SHLIB_LD
630TCL_STLIB_LD
631TCL_CFLAGS_OPTIMIZE
632TCL_CFLAGS_DEBUG
633TK_VERSION
634TK_XLIBSW
635TK_LIB_SPEC
636TK_INC_SPEC
637TCL_VERSION
638TCL_LIB_SPEC
639TCL_INC_SPEC
640TCLSH
641ENABLE_GUI
642MAKE
643INSTALL_STUB_LIB
644INSTALL_LIB
645MAKE_STUB_LIB
646MAKE_LIB
647SHLIB_SUFFIX
648SHLIB_CFLAGS
649SHLIB_LD_LIBS
650TK_SHLIB_LD_EXTRAS
651TCL_SHLIB_LD_EXTRAS
652SHLIB_LD
653STLIB_LD
654LD_SEARCH_FLAGS
655CC_SEARCH_FLAGS
656LDFLAGS_OPTIMIZE
657LDFLAGS_DEBUG
658CFLAGS_WARNING
659CFLAGS_OPTIMIZE
660CFLAGS_DEBUG
661PLAT_SRCS
662PLAT_OBJS
663DL_OBJS
664DL_LIBS
665EGREP
666GREP
667CPP
668AR
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
676SET_MAKE
677MKDIR_P
678LN_S
679RANLIB
680INSTALL_DATA
681INSTALL_SCRIPT
682INSTALL_PROGRAM
683LIB_SEARCH_DIRS
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_64bit
738enable_64bit_vis
739enable_corefoundation
740enable_load
741enable_shared
742enable_gui
743with_tclsh
744'
745      ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CPP'
754
755
756# Initialize some variables set by options.
757ac_init_help=
758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_libraries=NONE
777
778# Installation directory options.
779# These are left unexpanded so users can "make install exec_prefix=/foo"
780# and all the variables that are supposed to be based on exec_prefix
781# by default will actually change.
782# Use braces instead of parens because sh, perl, etc. also accept them.
783# (The list follows the same order as the GNU Coding Standards.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
808  # If the previous option needs an argument, assign it.
809  if test -n "$ac_prev"; then
810    eval $ac_prev=\$ac_option
811    ac_prev=
812    continue
813  fi
814
815  case $ac_option in
816  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817  *=)   ac_optarg= ;;
818  *)    ac_optarg=yes ;;
819  esac
820
821  # Accept the important Cygnus configure options, so we can diagnose typos.
822
823  case $ac_dashdash$ac_option in
824  --)
825    ac_dashdash=yes ;;
826
827  -bindir | --bindir | --bindi | --bind | --bin | --bi)
828    ac_prev=bindir ;;
829  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830    bindir=$ac_optarg ;;
831
832  -build | --build | --buil | --bui | --bu)
833    ac_prev=build_alias ;;
834  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835    build_alias=$ac_optarg ;;
836
837  -cache-file | --cache-file | --cache-fil | --cache-fi \
838  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839    ac_prev=cache_file ;;
840  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842    cache_file=$ac_optarg ;;
843
844  --config-cache | -C)
845    cache_file=config.cache ;;
846
847  -datadir | --datadir | --datadi | --datad)
848    ac_prev=datadir ;;
849  -datadir=* | --datadir=* | --datadi=* | --datad=*)
850    datadir=$ac_optarg ;;
851
852  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853  | --dataroo | --dataro | --datar)
854    ac_prev=datarootdir ;;
855  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857    datarootdir=$ac_optarg ;;
858
859  -disable-* | --disable-*)
860    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861    # Reject names that are not valid shell variable names.
862    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863      as_fn_error $? "invalid feature name: $ac_useropt"
864    ac_useropt_orig=$ac_useropt
865    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866    case $ac_user_opts in
867      *"
868"enable_$ac_useropt"
869"*) ;;
870      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871         ac_unrecognized_sep=', ';;
872    esac
873    eval enable_$ac_useropt=no ;;
874
875  -docdir | --docdir | --docdi | --doc | --do)
876    ac_prev=docdir ;;
877  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878    docdir=$ac_optarg ;;
879
880  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881    ac_prev=dvidir ;;
882  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883    dvidir=$ac_optarg ;;
884
885  -enable-* | --enable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897         ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=\$ac_optarg ;;
900
901  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903  | --exec | --exe | --ex)
904    ac_prev=exec_prefix ;;
905  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907  | --exec=* | --exe=* | --ex=*)
908    exec_prefix=$ac_optarg ;;
909
910  -gas | --gas | --ga | --g)
911    # Obsolete; use --with-gas.
912    with_gas=yes ;;
913
914  -help | --help | --hel | --he | -h)
915    ac_init_help=long ;;
916  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917    ac_init_help=recursive ;;
918  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919    ac_init_help=short ;;
920
921  -host | --host | --hos | --ho)
922    ac_prev=host_alias ;;
923  -host=* | --host=* | --hos=* | --ho=*)
924    host_alias=$ac_optarg ;;
925
926  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927    ac_prev=htmldir ;;
928  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929  | --ht=*)
930    htmldir=$ac_optarg ;;
931
932  -includedir | --includedir | --includedi | --included | --include \
933  | --includ | --inclu | --incl | --inc)
934    ac_prev=includedir ;;
935  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936  | --includ=* | --inclu=* | --incl=* | --inc=*)
937    includedir=$ac_optarg ;;
938
939  -infodir | --infodir | --infodi | --infod | --info | --inf)
940    ac_prev=infodir ;;
941  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942    infodir=$ac_optarg ;;
943
944  -libdir | --libdir | --libdi | --libd)
945    ac_prev=libdir ;;
946  -libdir=* | --libdir=* | --libdi=* | --libd=*)
947    libdir=$ac_optarg ;;
948
949  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950  | --libexe | --libex | --libe)
951    ac_prev=libexecdir ;;
952  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953  | --libexe=* | --libex=* | --libe=*)
954    libexecdir=$ac_optarg ;;
955
956  -localedir | --localedir | --localedi | --localed | --locale)
957    ac_prev=localedir ;;
958  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959    localedir=$ac_optarg ;;
960
961  -localstatedir | --localstatedir | --localstatedi | --localstated \
962  | --localstate | --localstat | --localsta | --localst | --locals)
963    ac_prev=localstatedir ;;
964  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966    localstatedir=$ac_optarg ;;
967
968  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969    ac_prev=mandir ;;
970  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971    mandir=$ac_optarg ;;
972
973  -nfp | --nfp | --nf)
974    # Obsolete; use --without-fp.
975    with_fp=no ;;
976
977  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978  | --no-cr | --no-c | -n)
979    no_create=yes ;;
980
981  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983    no_recursion=yes ;;
984
985  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987  | --oldin | --oldi | --old | --ol | --o)
988    ac_prev=oldincludedir ;;
989  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992    oldincludedir=$ac_optarg ;;
993
994  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995    ac_prev=prefix ;;
996  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997    prefix=$ac_optarg ;;
998
999  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000  | --program-pre | --program-pr | --program-p)
1001    ac_prev=program_prefix ;;
1002  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004    program_prefix=$ac_optarg ;;
1005
1006  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007  | --program-suf | --program-su | --program-s)
1008    ac_prev=program_suffix ;;
1009  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011    program_suffix=$ac_optarg ;;
1012
1013  -program-transform-name | --program-transform-name \
1014  | --program-transform-nam | --program-transform-na \
1015  | --program-transform-n | --program-transform- \
1016  | --program-transform | --program-transfor \
1017  | --program-transfo | --program-transf \
1018  | --program-trans | --program-tran \
1019  | --progr-tra | --program-tr | --program-t)
1020    ac_prev=program_transform_name ;;
1021  -program-transform-name=* | --program-transform-name=* \
1022  | --program-transform-nam=* | --program-transform-na=* \
1023  | --program-transform-n=* | --program-transform-=* \
1024  | --program-transform=* | --program-transfor=* \
1025  | --program-transfo=* | --program-transf=* \
1026  | --program-trans=* | --program-tran=* \
1027  | --progr-tra=* | --program-tr=* | --program-t=*)
1028    program_transform_name=$ac_optarg ;;
1029
1030  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031    ac_prev=pdfdir ;;
1032  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033    pdfdir=$ac_optarg ;;
1034
1035  -psdir | --psdir | --psdi | --psd | --ps)
1036    ac_prev=psdir ;;
1037  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038    psdir=$ac_optarg ;;
1039
1040  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041  | -silent | --silent | --silen | --sile | --sil)
1042    silent=yes ;;
1043
1044  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045    ac_prev=sbindir ;;
1046  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047  | --sbi=* | --sb=*)
1048    sbindir=$ac_optarg ;;
1049
1050  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052  | --sharedst | --shareds | --shared | --share | --shar \
1053  | --sha | --sh)
1054    ac_prev=sharedstatedir ;;
1055  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058  | --sha=* | --sh=*)
1059    sharedstatedir=$ac_optarg ;;
1060
1061  -site | --site | --sit)
1062    ac_prev=site ;;
1063  -site=* | --site=* | --sit=*)
1064    site=$ac_optarg ;;
1065
1066  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067    ac_prev=srcdir ;;
1068  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069    srcdir=$ac_optarg ;;
1070
1071  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072  | --syscon | --sysco | --sysc | --sys | --sy)
1073    ac_prev=sysconfdir ;;
1074  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076    sysconfdir=$ac_optarg ;;
1077
1078  -target | --target | --targe | --targ | --tar | --ta | --t)
1079    ac_prev=target_alias ;;
1080  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081    target_alias=$ac_optarg ;;
1082
1083  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084    verbose=yes ;;
1085
1086  -version | --version | --versio | --versi | --vers | -V)
1087    ac_init_version=: ;;
1088
1089  -with-* | --with-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error $? "invalid package name: $ac_useropt"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"with_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101         ac_unrecognized_sep=', ';;
1102    esac
1103    eval with_$ac_useropt=\$ac_optarg ;;
1104
1105  -without-* | --without-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117         ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=no ;;
1120
1121  --x)
1122    # Obsolete; use --with-x.
1123    with_x=yes ;;
1124
1125  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126  | --x-incl | --x-inc | --x-in | --x-i)
1127    ac_prev=x_includes ;;
1128  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130    x_includes=$ac_optarg ;;
1131
1132  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134    ac_prev=x_libraries ;;
1135  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137    x_libraries=$ac_optarg ;;
1138
1139  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140Try \`$0 --help' for more information"
1141    ;;
1142
1143  *=*)
1144    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145    # Reject names that are not valid shell variable names.
1146    case $ac_envvar in #(
1147      '' | [0-9]* | *[!_$as_cr_alnum]* )
1148      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149    esac
1150    eval $ac_envvar=\$ac_optarg
1151    export $ac_envvar ;;
1152
1153  *)
1154    # FIXME: should be removed in autoconf 3.0.
1155    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159    ;;
1160
1161  esac
1162done
1163
1164if test -n "$ac_prev"; then
1165  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166  as_fn_error $? "missing argument to $ac_option"
1167fi
1168
1169if test -n "$ac_unrecognized_opts"; then
1170  case $enable_option_checking in
1171    no) ;;
1172    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174  esac
1175fi
1176
1177# Check all directory arguments for consistency.
1178for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                datadir sysconfdir sharedstatedir localstatedir includedir \
1180                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                libdir localedir mandir
1182do
1183  eval ac_val=\$$ac_var
1184  # Remove trailing slashes.
1185  case $ac_val in
1186    */ )
1187      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188      eval $ac_var=\$ac_val;;
1189  esac
1190  # Be sure to have absolute directory names.
1191  case $ac_val in
1192    [\\/$]* | ?:[\\/]* )  continue;;
1193    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194  esac
1195  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196done
1197
1198# There might be people who depend on the old broken behavior: `$host'
1199# used to hold the argument of --host etc.
1200# FIXME: To remove some day.
1201build=$build_alias
1202host=$host_alias
1203target=$target_alias
1204
1205# FIXME: To remove some day.
1206if test "x$host_alias" != x; then
1207  if test "x$build_alias" = x; then
1208    cross_compiling=maybe
1209  elif test "x$build_alias" != "x$host_alias"; then
1210    cross_compiling=yes
1211  fi
1212fi
1213
1214ac_tool_prefix=
1215test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217test "$silent" = yes && exec 6>/dev/null
1218
1219
1220ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221ac_ls_di=`ls -di .` &&
1222ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223  as_fn_error $? "working directory cannot be determined"
1224test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225  as_fn_error $? "pwd does not report name of working directory"
1226
1227
1228# Find the source files, if location was not specified.
1229if test -z "$srcdir"; then
1230  ac_srcdir_defaulted=yes
1231  # Try the directory containing this script, then the parent directory.
1232  ac_confdir=`$as_dirname -- "$as_myself" ||
1233$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234         X"$as_myself" : 'X\(//\)[^/]' \| \
1235         X"$as_myself" : 'X\(//\)$' \| \
1236         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237$as_echo X"$as_myself" |
1238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239            s//\1/
1240            q
1241          }
1242          /^X\(\/\/\)[^/].*/{
1243            s//\1/
1244            q
1245          }
1246          /^X\(\/\/\)$/{
1247            s//\1/
1248            q
1249          }
1250          /^X\(\/\).*/{
1251            s//\1/
1252            q
1253          }
1254          s/.*/./; q'`
1255  srcdir=$ac_confdir
1256  if test ! -r "$srcdir/$ac_unique_file"; then
1257    srcdir=..
1258  fi
1259else
1260  ac_srcdir_defaulted=no
1261fi
1262if test ! -r "$srcdir/$ac_unique_file"; then
1263  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265fi
1266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269        pwd)`
1270# When building in place, set srcdir=.
1271if test "$ac_abs_confdir" = "$ac_pwd"; then
1272  srcdir=.
1273fi
1274# Remove unnecessary trailing slashes from srcdir.
1275# Double slashes in file names in object file debugging info
1276# mess up M-x gdb in Emacs.
1277case $srcdir in
1278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279esac
1280for ac_var in $ac_precious_vars; do
1281  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282  eval ac_env_${ac_var}_value=\$${ac_var}
1283  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285done
1286
1287#
1288# Report the --help message.
1289#
1290if test "$ac_init_help" = "long"; then
1291  # Omit some internal or obsolete options to make the list less imposing.
1292  # This message is too long to be a string in the A/UX 3.1 sh.
1293  cat <<_ACEOF
1294\`configure' configures RapptureGUI 1.1 to adapt to many kinds of systems.
1295
1296Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301Defaults for the options are specified in brackets.
1302
1303Configuration:
1304  -h, --help              display this help and exit
1305      --help=short        display options specific to this package
1306      --help=recursive    display the short help of all the included packages
1307  -V, --version           display version information and exit
1308  -q, --quiet, --silent   do not print \`checking ...' messages
1309      --cache-file=FILE   cache test results in FILE [disabled]
1310  -C, --config-cache      alias for \`--cache-file=config.cache'
1311  -n, --no-create         do not create output files
1312      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314Installation directories:
1315  --prefix=PREFIX         install architecture-independent files in PREFIX
1316                          [$ac_default_prefix]
1317  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                          [PREFIX]
1319
1320By default, \`make install' will install all the files in
1321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323for instance \`--prefix=\$HOME'.
1324
1325For better control, use the options below.
1326
1327Fine tuning of the installation directories:
1328  --bindir=DIR            user executables [EPREFIX/bin]
1329  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1330  --libexecdir=DIR        program executables [EPREFIX/libexec]
1331  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1332  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1333  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1334  --libdir=DIR            object code libraries [EPREFIX/lib]
1335  --includedir=DIR        C header files [PREFIX/include]
1336  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1337  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1338  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1339  --infodir=DIR           info documentation [DATAROOTDIR/info]
1340  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341  --mandir=DIR            man documentation [DATAROOTDIR/man]
1342  --docdir=DIR            documentation root [DATAROOTDIR/doc/rappturegui]
1343  --htmldir=DIR           html documentation [DOCDIR]
1344  --dvidir=DIR            dvi documentation [DOCDIR]
1345  --pdfdir=DIR            pdf documentation [DOCDIR]
1346  --psdir=DIR             ps documentation [DOCDIR]
1347_ACEOF
1348
1349  cat <<\_ACEOF
1350
1351System types:
1352  --build=BUILD     configure for building on BUILD [guessed]
1353  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354  --target=TARGET   configure for building compilers for TARGET [HOST]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359  case $ac_init_help in
1360     short | recursive ) echo "Configuration of RapptureGUI 1.1:";;
1361   esac
1362  cat <<\_ACEOF
1363
1364Optional Features:
1365  --disable-option-checking  ignore unrecognized --enable/--with options
1366  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1367  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1368  --enable-64bit          enable 64bit support (where applicable)
1369  --enable-64bit-vis      enable 64bit Sparc VIS support
1370  --enable-corefoundation use CoreFoundation API --enable-corefoundation
1371  --disable-load          disallow dynamic loading and "load" command
1372  --enable-shared         build and link with shared libraries --enable-shared
1373  --enable-gui            build code related to the graphical user interface
1374                          [default=yes]
1375
1376Optional Packages:
1377  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1378  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1379  --with-tclsh=DIR        location of tclsh [default=yes]
1380
1381Some influential environment variables:
1382  CC          C compiler command
1383  CFLAGS      C compiler flags
1384  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385              nonstandard directory <lib dir>
1386  LIBS        libraries to pass to the linker, e.g. -l<library>
1387  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1388              you have headers in a nonstandard directory <include dir>
1389  CPP         C preprocessor
1390
1391Use these variables to override the choices made by `configure' or to help
1392it to find libraries and programs with nonstandard names/locations.
1393
1394Report bugs to <rappture@nanohub.org>.
1395_ACEOF
1396ac_status=$?
1397fi
1398
1399if test "$ac_init_help" = "recursive"; then
1400  # If there are subdirs, report their specific --help.
1401  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402    test -d "$ac_dir" ||
1403      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1404      continue
1405    ac_builddir=.
1406
1407case "$ac_dir" in
1408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409*)
1410  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1411  # A ".." for each directory in $ac_dir_suffix.
1412  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1413  case $ac_top_builddir_sub in
1414  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416  esac ;;
1417esac
1418ac_abs_top_builddir=$ac_pwd
1419ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420# for backward compatibility:
1421ac_top_builddir=$ac_top_build_prefix
1422
1423case $srcdir in
1424  .)  # We are building in place.
1425    ac_srcdir=.
1426    ac_top_srcdir=$ac_top_builddir_sub
1427    ac_abs_top_srcdir=$ac_pwd ;;
1428  [\\/]* | ?:[\\/]* )  # Absolute name.
1429    ac_srcdir=$srcdir$ac_dir_suffix;
1430    ac_top_srcdir=$srcdir
1431    ac_abs_top_srcdir=$srcdir ;;
1432  *) # Relative name.
1433    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434    ac_top_srcdir=$ac_top_build_prefix$srcdir
1435    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436esac
1437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438
1439    cd "$ac_dir" || { ac_status=$?; continue; }
1440    # Check for guested configure.
1441    if test -f "$ac_srcdir/configure.gnu"; then
1442      echo &&
1443      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444    elif test -f "$ac_srcdir/configure"; then
1445      echo &&
1446      $SHELL "$ac_srcdir/configure" --help=recursive
1447    else
1448      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449    fi || ac_status=$?
1450    cd "$ac_pwd" || { ac_status=$?; break; }
1451  done
1452fi
1453
1454test -n "$ac_init_help" && exit $ac_status
1455if $ac_init_version; then
1456  cat <<\_ACEOF
1457RapptureGUI configure 1.1
1458generated by GNU Autoconf 2.69
1459
1460Copyright (C) 2012 Free Software Foundation, Inc.
1461This configure script is free software; the Free Software Foundation
1462gives unlimited permission to copy, distribute and modify it.
1463_ACEOF
1464  exit
1465fi
1466
1467## ------------------------ ##
1468## Autoconf initialization. ##
1469## ------------------------ ##
1470
1471# ac_fn_c_try_compile LINENO
1472# --------------------------
1473# Try to compile conftest.$ac_ext, and return whether this succeeded.
1474ac_fn_c_try_compile ()
1475{
1476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477  rm -f conftest.$ac_objext
1478  if { { ac_try="$ac_compile"
1479case "(($ac_try" in
1480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481  *) ac_try_echo=$ac_try;;
1482esac
1483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484$as_echo "$ac_try_echo"; } >&5
1485  (eval "$ac_compile") 2>conftest.err
1486  ac_status=$?
1487  if test -s conftest.err; then
1488    grep -v '^ *+' conftest.err >conftest.er1
1489    cat conftest.er1 >&5
1490    mv -f conftest.er1 conftest.err
1491  fi
1492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493  test $ac_status = 0; } && {
1494         test -z "$ac_c_werror_flag" ||
1495         test ! -s conftest.err
1496       } && test -s conftest.$ac_objext; then :
1497  ac_retval=0
1498else
1499  $as_echo "$as_me: failed program was:" >&5
1500sed 's/^/| /' conftest.$ac_ext >&5
1501
1502        ac_retval=1
1503fi
1504  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505  as_fn_set_status $ac_retval
1506
1507} # ac_fn_c_try_compile
1508
1509# ac_fn_c_try_link LINENO
1510# -----------------------
1511# Try to link conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_link ()
1513{
1514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515  rm -f conftest.$ac_objext conftest$ac_exeext
1516  if { { ac_try="$ac_link"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_link") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } && {
1532         test -z "$ac_c_werror_flag" ||
1533         test ! -s conftest.err
1534       } && test -s conftest$ac_exeext && {
1535         test "$cross_compiling" = yes ||
1536         test -x conftest$ac_exeext
1537       }; then :
1538  ac_retval=0
1539else
1540  $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543        ac_retval=1
1544fi
1545  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1546  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1547  # interfere with the next link command; also delete a directory that is
1548  # left behind by Apple's compiler.  We do this before executing the actions.
1549  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551  as_fn_set_status $ac_retval
1552
1553} # ac_fn_c_try_link
1554
1555# ac_fn_c_try_cpp LINENO
1556# ----------------------
1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_cpp ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  if { { ac_try="$ac_cpp conftest.$ac_ext"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } > conftest.i && {
1577         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578         test ! -s conftest.err
1579       }; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585    ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_cpp
1591
1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593# -------------------------------------------------------
1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595# the include files in INCLUDES and setting the cache variable VAR
1596# accordingly.
1597ac_fn_c_check_header_mongrel ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  if eval \${$3+:} false; then :
1601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604  $as_echo_n "(cached) " >&6
1605fi
1606eval ac_res=\$$3
1607               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608$as_echo "$ac_res" >&6; }
1609else
1610  # Is the header compilable?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612$as_echo_n "checking $2 usability... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619  ac_header_compiler=yes
1620else
1621  ac_header_compiler=no
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625$as_echo "$ac_header_compiler" >&6; }
1626
1627# Is the header present?
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629$as_echo_n "checking $2 presence... " >&6; }
1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h.  */
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_cpp "$LINENO"; then :
1635  ac_header_preproc=yes
1636else
1637  ac_header_preproc=no
1638fi
1639rm -f conftest.err conftest.i conftest.$ac_ext
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641$as_echo "$ac_header_preproc" >&6; }
1642
1643# So?  What about this header?
1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645  yes:no: )
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650    ;;
1651  no:yes:* )
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1655$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1659$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662( $as_echo "## ----------------------------------- ##
1663## Report this to rappture@nanohub.org ##
1664## ----------------------------------- ##"
1665     ) | sed "s/^/$as_me: WARNING:     /" >&2
1666    ;;
1667esac
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672else
1673  eval "$3=\$ac_header_compiler"
1674fi
1675eval ac_res=\$$3
1676               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_mongrel
1682
1683# ac_fn_c_try_run LINENO
1684# ----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686# that executables *can* be run.
1687ac_fn_c_try_run ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701  { { case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_try") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; }; }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: program exited with status $ac_status" >&5
1714       $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717       ac_retval=$ac_status
1718fi
1719  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_run
1724
1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists and can be compiled using the include files in
1728# INCLUDES, setting the cache variable VAR accordingly.
1729ac_fn_c_check_header_compile ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743  eval "$3=yes"
1744else
1745  eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748fi
1749eval ac_res=\$$3
1750               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754} # ac_fn_c_check_header_compile
1755cat >config.log <<_ACEOF
1756This file contains any messages produced by compilers while
1757running configure, to aid debugging if configure makes a mistake.
1758
1759It was created by RapptureGUI $as_me 1.1, which was
1760generated by GNU Autoconf 2.69.  Invocation command line was
1761
1762  $ $0 $@
1763
1764_ACEOF
1765exec 5>>config.log
1766{
1767cat <<_ASUNAME
1768## --------- ##
1769## Platform. ##
1770## --------- ##
1771
1772hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1780
1781/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1782/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1783/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1785/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1786/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1787/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1788
1789_ASUNAME
1790
1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794  IFS=$as_save_IFS
1795  test -z "$as_dir" && as_dir=.
1796    $as_echo "PATH: $as_dir"
1797  done
1798IFS=$as_save_IFS
1799
1800} >&5
1801
1802cat >&5 <<_ACEOF
1803
1804
1805## ----------- ##
1806## Core tests. ##
1807## ----------- ##
1808
1809_ACEOF
1810
1811
1812# Keep a trace of the command line.
1813# Strip out --no-create and --no-recursion so they do not pile up.
1814# Strip out --silent because we don't want to record it for future runs.
1815# Also quote any args containing shell meta-characters.
1816# Make two passes to allow for proper duplicate-argument suppression.
1817ac_configure_args=
1818ac_configure_args0=
1819ac_configure_args1=
1820ac_must_keep_next=false
1821for ac_pass in 1 2
1822do
1823  for ac_arg
1824  do
1825    case $ac_arg in
1826    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1827    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1828    | -silent | --silent | --silen | --sile | --sil)
1829      continue ;;
1830    *\'*)
1831      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832    esac
1833    case $ac_pass in
1834    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1835    2)
1836      as_fn_append ac_configure_args1 " '$ac_arg'"
1837      if test $ac_must_keep_next = true; then
1838        ac_must_keep_next=false # Got value, back to normal.
1839      else
1840        case $ac_arg in
1841          *=* | --config-cache | -C | -disable-* | --disable-* \
1842          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1843          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1844          | -with-* | --with-* | -without-* | --without-* | --x)
1845            case "$ac_configure_args0 " in
1846              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1847            esac
1848            ;;
1849          -* ) ac_must_keep_next=true ;;
1850        esac
1851      fi
1852      as_fn_append ac_configure_args " '$ac_arg'"
1853      ;;
1854    esac
1855  done
1856done
1857{ ac_configure_args0=; unset ac_configure_args0;}
1858{ ac_configure_args1=; unset ac_configure_args1;}
1859
1860# When interrupted or exit'd, cleanup temporary files, and complete
1861# config.log.  We remove comments because anyway the quotes in there
1862# would cause problems or look ugly.
1863# WARNING: Use '\'' to represent an apostrophe within the trap.
1864# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865trap 'exit_status=$?
1866  # Save into config.log some information that might help in debugging.
1867  {
1868    echo
1869
1870    $as_echo "## ---------------- ##
1871## Cache variables. ##
1872## ---------------- ##"
1873    echo
1874    # The following way of writing the cache mishandles newlines in values,
1875(
1876  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877    eval ac_val=\$$ac_var
1878    case $ac_val in #(
1879    *${as_nl}*)
1880      case $ac_var in #(
1881      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883      esac
1884      case $ac_var in #(
1885      _ | IFS | as_nl) ;; #(
1886      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887      *) { eval $ac_var=; unset $ac_var;} ;;
1888      esac ;;
1889    esac
1890  done
1891  (set) 2>&1 |
1892    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893    *${as_nl}ac_space=\ *)
1894      sed -n \
1895        "s/'\''/'\''\\\\'\'''\''/g;
1896          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897      ;; #(
1898    *)
1899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900      ;;
1901    esac |
1902    sort
1903)
1904    echo
1905
1906    $as_echo "## ----------------- ##
1907## Output variables. ##
1908## ----------------- ##"
1909    echo
1910    for ac_var in $ac_subst_vars
1911    do
1912      eval ac_val=\$$ac_var
1913      case $ac_val in
1914      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915      esac
1916      $as_echo "$ac_var='\''$ac_val'\''"
1917    done | sort
1918    echo
1919
1920    if test -n "$ac_subst_files"; then
1921      $as_echo "## ------------------- ##
1922## File substitutions. ##
1923## ------------------- ##"
1924      echo
1925      for ac_var in $ac_subst_files
1926      do
1927        eval ac_val=\$$ac_var
1928        case $ac_val in
1929        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930        esac
1931        $as_echo "$ac_var='\''$ac_val'\''"
1932      done | sort
1933      echo
1934    fi
1935
1936    if test -s confdefs.h; then
1937      $as_echo "## ----------- ##
1938## confdefs.h. ##
1939## ----------- ##"
1940      echo
1941      cat confdefs.h
1942      echo
1943    fi
1944    test "$ac_signal" != 0 &&
1945      $as_echo "$as_me: caught signal $ac_signal"
1946    $as_echo "$as_me: exit $exit_status"
1947  } >&5
1948  rm -f core *.core core.conftest.* &&
1949    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950    exit $exit_status
1951' 0
1952for ac_signal in 1 2 13 15; do
1953  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1954done
1955ac_signal=0
1956
1957# confdefs.h avoids OS command line length limits that DEFS can exceed.
1958rm -f -r conftest* confdefs.h
1959
1960$as_echo "/* confdefs.h */" > confdefs.h
1961
1962# Predefined preprocessor variables.
1963
1964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_NAME "$PACKAGE_NAME"
1966_ACEOF
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970_ACEOF
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_VERSION "$PACKAGE_VERSION"
1974_ACEOF
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_STRING "$PACKAGE_STRING"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_URL "$PACKAGE_URL"
1986_ACEOF
1987
1988
1989# Let the site file select an alternate cache file if it wants to.
1990# Prefer an explicitly selected file to automatically selected ones.
1991ac_site_file1=NONE
1992ac_site_file2=NONE
1993if test -n "$CONFIG_SITE"; then
1994  # We do not want a PATH search for config.site.
1995  case $CONFIG_SITE in #((
1996    -*)  ac_site_file1=./$CONFIG_SITE;;
1997    */*) ac_site_file1=$CONFIG_SITE;;
1998    *)   ac_site_file1=./$CONFIG_SITE;;
1999  esac
2000elif test "x$prefix" != xNONE; then
2001  ac_site_file1=$prefix/share/config.site
2002  ac_site_file2=$prefix/etc/config.site
2003else
2004  ac_site_file1=$ac_default_prefix/share/config.site
2005  ac_site_file2=$ac_default_prefix/etc/config.site
2006fi
2007for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2008do
2009  test "x$ac_site_file" = xNONE && continue
2010  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2011    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2013    sed 's/^/| /' "$ac_site_file" >&5
2014    . "$ac_site_file" \
2015      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2017as_fn_error $? "failed to load site script $ac_site_file
2018See \`config.log' for more details" "$LINENO" 5; }
2019  fi
2020done
2021
2022if test -r "$cache_file"; then
2023  # Some versions of bash will fail to source /dev/null (special files
2024  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2025  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027$as_echo "$as_me: loading cache $cache_file" >&6;}
2028    case $cache_file in
2029      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030      *)                      . "./$cache_file";;
2031    esac
2032  fi
2033else
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035$as_echo "$as_me: creating cache $cache_file" >&6;}
2036  >$cache_file
2037fi
2038
2039# Check that the precious variables saved in the cache have kept the same
2040# value.
2041ac_cache_corrupted=false
2042for ac_var in $ac_precious_vars; do
2043  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044  eval ac_new_set=\$ac_env_${ac_var}_set
2045  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046  eval ac_new_val=\$ac_env_${ac_var}_value
2047  case $ac_old_set,$ac_new_set in
2048    set,)
2049      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051      ac_cache_corrupted=: ;;
2052    ,set)
2053      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055      ac_cache_corrupted=: ;;
2056    ,);;
2057    *)
2058      if test "x$ac_old_val" != "x$ac_new_val"; then
2059        # differences in whitespace do not lead to failure.
2060        ac_old_val_w=`echo x $ac_old_val`
2061        ac_new_val_w=`echo x $ac_new_val`
2062        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065          ac_cache_corrupted=:
2066        else
2067          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069          eval $ac_var=\$ac_old_val
2070        fi
2071        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2072$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2073        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2074$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2075      fi;;
2076  esac
2077  # Pass precious variables to config.status.
2078  if test "$ac_new_set" = set; then
2079    case $ac_new_val in
2080    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081    *) ac_arg=$ac_var=$ac_new_val ;;
2082    esac
2083    case " $ac_configure_args " in
2084      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2085      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086    esac
2087  fi
2088done
2089if $ac_cache_corrupted; then
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2095fi
2096## -------------------- ##
2097## Main body of script. ##
2098## -------------------- ##
2099
2100ac_ext=c
2101ac_cpp='$CPP $CPPFLAGS'
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
2107ac_aux_dir=
2108for ac_dir in cf "$srcdir"/cf; do
2109  if test -f "$ac_dir/install-sh"; then
2110    ac_aux_dir=$ac_dir
2111    ac_install_sh="$ac_aux_dir/install-sh -c"
2112    break
2113  elif test -f "$ac_dir/install.sh"; then
2114    ac_aux_dir=$ac_dir
2115    ac_install_sh="$ac_aux_dir/install.sh -c"
2116    break
2117  elif test -f "$ac_dir/shtool"; then
2118    ac_aux_dir=$ac_dir
2119    ac_install_sh="$ac_aux_dir/shtool install -c"
2120    break
2121  fi
2122done
2123if test -z "$ac_aux_dir"; then
2124  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2125fi
2126
2127# These three variables are undocumented and unsupported,
2128# and are intended to be withdrawn in a future Autoconf release.
2129# They can cause serious problems if a builder's source tree is in a directory
2130# whose full name contains unusual characters.
2131ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2132ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2133ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2134
2135
2136#------------------------------------------------------------------------
2137# Handle the --prefix=... option
2138#------------------------------------------------------------------------
2139
2140if test "${prefix}" = "NONE"; then
2141    prefix=/usr/local
2142fi
2143if test "${exec_prefix}" = "NONE"; then
2144    exec_prefix=$prefix
2145fi
2146
2147if test "${libdir}" != "${prefix}/lib"; then
2148    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
2149else
2150    LIB_SEARCH_DIRS="-L${libdir}"
2151fi
2152# Make sure we can run config.sub.
2153$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2154  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2155
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2157$as_echo_n "checking build system type... " >&6; }
2158if ${ac_cv_build+:} false; then :
2159  $as_echo_n "(cached) " >&6
2160else
2161  ac_build_alias=$build_alias
2162test "x$ac_build_alias" = x &&
2163  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2164test "x$ac_build_alias" = x &&
2165  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2168
2169fi
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2171$as_echo "$ac_cv_build" >&6; }
2172case $ac_cv_build in
2173*-*-*) ;;
2174*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2175esac
2176build=$ac_cv_build
2177ac_save_IFS=$IFS; IFS='-'
2178set x $ac_cv_build
2179shift
2180build_cpu=$1
2181build_vendor=$2
2182shift; shift
2183# Remember, the first character of IFS is used to create $*,
2184# except with old shells:
2185build_os=$*
2186IFS=$ac_save_IFS
2187case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188
2189
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2191$as_echo_n "checking host system type... " >&6; }
2192if ${ac_cv_host+:} false; then :
2193  $as_echo_n "(cached) " >&6
2194else
2195  if test "x$host_alias" = x; then
2196  ac_cv_host=$ac_cv_build
2197else
2198  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2200fi
2201
2202fi
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2204$as_echo "$ac_cv_host" >&6; }
2205case $ac_cv_host in
2206*-*-*) ;;
2207*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2208esac
2209host=$ac_cv_host
2210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_host
2212shift
2213host_cpu=$1
2214host_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218host_os=$*
2219IFS=$ac_save_IFS
2220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2221
2222
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2224$as_echo_n "checking target system type... " >&6; }
2225if ${ac_cv_target+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  if test "x$target_alias" = x; then
2229  ac_cv_target=$ac_cv_host
2230else
2231  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2233fi
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2237$as_echo "$ac_cv_target" >&6; }
2238case $ac_cv_target in
2239*-*-*) ;;
2240*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2241esac
2242target=$ac_cv_target
2243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_target
2245shift
2246target_cpu=$1
2247target_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251target_os=$*
2252IFS=$ac_save_IFS
2253case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2254
2255
2256# The aliases save the names the user supplied, while $host etc.
2257# will get canonicalized.
2258test -n "$target_alias" &&
2259  test "$program_prefix$program_suffix$program_transform_name" = \
2260    NONENONEs,x,x, &&
2261  program_prefix=${target_alias}-
2262
2263
2264# Find a good install program.  We prefer a C program (faster),
2265# so one script is as good as another.  But avoid the broken or
2266# incompatible versions:
2267# SysV /etc/install, /usr/sbin/install
2268# SunOS /usr/etc/install
2269# IRIX /sbin/install
2270# AIX /bin/install
2271# AmigaOS /C/install, which installs bootblocks on floppy discs
2272# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2273# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2274# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2275# OS/2's system install, which has a completely different semantic
2276# ./install, which can be erroneously created by make from ./install.sh.
2277# Reject install programs that cannot install multiple files.
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2279$as_echo_n "checking for a BSD-compatible install... " >&6; }
2280if test -z "$INSTALL"; then
2281if ${ac_cv_path_install+:} false; then :
2282  $as_echo_n "(cached) " >&6
2283else
2284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289    # Account for people who put trailing slashes in PATH elements.
2290case $as_dir/ in #((
2291  ./ | .// | /[cC]/* | \
2292  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2293  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2294  /usr/ucb/* ) ;;
2295  *)
2296    # OSF1 and SCO ODT 3.0 have their own names for install.
2297    # Don't use installbsd from OSF since it installs stuff as root
2298    # by default.
2299    for ac_prog in ginstall scoinst install; do
2300      for ac_exec_ext in '' $ac_executable_extensions; do
2301        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2302          if test $ac_prog = install &&
2303            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304            # AIX install.  It has an incompatible calling convention.
2305            :
2306          elif test $ac_prog = install &&
2307            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308            # program-specific install script used by HP pwplus--don't use.
2309            :
2310          else
2311            rm -rf conftest.one conftest.two conftest.dir
2312            echo one > conftest.one
2313            echo two > conftest.two
2314            mkdir conftest.dir
2315            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2316              test -s conftest.one && test -s conftest.two &&
2317              test -s conftest.dir/conftest.one &&
2318              test -s conftest.dir/conftest.two
2319            then
2320              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2321              break 3
2322            fi
2323          fi
2324        fi
2325      done
2326    done
2327    ;;
2328esac
2329
2330  done
2331IFS=$as_save_IFS
2332
2333rm -rf conftest.one conftest.two conftest.dir
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.  Don't cache a
2340    # value 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 value is a relative name.
2343    INSTALL=$ac_install_sh
2344  fi
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2347$as_echo "$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
2358if test -n "$ac_tool_prefix"; then
2359  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2360set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362$as_echo_n "checking for $ac_word... " >&6; }
2363if ${ac_cv_prog_RANLIB+:} false; then :
2364  $as_echo_n "(cached) " >&6
2365else
2366  if test -n "$RANLIB"; then
2367  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372  IFS=$as_save_IFS
2373  test -z "$as_dir" && as_dir=.
2374    for ac_exec_ext in '' $ac_executable_extensions; do
2375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378    break 2
2379  fi
2380done
2381  done
2382IFS=$as_save_IFS
2383
2384fi
2385fi
2386RANLIB=$ac_cv_prog_RANLIB
2387if test -n "$RANLIB"; then
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2389$as_echo "$RANLIB" >&6; }
2390else
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392$as_echo "no" >&6; }
2393fi
2394
2395
2396fi
2397if test -z "$ac_cv_prog_RANLIB"; then
2398  ac_ct_RANLIB=$RANLIB
2399  # Extract the first word of "ranlib", so it can be a program name with args.
2400set dummy ranlib; ac_word=$2
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2404  $as_echo_n "(cached) " >&6
2405else
2406  if test -n "$ac_ct_RANLIB"; then
2407  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414    for ac_exec_ext in '' $ac_executable_extensions; do
2415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416    ac_cv_prog_ac_ct_RANLIB="ranlib"
2417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418    break 2
2419  fi
2420done
2421  done
2422IFS=$as_save_IFS
2423
2424fi
2425fi
2426ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2427if test -n "$ac_ct_RANLIB"; then
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2429$as_echo "$ac_ct_RANLIB" >&6; }
2430else
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432$as_echo "no" >&6; }
2433fi
2434
2435  if test "x$ac_ct_RANLIB" = x; then
2436    RANLIB=":"
2437  else
2438    case $cross_compiling:$ac_tool_warned in
2439yes:)
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442ac_tool_warned=yes ;;
2443esac
2444    RANLIB=$ac_ct_RANLIB
2445  fi
2446else
2447  RANLIB="$ac_cv_prog_RANLIB"
2448fi
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2451$as_echo_n "checking whether ln -s works... " >&6; }
2452LN_S=$as_ln_s
2453if test "$LN_S" = "ln -s"; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455$as_echo "yes" >&6; }
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2458$as_echo "no, using $LN_S" >&6; }
2459fi
2460
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2462$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2463if test -z "$MKDIR_P"; then
2464  if ${ac_cv_path_mkdir+:} false; then :
2465  $as_echo_n "(cached) " >&6
2466else
2467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472    for ac_prog in mkdir gmkdir; do
2473         for ac_exec_ext in '' $ac_executable_extensions; do
2474           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2475           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2476             'mkdir (GNU coreutils) '* | \
2477             'mkdir (coreutils) '* | \
2478             'mkdir (fileutils) '4.1*)
2479               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2480               break 3;;
2481           esac
2482         done
2483       done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488
2489  test -d ./--version && rmdir ./--version
2490  if test "${ac_cv_path_mkdir+set}" = set; then
2491    MKDIR_P="$ac_cv_path_mkdir -p"
2492  else
2493    # As a last resort, use the slow shell script.  Don't cache a
2494    # value for MKDIR_P within a source directory, because that will
2495    # break other packages using the cache if that directory is
2496    # removed, or if the value is a relative name.
2497    MKDIR_P="$ac_install_sh -d"
2498  fi
2499fi
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2501$as_echo "$MKDIR_P" >&6; }
2502
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2504$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2505set x ${MAKE-make}
2506ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2507if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2508  $as_echo_n "(cached) " >&6
2509else
2510  cat >conftest.make <<\_ACEOF
2511SHELL = /bin/sh
2512all:
2513        @echo '@@@%%%=$(MAKE)=@@@%%%'
2514_ACEOF
2515# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2516case `${MAKE-make} -f conftest.make 2>/dev/null` in
2517  *@@@%%%=?*=@@@%%%*)
2518    eval ac_cv_prog_make_${ac_make}_set=yes;;
2519  *)
2520    eval ac_cv_prog_make_${ac_make}_set=no;;
2521esac
2522rm -f conftest.make
2523fi
2524if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526$as_echo "yes" >&6; }
2527  SET_MAKE=
2528else
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
2531  SET_MAKE="MAKE=${MAKE-make}"
2532fi
2533
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539if test -n "$ac_tool_prefix"; then
2540  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2541set dummy ${ac_tool_prefix}gcc; ac_word=$2
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
2544if ${ac_cv_prog_CC+:} false; then :
2545  $as_echo_n "(cached) " >&6
2546else
2547  if test -n "$CC"; then
2548  ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553  IFS=$as_save_IFS
2554  test -z "$as_dir" && as_dir=.
2555    for ac_exec_ext in '' $ac_executable_extensions; do
2556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559    break 2
2560  fi
2561done
2562  done
2563IFS=$as_save_IFS
2564
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570$as_echo "$CC" >&6; }
2571else
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
2574fi
2575
2576
2577fi
2578if test -z "$ac_cv_prog_CC"; then
2579  ac_ct_CC=$CC
2580  # Extract the first word of "gcc", so it can be a program name with args.
2581set dummy gcc; ac_word=$2
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583$as_echo_n "checking for $ac_word... " >&6; }
2584if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  if test -n "$ac_ct_CC"; then
2588  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595    for ac_exec_ext in '' $ac_executable_extensions; do
2596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597    ac_cv_prog_ac_ct_CC="gcc"
2598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599    break 2
2600  fi
2601done
2602  done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608if test -n "$ac_ct_CC"; then
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2610$as_echo "$ac_ct_CC" >&6; }
2611else
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613$as_echo "no" >&6; }
2614fi
2615
2616  if test "x$ac_ct_CC" = x; then
2617    CC=""
2618  else
2619    case $cross_compiling:$ac_tool_warned in
2620yes:)
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623ac_tool_warned=yes ;;
2624esac
2625    CC=$ac_ct_CC
2626  fi
2627else
2628  CC="$ac_cv_prog_CC"
2629fi
2630
2631if test -z "$CC"; then
2632          if test -n "$ac_tool_prefix"; then
2633    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2634set dummy ${ac_tool_prefix}cc; ac_word=$2
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if ${ac_cv_prog_CC+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  if test -n "$CC"; then
2641  ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648    for ac_exec_ext in '' $ac_executable_extensions; do
2649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650    ac_cv_prog_CC="${ac_tool_prefix}cc"
2651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663$as_echo "$CC" >&6; }
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667fi
2668
2669
2670  fi
2671fi
2672if test -z "$CC"; then
2673  # Extract the first word of "cc", so it can be a program name with args.
2674set dummy cc; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_CC+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$CC"; then
2681  ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
2683  ac_prog_rejected=no
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    for ac_exec_ext in '' $ac_executable_extensions; do
2690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692       ac_prog_rejected=yes
2693       continue
2694     fi
2695    ac_cv_prog_CC="cc"
2696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697    break 2
2698  fi
2699done
2700  done
2701IFS=$as_save_IFS
2702
2703if test $ac_prog_rejected = yes; then
2704  # We found a bogon in the path, so make sure we never use it.
2705  set dummy $ac_cv_prog_CC
2706  shift
2707  if test $# != 0; then
2708    # We chose a different compiler from the bogus one.
2709    # However, it has the same basename, so the bogon will be chosen
2710    # first if we set CC to just the basename; use the full file name.
2711    shift
2712    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2713  fi
2714fi
2715fi
2716fi
2717CC=$ac_cv_prog_CC
2718if test -n "$CC"; then
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720$as_echo "$CC" >&6; }
2721else
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723$as_echo "no" >&6; }
2724fi
2725
2726
2727fi
2728if test -z "$CC"; then
2729  if test -n "$ac_tool_prefix"; then
2730  for ac_prog in cl.exe
2731  do
2732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if ${ac_cv_prog_CC+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  if test -n "$CC"; then
2740  ac_cv_prog_CC="$CC" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762$as_echo "$CC" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769    test -n "$CC" && break
2770  done
2771fi
2772if test -z "$CC"; then
2773  ac_ct_CC=$CC
2774  for ac_prog in cl.exe
2775do
2776  # Extract the first word of "$ac_prog", so it can be a program name with args.
2777set dummy $ac_prog; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$ac_ct_CC"; then
2784  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793    ac_cv_prog_ac_ct_CC="$ac_prog"
2794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804if test -n "$ac_ct_CC"; then
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806$as_echo "$ac_ct_CC" >&6; }
2807else
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813  test -n "$ac_ct_CC" && break
2814done
2815
2816  if test "x$ac_ct_CC" = x; then
2817    CC=""
2818  else
2819    case $cross_compiling:$ac_tool_warned in
2820yes:)
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823ac_tool_warned=yes ;;
2824esac
2825    CC=$ac_ct_CC
2826  fi
2827fi
2828
2829fi
2830
2831
2832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834as_fn_error $? "no acceptable C compiler found in \$PATH
2835See \`config.log' for more details" "$LINENO" 5; }
2836
2837# Provide some information about the compiler.
2838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2839set X $ac_compile
2840ac_compiler=$2
2841for ac_option in --version -v -V -qversion; do
2842  { { ac_try="$ac_compiler $ac_option >&5"
2843case "(($ac_try" in
2844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845  *) ac_try_echo=$ac_try;;
2846esac
2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848$as_echo "$ac_try_echo"; } >&5
2849  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2850  ac_status=$?
2851  if test -s conftest.err; then
2852    sed '10a\
2853... rest of stderr output deleted ...
2854         10q' conftest.err >conftest.er1
2855    cat conftest.er1 >&5
2856  fi
2857  rm -f conftest.er1 conftest.err
2858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859  test $ac_status = 0; }
2860done
2861
2862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h.  */
2864
2865int
2866main ()
2867{
2868
2869  ;
2870  return 0;
2871}
2872_ACEOF
2873ac_clean_files_save=$ac_clean_files
2874ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2875# Try to create an executable without -o first, disregard a.out.
2876# It will help us diagnose broken compilers, and finding out an intuition
2877# of exeext.
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2879$as_echo_n "checking whether the C compiler works... " >&6; }
2880ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881
2882# The possible output files:
2883ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884
2885ac_rmfiles=
2886for ac_file in $ac_files
2887do
2888  case $ac_file in
2889    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891  esac
2892done
2893rm -f $ac_rmfiles
2894
2895if { { ac_try="$ac_link_default"
2896case "(($ac_try" in
2897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898  *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902  (eval "$ac_link_default") 2>&5
2903  ac_status=$?
2904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905  test $ac_status = 0; }; then :
2906  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2909# so that the user can short-circuit this test for compilers unknown to
2910# Autoconf.
2911for ac_file in $ac_files ''
2912do
2913  test -f "$ac_file" || continue
2914  case $ac_file in
2915    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916        ;;
2917    [ab].out )
2918        # We found the default executable, but exeext='' is most
2919        # certainly right.
2920        break;;
2921    *.* )
2922        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923        then :; else
2924           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925        fi
2926        # We set ac_cv_exeext here because the later test for it is not
2927        # safe: cross compilers may not add the suffix if given an `-o'
2928        # argument, so we may need to know it at that point already.
2929        # Even if this section looks crufty: it has the advantage of
2930        # actually working.
2931        break;;
2932    * )
2933        break;;
2934  esac
2935done
2936test "$ac_cv_exeext" = no && ac_cv_exeext=
2937
2938else
2939  ac_file=''
2940fi
2941if test -z "$ac_file"; then :
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944$as_echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error 77 "C compiler cannot create executables
2950See \`config.log' for more details" "$LINENO" 5; }
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953$as_echo "yes" >&6; }
2954fi
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2956$as_echo_n "checking for C compiler default output file name... " >&6; }
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958$as_echo "$ac_file" >&6; }
2959ac_exeext=$ac_cv_exeext
2960
2961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2962ac_clean_files=$ac_clean_files_save
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2964$as_echo_n "checking for suffix of executables... " >&6; }
2965if { { ac_try="$ac_link"
2966case "(($ac_try" in
2967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968  *) ac_try_echo=$ac_try;;
2969esac
2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971$as_echo "$ac_try_echo"; } >&5
2972  (eval "$ac_link") 2>&5
2973  ac_status=$?
2974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975  test $ac_status = 0; }; then :
2976  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2978# work properly (i.e., refer to `conftest.exe'), while it won't with
2979# `rm'.
2980for ac_file in conftest.exe conftest conftest.*; do
2981  test -f "$ac_file" || continue
2982  case $ac_file in
2983    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985          break;;
2986    * ) break;;
2987  esac
2988done
2989else
2990  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2993See \`config.log' for more details" "$LINENO" 5; }
2994fi
2995rm -f conftest conftest$ac_cv_exeext
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2997$as_echo "$ac_cv_exeext" >&6; }
2998
2999rm -f conftest.$ac_ext
3000EXEEXT=$ac_cv_exeext
3001ac_exeext=$EXEEXT
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004#include <stdio.h>
3005int
3006main ()
3007{
3008FILE *f = fopen ("conftest.out", "w");
3009 return ferror (f) || fclose (f) != 0;
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015ac_clean_files="$ac_clean_files conftest.out"
3016# Check that the compiler produces executables we can run.  If not, either
3017# the compiler is broken, or we cross compile.
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3019$as_echo_n "checking whether we are cross compiling... " >&6; }
3020if test "$cross_compiling" != yes; then
3021  { { ac_try="$ac_link"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027$as_echo "$ac_try_echo"; } >&5
3028  (eval "$ac_link") 2>&5
3029  ac_status=$?
3030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031  test $ac_status = 0; }
3032  if { ac_try='./conftest$ac_cv_exeext'
3033  { { case "(($ac_try" in
3034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035  *) ac_try_echo=$ac_try;;
3036esac
3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038$as_echo "$ac_try_echo"; } >&5
3039  (eval "$ac_try") 2>&5
3040  ac_status=$?
3041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042  test $ac_status = 0; }; }; then
3043    cross_compiling=no
3044  else
3045    if test "$cross_compiling" = maybe; then
3046        cross_compiling=yes
3047    else
3048        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050as_fn_error $? "cannot run C compiled programs.
3051If you meant to cross compile, use \`--host'.
3052See \`config.log' for more details" "$LINENO" 5; }
3053    fi
3054  fi
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3057$as_echo "$cross_compiling" >&6; }
3058
3059rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3060ac_clean_files=$ac_clean_files_save
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3062$as_echo_n "checking for suffix of object files... " >&6; }
3063if ${ac_cv_objext+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077rm -f conftest.o conftest.obj
3078if { { ac_try="$ac_compile"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085  (eval "$ac_compile") 2>&5
3086  ac_status=$?
3087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088  test $ac_status = 0; }; then :
3089  for ac_file in conftest.o conftest.obj conftest.*; do
3090  test -f "$ac_file" || continue;
3091  case $ac_file in
3092    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094       break;;
3095  esac
3096done
3097else
3098  $as_echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error $? "cannot compute suffix of object files: cannot compile
3104See \`config.log' for more details" "$LINENO" 5; }
3105fi
3106rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3109$as_echo "$ac_cv_objext" >&6; }
3110OBJEXT=$ac_cv_objext
3111ac_objext=$OBJEXT
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3114if ${ac_cv_c_compiler_gnu+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123#ifndef __GNUC__
3124       choke me
3125#endif
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131if ac_fn_c_try_compile "$LINENO"; then :
3132  ac_compiler_gnu=yes
3133else
3134  ac_compiler_gnu=no
3135fi
3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3141$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142if test $ac_compiler_gnu = yes; then
3143  GCC=yes
3144else
3145  GCC=
3146fi
3147ac_test_CFLAGS=${CFLAGS+set}
3148ac_save_CFLAGS=$CFLAGS
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3150$as_echo_n "checking whether $CC accepts -g... " >&6; }
3151if ${ac_cv_prog_cc_g+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  ac_save_c_werror_flag=$ac_c_werror_flag
3155   ac_c_werror_flag=yes
3156   ac_cv_prog_cc_g=no
3157   CFLAGS="-g"
3158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159/* end confdefs.h.  */
3160
3161int
3162main ()
3163{
3164
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169if ac_fn_c_try_compile "$LINENO"; then :
3170  ac_cv_prog_cc_g=yes
3171else
3172  CFLAGS=""
3173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174/* end confdefs.h.  */
3175
3176int
3177main ()
3178{
3179
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184if ac_fn_c_try_compile "$LINENO"; then :
3185
3186else
3187  ac_c_werror_flag=$ac_save_c_werror_flag
3188         CFLAGS="-g"
3189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200if ac_fn_c_try_compile "$LINENO"; then :
3201  ac_cv_prog_cc_g=yes
3202fi
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204fi
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206fi
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208   ac_c_werror_flag=$ac_save_c_werror_flag
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3211$as_echo "$ac_cv_prog_cc_g" >&6; }
3212if test "$ac_test_CFLAGS" = set; then
3213  CFLAGS=$ac_save_CFLAGS
3214elif test $ac_cv_prog_cc_g = yes; then
3215  if test "$GCC" = yes; then
3216    CFLAGS="-g -O2"
3217  else
3218    CFLAGS="-g"
3219  fi
3220else
3221  if test "$GCC" = yes; then
3222    CFLAGS="-O2"
3223  else
3224    CFLAGS=
3225  fi
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3229if ${ac_cv_prog_cc_c89+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  ac_cv_prog_cc_c89=no
3233ac_save_CC=$CC
3234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h.  */
3236#include <stdarg.h>
3237#include <stdio.h>
3238struct stat;
3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3240struct buf { int x; };
3241FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242static char *e (p, i)
3243     char **p;
3244     int i;
3245{
3246  return p[i];
3247}
3248static char *f (char * (*g) (char **, int), char **p, ...)
3249{
3250  char *s;
3251  va_list v;
3252  va_start (v,p);
3253  s = g (p, va_arg (v,int));
3254  va_end (v);
3255  return s;
3256}
3257
3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3259   function prototypes and stuff, but not '\xHH' hex character constants.
3260   These don't provoke an error unfortunately, instead are silently treated
3261   as 'x'.  The following induces an error, until -std is added to get
3262   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3263   array size at least.  It's necessary to write '\x00'==0 to get something
3264   that's true only with -std.  */
3265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268   inside strings and character constants.  */
3269#define FOO(x) 'x'
3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
3272int test (int i, double x);
3273struct s1 {int (*f) (int a);};
3274struct s2 {int (*f) (double a);};
3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276int argc;
3277char **argv;
3278int
3279main ()
3280{
3281return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288do
3289  CC="$ac_save_CC $ac_arg"
3290  if ac_fn_c_try_compile "$LINENO"; then :
3291  ac_cv_prog_cc_c89=$ac_arg
3292fi
3293rm -f core conftest.err conftest.$ac_objext
3294  test "x$ac_cv_prog_cc_c89" != "xno" && break
3295done
3296rm -f conftest.$ac_ext
3297CC=$ac_save_CC
3298
3299fi
3300# AC_CACHE_VAL
3301case "x$ac_cv_prog_cc_c89" in
3302  x)
3303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304$as_echo "none needed" >&6; } ;;
3305  xno)
3306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307$as_echo "unsupported" >&6; } ;;
3308  *)
3309    CC="$CC $ac_cv_prog_cc_c89"
3310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312esac
3313if test "x$ac_cv_prog_cc_c89" != xno; then :
3314
3315fi
3316
3317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3331$as_echo_n "checking how to run the C preprocessor... " >&6; }
3332# On Suns, sometimes $CPP names a directory.
3333if test -n "$CPP" && test -d "$CPP"; then
3334  CPP=
3335fi
3336if test -z "$CPP"; then
3337  if ${ac_cv_prog_CPP+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340      # Double quotes because CPP needs to be expanded
3341    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3342    do
3343      ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346  # Use a header file that comes with gcc, so configuring glibc
3347  # with a fresh cross-compiler works.
3348  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349  # <limits.h> exists even on freestanding compilers.
3350  # On the NeXT, cc -E runs the code through the compiler's parser,
3351  # not just through cpp. "Syntax error" is here to catch this case.
3352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h.  */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359                     Syntax error
3360_ACEOF
3361if ac_fn_c_try_cpp "$LINENO"; then :
3362
3363else
3364  # Broken: fails on valid input.
3365continue
3366fi
3367rm -f conftest.err conftest.i conftest.$ac_ext
3368
3369  # OK, works on sane cases.  Now check whether nonexistent headers
3370  # can be detected and how.
3371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if ac_fn_c_try_cpp "$LINENO"; then :
3376  # Broken: success on invalid input.
3377continue
3378else
3379  # Passes both tests.
3380ac_preproc_ok=:
3381break
3382fi
3383rm -f conftest.err conftest.i conftest.$ac_ext
3384
3385done
3386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387rm -f conftest.i conftest.err conftest.$ac_ext
3388if $ac_preproc_ok; then :
3389  break
3390fi
3391
3392    done
3393    ac_cv_prog_CPP=$CPP
3394
3395fi
3396  CPP=$ac_cv_prog_CPP
3397else
3398  ac_cv_prog_CPP=$CPP
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3401$as_echo "$CPP" >&6; }
3402ac_preproc_ok=false
3403for ac_c_preproc_warn_flag in '' yes
3404do
3405  # Use a header file that comes with gcc, so configuring glibc
3406  # with a fresh cross-compiler works.
3407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408  # <limits.h> exists even on freestanding compilers.
3409  # On the NeXT, cc -E runs the code through the compiler's parser,
3410  # not just through cpp. "Syntax error" is here to catch this case.
3411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413#ifdef __STDC__
3414# include <limits.h>
3415#else
3416# include <assert.h>
3417#endif
3418                     Syntax error
3419_ACEOF
3420if ac_fn_c_try_cpp "$LINENO"; then :
3421
3422else
3423  # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.i conftest.$ac_ext
3427
3428  # OK, works on sane cases.  Now check whether nonexistent headers
3429  # can be detected and how.
3430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <ac_nonexistent.h>
3433_ACEOF
3434if ac_fn_c_try_cpp "$LINENO"; then :
3435  # Broken: success on invalid input.
3436continue
3437else
3438  # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.i conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then :
3448
3449else
3450  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455
3456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3464$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3465if ${ac_cv_path_GREP+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  if test -z "$GREP"; then
3469  ac_path_GREP_found=false
3470  # Loop through the user's path and test for each of PROGNAME-LIST
3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_prog in grep ggrep; do
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3479      as_fn_executable_p "$ac_path_GREP" || continue
3480# Check for GNU ac_path_GREP and select it if it is found.
3481  # Check for GNU $ac_path_GREP
3482case `"$ac_path_GREP" --version 2>&1` in
3483*GNU*)
3484  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3485*)
3486  ac_count=0
3487  $as_echo_n 0123456789 >"conftest.in"
3488  while :
3489  do
3490    cat "conftest.in" "conftest.in" >"conftest.tmp"
3491    mv "conftest.tmp" "conftest.in"
3492    cp "conftest.in" "conftest.nl"
3493    $as_echo 'GREP' >> "conftest.nl"
3494    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3496    as_fn_arith $ac_count + 1 && ac_count=$as_val
3497    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3498      # Best one so far, save it but keep looking for a better one
3499      ac_cv_path_GREP="$ac_path_GREP"
3500      ac_path_GREP_max=$ac_count
3501    fi
3502    # 10*(2^10) chars as input seems more than enough
3503    test $ac_count -gt 10 && break
3504  done
3505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3506esac
3507
3508      $ac_path_GREP_found && break 3
3509    done
3510  done
3511  done
3512IFS=$as_save_IFS
3513  if test -z "$ac_cv_path_GREP"; then
3514    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515  fi
3516else
3517  ac_cv_path_GREP=$GREP
3518fi
3519
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3522$as_echo "$ac_cv_path_GREP" >&6; }
3523 GREP="$ac_cv_path_GREP"
3524
3525
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3527$as_echo_n "checking for egrep... " >&6; }
3528if ${ac_cv_path_EGREP+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3532   then ac_cv_path_EGREP="$GREP -E"
3533   else
3534     if test -z "$EGREP"; then
3535  ac_path_EGREP_found=false
3536  # Loop through the user's path and test for each of PROGNAME-LIST
3537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3539do
3540  IFS=$as_save_IFS
3541  test -z "$as_dir" && as_dir=.
3542    for ac_prog in egrep; do
3543    for ac_exec_ext in '' $ac_executable_extensions; do
3544      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3545      as_fn_executable_p "$ac_path_EGREP" || continue
3546# Check for GNU ac_path_EGREP and select it if it is found.
3547  # Check for GNU $ac_path_EGREP
3548case `"$ac_path_EGREP" --version 2>&1` in
3549*GNU*)
3550  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3551*)
3552  ac_count=0
3553  $as_echo_n 0123456789 >"conftest.in"
3554  while :
3555  do
3556    cat "conftest.in" "conftest.in" >"conftest.tmp"
3557    mv "conftest.tmp" "conftest.in"
3558    cp "conftest.in" "conftest.nl"
3559    $as_echo 'EGREP' >> "conftest.nl"
3560    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562    as_fn_arith $ac_count + 1 && ac_count=$as_val
3563    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3564      # Best one so far, save it but keep looking for a better one
3565      ac_cv_path_EGREP="$ac_path_EGREP"
3566      ac_path_EGREP_max=$ac_count
3567    fi
3568    # 10*(2^10) chars as input seems more than enough
3569    test $ac_count -gt 10 && break
3570  done
3571  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572esac
3573
3574      $ac_path_EGREP_found && break 3
3575    done
3576  done
3577  done
3578IFS=$as_save_IFS
3579  if test -z "$ac_cv_path_EGREP"; then
3580    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3581  fi
3582else
3583  ac_cv_path_EGREP=$EGREP
3584fi
3585
3586   fi
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3589$as_echo "$ac_cv_path_EGREP" >&6; }
3590 EGREP="$ac_cv_path_EGREP"
3591
3592
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3594$as_echo_n "checking for ANSI C header files... " >&6; }
3595if ${ac_cv_header_stdc+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h.  */
3600#include <stdlib.h>
3601#include <stdarg.h>
3602#include <string.h>
3603#include <float.h>
3604
3605int
3606main ()
3607{
3608
3609  ;
3610  return 0;
3611}
3612_ACEOF
3613if ac_fn_c_try_compile "$LINENO"; then :
3614  ac_cv_header_stdc=yes
3615else
3616  ac_cv_header_stdc=no
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619
3620if test $ac_cv_header_stdc = yes; then
3621  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h.  */
3624#include <string.h>
3625
3626_ACEOF
3627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628  $EGREP "memchr" >/dev/null 2>&1; then :
3629
3630else
3631  ac_cv_header_stdc=no
3632fi
3633rm -f conftest*
3634
3635fi
3636
3637if test $ac_cv_header_stdc = yes; then
3638  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641#include <stdlib.h>
3642
3643_ACEOF
3644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645  $EGREP "free" >/dev/null 2>&1; then :
3646
3647else
3648  ac_cv_header_stdc=no
3649fi
3650rm -f conftest*
3651
3652fi
3653
3654if test $ac_cv_header_stdc = yes; then
3655  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3656  if test "$cross_compiling" = yes; then :
3657  :
3658else
3659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661#include <ctype.h>
3662#include <stdlib.h>
3663#if ((' ' & 0x0FF) == 0x020)
3664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3666#else
3667# define ISLOWER(c) \
3668                   (('a' <= (c) && (c) <= 'i') \
3669                     || ('j' <= (c) && (c) <= 'r') \
3670                     || ('s' <= (c) && (c) <= 'z'))
3671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672#endif
3673
3674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3675int
3676main ()
3677{
3678  int i;
3679  for (i = 0; i < 256; i++)
3680    if (XOR (islower (i), ISLOWER (i))
3681        || toupper (i) != TOUPPER (i))
3682      return 2;
3683  return 0;
3684}
3685_ACEOF
3686if ac_fn_c_try_run "$LINENO"; then :
3687
3688else
3689  ac_cv_header_stdc=no
3690fi
3691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3692  conftest.$ac_objext conftest.beam conftest.$ac_ext
3693fi
3694
3695fi
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3698$as_echo "$ac_cv_header_stdc" >&6; }
3699if test $ac_cv_header_stdc = yes; then
3700
3701$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3702
3703fi
3704
3705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3707                  inttypes.h stdint.h unistd.h
3708do :
3709  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3711"
3712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3713  cat >>confdefs.h <<_ACEOF
3714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3715_ACEOF
3716
3717fi
3718
3719done
3720
3721
3722
3723
3724    # Step 0.a: Enable 64 bit support?
3725
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
3727$as_echo_n "checking if 64bit support is requested... " >&6; }
3728    # Check whether --enable-64bit was given.
3729if test "${enable_64bit+set}" = set; then :
3730  enableval=$enable_64bit; do64bit=$enableval
3731else
3732  do64bit=no
3733fi
3734
3735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
3736$as_echo "$do64bit" >&6; }
3737
3738    # Step 0.b: Enable Solaris 64 bit VIS support?
3739
3740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
3741$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
3742    # Check whether --enable-64bit-vis was given.
3743if test "${enable_64bit_vis+set}" = set; then :
3744  enableval=$enable_64bit_vis; do64bitVIS=$enableval
3745else
3746  do64bitVIS=no
3747fi
3748
3749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
3750$as_echo "$do64bitVIS" >&6; }
3751
3752    if test "$do64bitVIS" = "yes"; then
3753        # Force 64bit on with VIS
3754        do64bit=yes
3755    fi
3756
3757    # Step 1: set the variable "system" to hold the name and version number
3758    # for the system.
3759
3760
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
3762$as_echo_n "checking system version... " >&6; }
3763if ${tcl_cv_sys_version+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766
3767        if test -f /usr/lib/NextStep/software_version; then
3768            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
3769        else
3770            tcl_cv_sys_version=`uname -s`-`uname -r`
3771            if test "$?" -ne 0 ; then
3772                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
3773$as_echo "$as_me: WARNING: can't find uname command" >&2;}
3774                tcl_cv_sys_version=unknown
3775            else
3776                # Special check for weird MP-RAS system (uname returns weird
3777                # results, and the version is kept in special file).
3778
3779                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
3780                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
3781                fi
3782                if test "`uname -s`" = "AIX" ; then
3783                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
3784                fi
3785            fi
3786        fi
3787
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
3790$as_echo "$tcl_cv_sys_version" >&6; }
3791    system=$tcl_cv_sys_version
3792
3793
3794    # Step 2: check for existence of -ldl library.  This is needed because
3795    # Linux can use either -ldl or -ldld for dynamic loading.
3796
3797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3798$as_echo_n "checking for dlopen in -ldl... " >&6; }
3799if ${ac_cv_lib_dl_dlopen+:} false; then :
3800  $as_echo_n "(cached) " >&6
3801else
3802  ac_check_lib_save_LIBS=$LIBS
3803LIBS="-ldl  $LIBS"
3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806
3807/* Override any GCC internal prototype to avoid an error.
3808   Use char because int might match the return type of a GCC
3809   builtin and then its argument prototype would still apply.  */
3810#ifdef __cplusplus
3811extern "C"
3812#endif
3813char dlopen ();
3814int
3815main ()
3816{
3817return dlopen ();
3818  ;
3819  return 0;
3820}
3821_ACEOF
3822if ac_fn_c_try_link "$LINENO"; then :
3823  ac_cv_lib_dl_dlopen=yes
3824else
3825  ac_cv_lib_dl_dlopen=no
3826fi
3827rm -f core conftest.err conftest.$ac_objext \
3828    conftest$ac_exeext conftest.$ac_ext
3829LIBS=$ac_check_lib_save_LIBS
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3832$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3833if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3834  have_dl=yes
3835else
3836  have_dl=no
3837fi
3838
3839
3840    # Require ranlib early so we can override it in special cases below.
3841
3842
3843
3844    # Step 3: set configuration options based on system name and version.
3845
3846    do64bit_ok=no
3847    LDFLAGS_ORIG="$LDFLAGS"
3848    TCL_EXPORT_FILE_SUFFIX=""
3849    UNSHARED_LIB_SUFFIX=""
3850    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
3851    ECHO_VERSION='`echo ${VERSION}`'
3852    TCL_LIB_VERSIONS_OK=ok
3853    CFLAGS_DEBUG=-g
3854    CFLAGS_OPTIMIZE=-O
3855    if test "$GCC" = "yes" ; then
3856        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
3857    else
3858        CFLAGS_WARNING=""
3859    fi
3860    TCL_NEEDS_EXP_FILE=0
3861    TCL_BUILD_EXP_FILE=""
3862    TCL_EXP_FILE=""
3863    # Extract the first word of "ar", so it can be a program name with args.
3864set dummy ar; ac_word=$2
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866$as_echo_n "checking for $ac_word... " >&6; }
3867if ${ac_cv_prog_AR+:} false; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  if test -n "$AR"; then
3871  ac_cv_prog_AR="$AR" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876  IFS=$as_save_IFS
3877  test -z "$as_dir" && as_dir=.
3878    for ac_exec_ext in '' $ac_executable_extensions; do
3879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880    ac_cv_prog_AR="ar"
3881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882    break 2
3883  fi
3884done
3885  done
3886IFS=$as_save_IFS
3887
3888fi
3889fi
3890AR=$ac_cv_prog_AR
3891if test -n "$AR"; then
3892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3893$as_echo "$AR" >&6; }
3894else
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897fi
3898
3899
3900    if test "${AR}" = "" ; then
3901        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
3902    fi
3903    STLIB_LD='${AR} cr'
3904    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
3905    PLAT_OBJS=""
3906    PLAT_SRCS=""
3907    case $system in
3908        AIX-*)
3909            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
3910                # AIX requires the _r compiler when gcc isn't being used
3911                case "${CC}" in
3912                    *_r)
3913                        # ok ...
3914                        ;;
3915                    *)
3916                        CC=${CC}_r
3917                        ;;
3918                esac
3919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
3920$as_echo "Using $CC for compiling with threads" >&6; }
3921            fi
3922            LIBS="$LIBS -lc"
3923            SHLIB_CFLAGS=""
3924            # Note: need the LIBS below, otherwise Tk won't find Tcl's
3925            # symbols when dynamically loaded into tclsh.
3926            SHLIB_LD_LIBS='${LIBS}'
3927            SHLIB_SUFFIX=".so"
3928
3929            DL_OBJS="tclLoadDl.o"
3930            LD_LIBRARY_PATH_VAR="LIBPATH"
3931
3932            # Check to enable 64-bit flags for compiler/linker on AIX 4+
3933            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
3934                if test "$GCC" = "yes" ; then
3935                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
3936$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
3937                else
3938                    do64bit_ok=yes
3939                    CFLAGS="$CFLAGS -q64"
3940                    LDFLAGS="$LDFLAGS -q64"
3941                    RANLIB="${RANLIB} -X64"
3942                    AR="${AR} -X64"
3943                    SHLIB_LD_FLAGS="-b64"
3944                fi
3945            fi
3946
3947            if test "`uname -m`" = "ia64" ; then
3948                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
3949                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
3950                # AIX-5 has dl* in libc.so
3951                DL_LIBS=""
3952                if test "$GCC" = "yes" ; then
3953                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
3954                else
3955                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
3956                fi
3957                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
3958            else
3959                if test "$GCC" = "yes" ; then
3960                    SHLIB_LD="gcc -shared"
3961                else
3962                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
3963                fi
3964                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
3965                DL_LIBS="-ldl"
3966                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
3967                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
3968                TCL_NEEDS_EXP_FILE=1
3969                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
3970            fi
3971
3972            # AIX v<=4.1 has some different flags than 4.2+
3973            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
3974                LIBOBJS="$LIBOBJS tclLoadAix.o"
3975                DL_LIBS="-lld"
3976            fi
3977
3978            # On AIX <=v4 systems, libbsd.a has to be linked in to support
3979            # non-blocking file IO.  This library has to be linked in after
3980            # the MATH_LIBS or it breaks the pow() function.  The way to
3981            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
3982            # This library also supplies gettimeofday.
3983            #
3984            # AIX does not have a timezone field in struct tm. When the AIX
3985            # bsd library is used, the timezone global and the gettimeofday
3986            # methods are to be avoided for timezone deduction instead, we
3987            # deduce the timezone by comparing the localtime result on a
3988            # known GMT value.
3989
3990            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
3991$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
3992if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  ac_check_lib_save_LIBS=$LIBS
3996LIBS="-lbsd  $LIBS"
3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000/* Override any GCC internal prototype to avoid an error.
4001   Use char because int might match the return type of a GCC
4002   builtin and then its argument prototype would still apply.  */
4003#ifdef __cplusplus
4004extern "C"
4005#endif
4006char gettimeofday ();
4007int
4008main ()
4009{
4010return gettimeofday ();
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015if ac_fn_c_try_link "$LINENO"; then :
4016  ac_cv_lib_bsd_gettimeofday=yes
4017else
4018  ac_cv_lib_bsd_gettimeofday=no
4019fi
4020rm -f core conftest.err conftest.$ac_objext \
4021    conftest$ac_exeext conftest.$ac_ext
4022LIBS=$ac_check_lib_save_LIBS
4023fi
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
4025$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
4026if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
4027  libbsd=yes
4028else
4029  libbsd=no
4030fi
4031
4032            if test $libbsd = yes; then
4033                MATH_LIBS="$MATH_LIBS -lbsd"
4034                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
4035
4036            fi
4037            ;;
4038        BeOS*)
4039            SHLIB_CFLAGS="-fPIC"
4040            SHLIB_LD="${CC} -nostart"
4041            SHLIB_LD_LIBS='${LIBS}'
4042            SHLIB_SUFFIX=".so"
4043            DL_OBJS="tclLoadDl.o"
4044            DL_LIBS="-ldl"
4045
4046            #-----------------------------------------------------------
4047            # Check for inet_ntoa in -lbind, for BeOS (which also needs
4048            # -lsocket, even if the network functions are in -lnet which
4049            # is always linked to, for compatibility.
4050            #-----------------------------------------------------------
4051            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
4052$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
4053if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  ac_check_lib_save_LIBS=$LIBS
4057LIBS="-lbind  $LIBS"
4058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060
4061/* Override any GCC internal prototype to avoid an error.
4062   Use char because int might match the return type of a GCC
4063   builtin and then its argument prototype would still apply.  */
4064#ifdef __cplusplus
4065extern "C"
4066#endif
4067char inet_ntoa ();
4068int
4069main ()
4070{
4071return inet_ntoa ();
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076if ac_fn_c_try_link "$LINENO"; then :
4077  ac_cv_lib_bind_inet_ntoa=yes
4078else
4079  ac_cv_lib_bind_inet_ntoa=no
4080fi
4081rm -f core conftest.err conftest.$ac_objext \
4082    conftest$ac_exeext conftest.$ac_ext
4083LIBS=$ac_check_lib_save_LIBS
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4086$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4087if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
4088  LIBS="$LIBS -lbind -lsocket"
4089fi
4090
4091            ;;
4092        BSD/OS-2.1*|BSD/OS-3*)
4093            SHLIB_CFLAGS=""
4094            SHLIB_LD="shlicc -r"
4095            SHLIB_LD_LIBS='${LIBS}'
4096            SHLIB_SUFFIX=".so"
4097            DL_OBJS="tclLoadDl.o"
4098            DL_LIBS="-ldl"
4099            CC_SEARCH_FLAGS=""
4100            LD_SEARCH_FLAGS=""
4101            ;;
4102        BSD/OS-4.*)
4103            SHLIB_CFLAGS="-export-dynamic -fPIC"
4104            SHLIB_LD="cc -shared"
4105            SHLIB_LD_LIBS='${LIBS}'
4106            SHLIB_SUFFIX=".so"
4107            DL_OBJS="tclLoadDl.o"
4108            DL_LIBS="-ldl"
4109            LDFLAGS="$LDFLAGS -export-dynamic"
4110            CC_SEARCH_FLAGS=""
4111            LD_SEARCH_FLAGS=""
4112            ;;
4113        dgux*)
4114            SHLIB_CFLAGS="-K PIC"
4115            SHLIB_LD="cc -G"
4116            SHLIB_LD_LIBS=""
4117            SHLIB_SUFFIX=".so"
4118            DL_OBJS="tclLoadDl.o"
4119            DL_LIBS="-ldl"
4120            CC_SEARCH_FLAGS=""
4121            LD_SEARCH_FLAGS=""
4122            ;;
4123        HP-UX-*.11.*)
4124            # Use updated header definitions where possible
4125            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4126          # Use the XOPEN network library
4127            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4128 # Use the XOPEN network library
4129            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4130
4131            if test "`uname -m`" = "ia64" ; then
4132                SHLIB_SUFFIX=".so"
4133            else
4134                SHLIB_SUFFIX=".sl"
4135            fi
4136            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4137$as_echo_n "checking for shl_load in -ldld... " >&6; }
4138if ${ac_cv_lib_dld_shl_load+:} false; then :
4139  $as_echo_n "(cached) " >&6
4140else
4141  ac_check_lib_save_LIBS=$LIBS
4142LIBS="-ldld  $LIBS"
4143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145
4146/* Override any GCC internal prototype to avoid an error.
4147   Use char because int might match the return type of a GCC
4148   builtin and then its argument prototype would still apply.  */
4149#ifdef __cplusplus
4150extern "C"
4151#endif
4152char shl_load ();
4153int
4154main ()
4155{
4156return shl_load ();
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_link "$LINENO"; then :
4162  ac_cv_lib_dld_shl_load=yes
4163else
4164  ac_cv_lib_dld_shl_load=no
4165fi
4166rm -f core conftest.err conftest.$ac_objext \
4167    conftest$ac_exeext conftest.$ac_ext
4168LIBS=$ac_check_lib_save_LIBS
4169fi
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4171$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4172if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4173  tcl_ok=yes
4174else
4175  tcl_ok=no
4176fi
4177
4178            if test "$tcl_ok" = yes; then
4179                SHLIB_CFLAGS="+z"
4180                SHLIB_LD="ld -b"
4181                SHLIB_LD_LIBS='${LIBS}'
4182                DL_OBJS="tclLoadShl.o"
4183                DL_LIBS="-ldld"
4184                LDFLAGS="$LDFLAGS -Wl,-E"
4185                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4186                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4187                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4188            fi
4189            if test "$GCC" = "yes" ; then
4190                SHLIB_LD="gcc -shared"
4191                SHLIB_LD_LIBS='${LIBS}'
4192                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4193            fi
4194
4195            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4196            #CFLAGS="$CFLAGS +DAportable"
4197
4198            # Check to enable 64-bit flags for compiler/linker
4199            if test "$do64bit" = "yes" ; then
4200                if test "$GCC" = "yes" ; then
4201                    hpux_arch=`${CC} -dumpmachine`
4202                    case $hpux_arch in
4203                        hppa64*)
4204                            # 64-bit gcc in use.  Fix flags for GNU ld.
4205                            do64bit_ok=yes
4206                            SHLIB_LD="${CC} -shared"
4207                            SHLIB_LD_LIBS='${LIBS}'
4208                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4209                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4210                            ;;
4211                        *)
4212                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4213$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4214                            ;;
4215                    esac
4216                else
4217                    do64bit_ok=yes
4218                    CFLAGS="$CFLAGS +DD64"
4219                    LDFLAGS="$LDFLAGS +DD64"
4220                fi
4221            fi
4222            ;;
4223        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4224            SHLIB_SUFFIX=".sl"
4225            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4226$as_echo_n "checking for shl_load in -ldld... " >&6; }
4227if ${ac_cv_lib_dld_shl_load+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  ac_check_lib_save_LIBS=$LIBS
4231LIBS="-ldld  $LIBS"
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234
4235/* Override any GCC internal prototype to avoid an error.
4236   Use char because int might match the return type of a GCC
4237   builtin and then its argument prototype would still apply.  */
4238#ifdef __cplusplus
4239extern "C"
4240#endif
4241char shl_load ();
4242int
4243main ()
4244{
4245return shl_load ();
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_link "$LINENO"; then :
4251  ac_cv_lib_dld_shl_load=yes
4252else
4253  ac_cv_lib_dld_shl_load=no
4254fi
4255rm -f core conftest.err conftest.$ac_objext \
4256    conftest$ac_exeext conftest.$ac_ext
4257LIBS=$ac_check_lib_save_LIBS
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4260$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4261if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4262  tcl_ok=yes
4263else
4264  tcl_ok=no
4265fi
4266
4267            if test "$tcl_ok" = yes; then
4268                SHLIB_CFLAGS="+z"
4269                SHLIB_LD="ld -b"
4270                SHLIB_LD_LIBS=""
4271                DL_OBJS="tclLoadShl.o"
4272                DL_LIBS="-ldld"
4273                LDFLAGS="$LDFLAGS -Wl,-E"
4274                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4275                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4276                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4277            fi
4278            ;;
4279        IRIX-4.*)
4280            SHLIB_CFLAGS="-G 0"
4281            SHLIB_SUFFIX=".a"
4282            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4283            SHLIB_LD_LIBS='${LIBS}'
4284            DL_OBJS="tclLoadAout.o"
4285            DL_LIBS=""
4286            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4287            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4288            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4289            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
4290            ;;
4291        IRIX-5.*)
4292            SHLIB_CFLAGS=""
4293            SHLIB_LD="ld -shared -rdata_shared"
4294            SHLIB_LD_LIBS='${LIBS}'
4295            SHLIB_SUFFIX=".so"
4296            DL_OBJS="tclLoadDl.o"
4297            DL_LIBS=""
4298            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4299            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4300            ;;
4301        IRIX-6.*)
4302            SHLIB_CFLAGS=""
4303            SHLIB_LD="ld -n32 -shared -rdata_shared"
4304            SHLIB_LD_LIBS='${LIBS}'
4305            SHLIB_SUFFIX=".so"
4306            DL_OBJS="tclLoadDl.o"
4307            DL_LIBS=""
4308            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4309            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4310            if test "$GCC" = "yes" ; then
4311                CFLAGS="$CFLAGS -mabi=n32"
4312                LDFLAGS="$LDFLAGS -mabi=n32"
4313            else
4314                case $system in
4315                    IRIX-6.3)
4316                        # Use to build 6.2 compatible binaries on 6.3.
4317                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4318                        ;;
4319                    *)
4320                        CFLAGS="$CFLAGS -n32"
4321                        ;;
4322                esac
4323                LDFLAGS="$LDFLAGS -n32"
4324            fi
4325            ;;
4326        IRIX64-6.*)
4327            SHLIB_CFLAGS=""
4328            SHLIB_LD="ld -n32 -shared -rdata_shared"
4329            SHLIB_LD_LIBS='${LIBS}'
4330            SHLIB_SUFFIX=".so"
4331            DL_OBJS="tclLoadDl.o"
4332            DL_LIBS=""
4333            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4334            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4335
4336            # Check to enable 64-bit flags for compiler/linker
4337
4338            if test "$do64bit" = "yes" ; then
4339                if test "$GCC" = "yes" ; then
4340                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4341$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4342                else
4343                    do64bit_ok=yes
4344                    SHLIB_LD="ld -64 -shared -rdata_shared"
4345                    CFLAGS="$CFLAGS -64"
4346                    LDFLAGS="$LDFLAGS -64"
4347                fi
4348            fi
4349            ;;
4350        Linux*)
4351            SHLIB_CFLAGS="-fPIC"
4352            SHLIB_LD_LIBS='${LIBS}'
4353            SHLIB_SUFFIX=".so"
4354
4355            CFLAGS_OPTIMIZE=-O2
4356            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4357            # when you inline the string and math operations.  Turn this off to
4358            # get rid of the warnings.
4359            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4360
4361            if test "$have_dl" = yes; then
4362                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
4363                DL_OBJS="tclLoadDl.o"
4364                DL_LIBS="-ldl"
4365                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4366                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4367                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4368            else
4369                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4370if test "x$ac_cv_header_dld_h" = xyes; then :
4371
4372                    SHLIB_LD="ld -shared"
4373                    DL_OBJS="tclLoadDld.o"
4374                    DL_LIBS="-ldld"
4375                    CC_SEARCH_FLAGS=""
4376                    LD_SEARCH_FLAGS=""
4377fi
4378
4379
4380            fi
4381            if test "`uname -m`" = "alpha" ; then
4382                CFLAGS="$CFLAGS -mieee"
4383            fi
4384            if test $do64bit = yes; then
4385                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4386$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4387if ${tcl_cv_cc_m64+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390
4391                    hold_cflags=$CFLAGS
4392                    CFLAGS="$CFLAGS -m64"
4393                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395
4396int
4397main ()
4398{
4399
4400  ;
4401  return 0;
4402}
4403_ACEOF
4404if ac_fn_c_try_link "$LINENO"; then :
4405  tcl_cv_cc_m64=yes
4406else
4407  tcl_cv_cc_m64=no
4408fi
4409rm -f core conftest.err conftest.$ac_objext \
4410    conftest$ac_exeext conftest.$ac_ext
4411                    CFLAGS=$hold_cflags
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4414$as_echo "$tcl_cv_cc_m64" >&6; }
4415                if test $tcl_cv_cc_m64 = yes; then
4416                    CFLAGS="$CFLAGS -m64"
4417                    do64bit_ok=yes
4418                fi
4419            fi
4420
4421            # The combo of gcc + glibc has a bug related
4422            # to inlining of functions like strtod(). The
4423            # -fno-builtin flag should address this problem
4424            # but it does not work. The -fno-inline flag
4425            # is kind of overkill but it works.
4426            # Disable inlining only when one of the
4427            # files in compat/*.c is being linked in.
4428            if test x"${LIBOBJS}" != x ; then
4429                CFLAGS="$CFLAGS -fno-inline"
4430            fi
4431
4432            # XIM peeking works under XFree86.
4433            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
4434
4435
4436            ;;
4437        GNU*)
4438            SHLIB_CFLAGS="-fPIC"
4439            SHLIB_LD_LIBS='${LIBS}'
4440            SHLIB_SUFFIX=".so"
4441
4442            if test "$have_dl" = yes; then
4443                SHLIB_LD="${CC} -shared"
4444                DL_OBJS=""
4445                DL_LIBS="-ldl"
4446                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4447                CC_SEARCH_FLAGS=""
4448                LD_SEARCH_FLAGS=""
4449            else
4450                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4451if test "x$ac_cv_header_dld_h" = xyes; then :
4452
4453                    SHLIB_LD="ld -shared"
4454                    DL_OBJS=""
4455                    DL_LIBS="-ldld"
4456                    CC_SEARCH_FLAGS=""
4457                    LD_SEARCH_FLAGS=""
4458fi
4459
4460
4461            fi
4462            if test "`uname -m`" = "alpha" ; then
4463                CFLAGS="$CFLAGS -mieee"
4464            fi
4465            ;;
4466        Lynx*)
4467            SHLIB_CFLAGS="-fPIC"
4468            SHLIB_LD_LIBS='${LIBS}'
4469            SHLIB_SUFFIX=".so"
4470            CFLAGS_OPTIMIZE=-02
4471            SHLIB_LD="${CC} -shared "
4472            DL_OBJS="tclLoadDl.o"
4473            DL_LIBS="-mshared -ldl"
4474            LD_FLAGS="-Wl,--export-dynamic"
4475            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4476            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4477            ;;
4478        MP-RAS-02*)
4479            SHLIB_CFLAGS="-K PIC"
4480            SHLIB_LD="cc -G"
4481            SHLIB_LD_LIBS=""
4482            SHLIB_SUFFIX=".so"
4483            DL_OBJS="tclLoadDl.o"
4484            DL_LIBS="-ldl"
4485            CC_SEARCH_FLAGS=""
4486            LD_SEARCH_FLAGS=""
4487            ;;
4488        MP-RAS-*)
4489            SHLIB_CFLAGS="-K PIC"
4490            SHLIB_LD="cc -G"
4491            SHLIB_LD_LIBS=""
4492            SHLIB_SUFFIX=".so"
4493            DL_OBJS="tclLoadDl.o"
4494            DL_LIBS="-ldl"
4495            LDFLAGS="$LDFLAGS -Wl,-Bexport"
4496            CC_SEARCH_FLAGS=""
4497            LD_SEARCH_FLAGS=""
4498            ;;
4499        NetBSD-*|FreeBSD-[1-2].*)
4500            # Not available on all versions:  check for include file.
4501            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4502if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4503
4504                # NetBSD/SPARC needs -fPIC, -fpic will not do.
4505                SHLIB_CFLAGS="-fPIC"
4506                SHLIB_LD="ld -Bshareable -x"
4507                SHLIB_LD_LIBS='${LIBS}'
4508                SHLIB_SUFFIX=".so"
4509                DL_OBJS="tclLoadDl.o"
4510                DL_LIBS=""
4511                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4512                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4513                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4514$as_echo_n "checking for ELF... " >&6; }
4515if ${tcl_cv_ld_elf+:} false; then :
4516  $as_echo_n "(cached) " >&6
4517else
4518
4519                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h.  */
4521
4522#ifdef __ELF__
4523        yes
4524#endif
4525
4526_ACEOF
4527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528  $EGREP "yes" >/dev/null 2>&1; then :
4529  tcl_cv_ld_elf=yes
4530else
4531  tcl_cv_ld_elf=no
4532fi
4533rm -f conftest*
4534
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4537$as_echo "$tcl_cv_ld_elf" >&6; }
4538                if test $tcl_cv_ld_elf = yes; then
4539                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4540                else
4541                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4542                fi
4543
4544else
4545
4546                SHLIB_CFLAGS=""
4547                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4548                SHLIB_LD_LIBS='${LIBS}'
4549                SHLIB_SUFFIX=".a"
4550                DL_OBJS="tclLoadAout.o"
4551                DL_LIBS=""
4552                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4553                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4554                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4555
4556fi
4557
4558
4559
4560            # FreeBSD doesn't handle version numbers with dots.
4561
4562            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4563            TCL_LIB_VERSIONS_OK=nodots
4564            ;;
4565        OpenBSD-*)
4566            case `arch -s` in
4567            m88k|vax)
4568                SHLIB_CFLAGS=""
4569                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4570                SHLIB_LD_LIBS='${LIBS}'
4571                SHLIB_SUFFIX=".a"
4572                DL_OBJS="tclLoadAout.o"
4573                DL_LIBS=""
4574                LDFLAGS=""
4575                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4576                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4577                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4578                ;;
4579            *)
4580                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
4581                case `machine` in
4582                sparc|sparc64)
4583                    SHLIB_CFLAGS="-fPIC";;
4584                *)
4585                    SHLIB_CFLAGS="-fpic";;
4586                esac
4587                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
4588                SHLIB_LD_LIBS='${LIBS}'
4589                SHLIB_SUFFIX=".so"
4590                DL_OBJS="tclLoadDl.o"
4591                DL_LIBS=""
4592                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4593                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4594                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4595                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4596$as_echo_n "checking for ELF... " >&6; }
4597if ${tcl_cv_ld_elf+:} false; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600
4601                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604#ifdef __ELF__
4605        yes
4606#endif
4607
4608_ACEOF
4609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610  $EGREP "yes" >/dev/null 2>&1; then :
4611  tcl_cv_ld_elf=yes
4612else
4613  tcl_cv_ld_elf=no
4614fi
4615rm -f conftest*
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4619$as_echo "$tcl_cv_ld_elf" >&6; }
4620                if test $tcl_cv_ld_elf = yes; then
4621                    LDFLAGS=-Wl,-export-dynamic
4622                else
4623                    LDFLAGS=""
4624                fi
4625                ;;
4626            esac
4627
4628            # OpenBSD doesn't do version numbers with dots.
4629            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4630            TCL_LIB_VERSIONS_OK=nodots
4631            ;;
4632        FreeBSD-*)
4633            # FreeBSD 3.* and greater have ELF.
4634            SHLIB_CFLAGS="-fPIC"
4635            SHLIB_LD="ld -Bshareable -x"
4636            SHLIB_LD_LIBS='${LIBS}'
4637            SHLIB_SUFFIX=".so"
4638            DL_OBJS="tclLoadDl.o"
4639            DL_LIBS=""
4640            LDFLAGS="$LDFLAGS -export-dynamic"
4641            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4642            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4643            if test "${TCL_THREADS}" = "1" ; then
4644                # The -pthread needs to go in the CFLAGS, not LIBS
4645                LIBS=`echo $LIBS | sed s/-pthread//`
4646                CFLAGS="$CFLAGS -pthread"
4647                LDFLAGS="$LDFLAGS -pthread"
4648            fi
4649            case $system in
4650            FreeBSD-3.*)
4651                # FreeBSD-3 doesn't handle version numbers with dots.
4652                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4653                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4654                TCL_LIB_VERSIONS_OK=nodots
4655                ;;
4656            esac
4657            ;;
4658        Darwin-*)
4659            CFLAGS_OPTIMIZE="-Os"
4660            SHLIB_CFLAGS="-fno-common"
4661            # To avoid discrepancies between what headers configure sees during
4662            # preprocessing tests and compiling tests, move any -isysroot and
4663            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
4664            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
4665                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4666                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
4667            CFLAGS="`echo " ${CFLAGS}" | \
4668                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4669                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
4670            if test $do64bit = yes; then
4671                case `arch` in
4672                    ppc)
4673                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
4674$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
4675if ${tcl_cv_cc_arch_ppc64+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678
4679                            hold_cflags=$CFLAGS
4680                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4681                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_link "$LINENO"; then :
4693  tcl_cv_cc_arch_ppc64=yes
4694else
4695  tcl_cv_cc_arch_ppc64=no
4696fi
4697rm -f core conftest.err conftest.$ac_objext \
4698    conftest$ac_exeext conftest.$ac_ext
4699                            CFLAGS=$hold_cflags
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
4702$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
4703                        if test $tcl_cv_cc_arch_ppc64 = yes; then
4704                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4705                            do64bit_ok=yes
4706                        fi;;
4707                    i386)
4708                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
4709$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
4710if ${tcl_cv_cc_arch_x86_64+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713
4714                            hold_cflags=$CFLAGS
4715                            CFLAGS="$CFLAGS -arch x86_64"
4716                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h.  */
4718
4719int
4720main ()
4721{
4722
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_link "$LINENO"; then :
4728  tcl_cv_cc_arch_x86_64=yes
4729else
4730  tcl_cv_cc_arch_x86_64=no
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734                            CFLAGS=$hold_cflags
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
4737$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
4738                        if test $tcl_cv_cc_arch_x86_64 = yes; then
4739                            CFLAGS="$CFLAGS -arch x86_64"
4740                            do64bit_ok=yes
4741                        fi;;
4742                    *)
4743                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
4744$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
4745                esac
4746            else
4747                # Check for combined 32-bit and 64-bit fat build
4748                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
4749                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
4750                    fat_32_64=yes
4751            fi
4752            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
4753            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
4754$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
4755if ${tcl_cv_ld_single_module+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758
4759                hold_ldflags=$LDFLAGS
4760                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
4761                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763
4764int
4765main ()
4766{
4767int i;
4768  ;
4769  return 0;
4770}
4771_ACEOF
4772if ac_fn_c_try_link "$LINENO"; then :
4773  tcl_cv_ld_single_module=yes
4774else
4775  tcl_cv_ld_single_module=no
4776fi
4777rm -f core conftest.err conftest.$ac_objext \
4778    conftest$ac_exeext conftest.$ac_ext
4779                LDFLAGS=$hold_ldflags
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
4782$as_echo "$tcl_cv_ld_single_module" >&6; }
4783            if test $tcl_cv_ld_single_module = yes; then
4784                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
4785            fi
4786            SHLIB_LD_LIBS='${LIBS}'
4787            SHLIB_SUFFIX=".dylib"
4788            DL_OBJS="tclLoadDyld.o"
4789            DL_LIBS=""
4790            # Don't use -prebind when building for Mac OS X 10.4 or later only:
4791            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
4792                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
4793                LDFLAGS="$LDFLAGS -prebind"
4794            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
4795            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
4796$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
4797if ${tcl_cv_ld_search_paths_first+:} false; then :
4798  $as_echo_n "(cached) " >&6
4799else
4800
4801                hold_ldflags=$LDFLAGS
4802                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4803                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804/* end confdefs.h.  */
4805
4806int
4807main ()
4808{
4809int i;
4810  ;
4811  return 0;
4812}
4813_ACEOF
4814if ac_fn_c_try_link "$LINENO"; then :
4815  tcl_cv_ld_search_paths_first=yes
4816else
4817  tcl_cv_ld_search_paths_first=no
4818fi
4819rm -f core conftest.err conftest.$ac_objext \
4820    conftest$ac_exeext conftest.$ac_ext
4821                LDFLAGS=$hold_ldflags
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
4824$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
4825            if test $tcl_cv_ld_search_paths_first = yes; then
4826                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4827            fi
4828            CC_SEARCH_FLAGS=""
4829            LD_SEARCH_FLAGS=""
4830            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
4831            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
4832            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
4833            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
4834$as_echo_n "checking whether to use CoreFoundation... " >&6; }
4835            # Check whether --enable-corefoundation was given.
4836if test "${enable_corefoundation+set}" = set; then :
4837  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
4838else
4839  tcl_corefoundation=yes
4840fi
4841
4842            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
4843$as_echo "$tcl_corefoundation" >&6; }
4844            if test $tcl_corefoundation = yes; then
4845                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
4846$as_echo_n "checking for CoreFoundation.framework... " >&6; }
4847if ${tcl_cv_lib_corefoundation+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850
4851                    hold_libs=$LIBS
4852                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4853                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
4854                        # from CFLAGS et al. while testing for presence of CF.
4855                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
4856                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
4857                    done; fi
4858                    LIBS="$LIBS -framework CoreFoundation"
4859                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861#include <CoreFoundation/CoreFoundation.h>
4862int
4863main ()
4864{
4865CFBundleRef b = CFBundleGetMainBundle();
4866  ;
4867  return 0;
4868}
4869_ACEOF
4870if ac_fn_c_try_link "$LINENO"; then :
4871  tcl_cv_lib_corefoundation=yes
4872else
4873  tcl_cv_lib_corefoundation=no
4874fi
4875rm -f core conftest.err conftest.$ac_objext \
4876    conftest$ac_exeext conftest.$ac_ext
4877                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4878                        eval $v'="$hold_'$v'"'
4879                    done; fi; LIBS=$hold_libs
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
4882$as_echo "$tcl_cv_lib_corefoundation" >&6; }
4883                if test $tcl_cv_lib_corefoundation = yes; then
4884                    LIBS="$LIBS -framework CoreFoundation"
4885                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
4886
4887                else
4888                    tcl_corefoundation=no
4889                fi
4890                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
4891                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
4892$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
4893if ${tcl_cv_lib_corefoundation_64+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896
4897                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4898                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
4899                        done
4900                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902#include <CoreFoundation/CoreFoundation.h>
4903int
4904main ()
4905{
4906CFBundleRef b = CFBundleGetMainBundle();
4907  ;
4908  return 0;
4909}
4910_ACEOF
4911if ac_fn_c_try_link "$LINENO"; then :
4912  tcl_cv_lib_corefoundation_64=yes
4913else
4914  tcl_cv_lib_corefoundation_64=no
4915fi
4916rm -f core conftest.err conftest.$ac_objext \
4917    conftest$ac_exeext conftest.$ac_ext
4918                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4919                            eval $v'="$hold_'$v'"'
4920                        done
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
4923$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
4924                    if test $tcl_cv_lib_corefoundation_64 = no; then
4925                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
4926
4927                    fi
4928                fi
4929            fi
4930            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
4931
4932            ;;
4933        NEXTSTEP-*)
4934            SHLIB_CFLAGS=""
4935            SHLIB_LD="cc -nostdlib -r"
4936            SHLIB_LD_LIBS=""
4937            SHLIB_SUFFIX=".so"
4938            DL_OBJS="tclLoadNext.o"
4939            DL_LIBS=""
4940            CC_SEARCH_FLAGS=""
4941            LD_SEARCH_FLAGS=""
4942            ;;
4943        OS/390-*)
4944            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
4945            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
4946        # needed in sys/socket.h
4947            ;;
4948        OSF1-1.0|OSF1-1.1|OSF1-1.2)
4949            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
4950            SHLIB_CFLAGS=""
4951            # Hack: make package name same as library name
4952            SHLIB_LD='ld -R -export :'
4953            SHLIB_LD_LIBS=""
4954            SHLIB_SUFFIX=".so"
4955            DL_OBJS="tclLoadOSF.o"
4956            DL_LIBS=""
4957            CC_SEARCH_FLAGS=""
4958            LD_SEARCH_FLAGS=""
4959            ;;
4960        OSF1-1.*)
4961            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
4962            SHLIB_CFLAGS="-fPIC"
4963            if test "$SHARED_BUILD" = "1" ; then
4964                SHLIB_LD="ld -shared"
4965            else
4966                SHLIB_LD="ld -non_shared"
4967            fi
4968            SHLIB_LD_LIBS=""
4969            SHLIB_SUFFIX=".so"
4970            DL_OBJS="tclLoadDl.o"
4971            DL_LIBS=""
4972            CC_SEARCH_FLAGS=""
4973            LD_SEARCH_FLAGS=""
4974            ;;
4975        OSF1-V*)
4976            # Digital OSF/1
4977            SHLIB_CFLAGS=""
4978            if test "$SHARED_BUILD" = "1" ; then
4979                SHLIB_LD='ld -shared -expect_unresolved "*"'
4980            else
4981                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
4982            fi
4983            SHLIB_LD_LIBS=""
4984            SHLIB_SUFFIX=".so"
4985            DL_OBJS="tclLoadDl.o"
4986            DL_LIBS=""
4987            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4988            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4989            if test "$GCC" = "yes" ; then
4990                CFLAGS="$CFLAGS -mieee"
4991            else
4992                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
4993            fi
4994            # see pthread_intro(3) for pthread support on osf1, k.furukawa
4995            if test "${TCL_THREADS}" = "1" ; then
4996                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
4997                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
4998                LIBS=`echo $LIBS | sed s/-lpthreads//`
4999                if test "$GCC" = "yes" ; then
5000                    LIBS="$LIBS -lpthread -lmach -lexc"
5001                else
5002                    CFLAGS="$CFLAGS -pthread"
5003                    LDFLAGS="$LDFLAGS -pthread"
5004                fi
5005            fi
5006
5007            ;;
5008        QNX-6*)
5009            # QNX RTP
5010            # This may work for all QNX, but it was only reported for v6.
5011            SHLIB_CFLAGS="-fPIC"
5012            SHLIB_LD="ld -Bshareable -x"
5013            SHLIB_LD_LIBS=""
5014            SHLIB_SUFFIX=".so"
5015            DL_OBJS="tclLoadDl.o"
5016            # dlopen is in -lc on QNX
5017            DL_LIBS=""
5018            CC_SEARCH_FLAGS=""
5019            LD_SEARCH_FLAGS=""
5020            ;;
5021        RISCos-*)
5022            SHLIB_CFLAGS="-G 0"
5023            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5024            SHLIB_LD_LIBS='${LIBS}'
5025            SHLIB_SUFFIX=".a"
5026            DL_OBJS="tclLoadAout.o"
5027            DL_LIBS=""
5028            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5029            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5030            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5031            ;;
5032        SCO_SV-3.2*)
5033            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5034            # this test works, since "uname -s" was non-standard in 3.2.4 and
5035            # below.
5036            if test "$GCC" = "yes" ; then
5037                SHLIB_CFLAGS="-fPIC -melf"
5038                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
5039            else
5040                SHLIB_CFLAGS="-Kpic -belf"
5041                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
5042            fi
5043            SHLIB_LD="ld -G"
5044            SHLIB_LD_LIBS=""
5045            SHLIB_SUFFIX=".so"
5046            DL_OBJS="tclLoadDl.o"
5047            DL_LIBS=""
5048            CC_SEARCH_FLAGS=""
5049            LD_SEARCH_FLAGS=""
5050            ;;
5051        SINIX*5.4*)
5052            SHLIB_CFLAGS="-K PIC"
5053            SHLIB_LD="cc -G"
5054            SHLIB_LD_LIBS=""
5055            SHLIB_SUFFIX=".so"
5056            DL_OBJS="tclLoadDl.o"
5057            DL_LIBS="-ldl"
5058            CC_SEARCH_FLAGS=""
5059            LD_SEARCH_FLAGS=""
5060            ;;
5061        SunOS-4*)
5062            SHLIB_CFLAGS="-PIC"
5063            SHLIB_LD="ld"
5064            SHLIB_LD_LIBS=""
5065            SHLIB_SUFFIX=".so"
5066            DL_OBJS="tclLoadDl.o"
5067            DL_LIBS="-ldl"
5068            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5069            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5070
5071            # SunOS can't handle version numbers with dots in them in library
5072            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
5073            # requires an extra version number at the end of .so file names.
5074            # So, the library has to have a name like libtcl75.so.1.0
5075
5076            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
5077            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
5078            TCL_LIB_VERSIONS_OK=nodots
5079            ;;
5080        SunOS-5.[0-6])
5081            # Careful to not let 5.10+ fall into this case
5082
5083            # Note: If _REENTRANT isn't defined, then Solaris
5084            # won't define thread-safe library routines.
5085
5086            $as_echo "#define _REENTRANT 1" >>confdefs.h
5087
5088            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5089
5090
5091            SHLIB_CFLAGS="-KPIC"
5092
5093            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5094            # symbols when dynamically loaded into tclsh.
5095
5096            SHLIB_LD_LIBS='${LIBS}'
5097            SHLIB_SUFFIX=".so"
5098            DL_OBJS="tclLoadDl.o"
5099            DL_LIBS="-ldl"
5100            if test "$GCC" = "yes" ; then
5101                SHLIB_LD="$CC -shared"
5102                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5103                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5104            else
5105                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5106                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5107                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5108            fi
5109            ;;
5110        SunOS-5*)
5111            # Note: If _REENTRANT isn't defined, then Solaris
5112            # won't define thread-safe library routines.
5113
5114            $as_echo "#define _REENTRANT 1" >>confdefs.h
5115
5116            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5117
5118
5119            SHLIB_CFLAGS="-KPIC"
5120
5121            # Check to enable 64-bit flags for compiler/linker
5122            if test "$do64bit" = "yes" ; then
5123                arch=`isainfo`
5124                if test "$arch" = "sparcv9 sparc" ; then
5125                        if test "$GCC" = "yes" ; then
5126                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
5127                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5128$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5129                            else
5130                                do64bit_ok=yes
5131                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
5132                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5133                                SHLIB_CFLAGS="-fPIC"
5134                            fi
5135                        else
5136                            do64bit_ok=yes
5137                            if test "$do64bitVIS" = "yes" ; then
5138                                CFLAGS="$CFLAGS -xarch=v9a"
5139                                LDFLAGS="$LDFLAGS -xarch=v9a"
5140                            else
5141                                CFLAGS="$CFLAGS -xarch=v9"
5142                                LDFLAGS="$LDFLAGS -xarch=v9"
5143                            fi
5144                            # Solaris 64 uses this as well
5145                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5146                        fi
5147                elif test "$arch" = "amd64 i386" ; then
5148                    if test "$GCC" = "yes" ; then
5149                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5150$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5151                    else
5152                        do64bit_ok=yes
5153                        CFLAGS="$CFLAGS -xarch=amd64"
5154                        LDFLAGS="$LDFLAGS -xarch=amd64"
5155                    fi
5156                else
5157                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5158$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5159                fi
5160            fi
5161
5162            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5163            # symbols when dynamically loaded into tclsh.
5164
5165            SHLIB_LD_LIBS='${LIBS}'
5166            SHLIB_SUFFIX=".so"
5167            DL_OBJS="tclLoadDl.o"
5168            DL_LIBS="-ldl"
5169            if test "$GCC" = "yes" ; then
5170                SHLIB_LD="$CC -shared"
5171                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5172                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5173                if test "$do64bit_ok" = "yes" ; then
5174                    # We need to specify -static-libgcc or we need to
5175                    # add the path to the sparv9 libgcc.
5176                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5177                    # for finding sparcv9 libgcc, get the regular libgcc
5178                    # path, remove so name and append 'sparcv9'
5179                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5180                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5181                fi
5182            else
5183                case $system in
5184                    SunOS-5.[1-9][0-9]*)
5185                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
5186                    *)
5187                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
5188                esac
5189                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5190                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5191            fi
5192            ;;
5193        ULTRIX-4.*)
5194            SHLIB_CFLAGS="-G 0"
5195            SHLIB_SUFFIX=".a"
5196            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5197            SHLIB_LD_LIBS='${LIBS}'
5198            DL_OBJS="tclLoadAout.o"
5199            DL_LIBS=""
5200            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5201            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5202            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5203            if test "$GCC" != "yes" ; then
5204                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
5205            fi
5206            ;;
5207        UNIX_SV* | UnixWare-5*)
5208            SHLIB_CFLAGS="-KPIC"
5209            SHLIB_LD="cc -G"
5210            SHLIB_LD_LIBS=""
5211            SHLIB_SUFFIX=".so"
5212            DL_OBJS="tclLoadDl.o"
5213            DL_LIBS="-ldl"
5214            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5215            # that don't grok the -Bexport option.  Test that it does.
5216            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5217$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5218if ${tcl_cv_ld_Bexport+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221
5222                hold_ldflags=$LDFLAGS
5223                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5224                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226
5227int
5228main ()
5229{
5230int i;
5231  ;
5232  return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_link "$LINENO"; then :
5236  tcl_cv_ld_Bexport=yes
5237else
5238  tcl_cv_ld_Bexport=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext \
5241    conftest$ac_exeext conftest.$ac_ext
5242                LDFLAGS=$hold_ldflags
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5245$as_echo "$tcl_cv_ld_Bexport" >&6; }
5246            if test $tcl_cv_ld_Bexport = yes; then
5247                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5248            fi
5249            CC_SEARCH_FLAGS=""
5250            LD_SEARCH_FLAGS=""
5251            ;;
5252    esac
5253
5254    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
5255        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5256$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5257    fi
5258
5259
5260
5261
5262    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
5263    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
5264    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
5265    # to determine which of several header files defines the a.out file
5266    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
5267    # support only a file format that is more or less version-7-compatible.
5268    # In particular,
5269    #   - a.out files must begin with `struct exec'.
5270    #   - the N_TXTOFF on the `struct exec' must compute the seek address
5271    #     of the text segment
5272    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
5273    #     and a_entry fields.
5274    # The following compilation should succeed if and only if either sys/exec.h
5275    # or a.out.h is usable for the purpose.
5276    #
5277    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
5278    # `struct exec' includes a second header that contains information that
5279    # duplicates the v7 fields that are needed.
5280
5281    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
5282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
5283$as_echo_n "checking sys/exec.h... " >&6; }
5284if ${tcl_cv_sysexec_h+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287
5288        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290#include <sys/exec.h>
5291int
5292main ()
5293{
5294
5295            struct exec foo;
5296            unsigned long seek;
5297            int flag;
5298#if defined(__mips) || defined(mips)
5299            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5300#else
5301            seek = N_TXTOFF (foo);
5302#endif
5303            flag = (foo.a_magic == OMAGIC);
5304            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311  tcl_cv_sysexec_h=usable
5312else
5313  tcl_cv_sysexec_h=unusable
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
5318$as_echo "$tcl_cv_sysexec_h" >&6; }
5319        if test $tcl_cv_sysexec_h = usable; then
5320            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
5321
5322        else
5323            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
5324$as_echo_n "checking a.out.h... " >&6; }
5325if ${tcl_cv_aout_h+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328
5329            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331#include <a.out.h>
5332int
5333main ()
5334{
5335
5336                struct exec foo;
5337                unsigned long seek;
5338                int flag;
5339#if defined(__mips) || defined(mips)
5340                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5341#else
5342                seek = N_TXTOFF (foo);
5343#endif
5344                flag = (foo.a_magic == OMAGIC);
5345                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5346
5347  ;
5348  return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_compile "$LINENO"; then :
5352  tcl_cv_aout_h=usable
5353else
5354  tcl_cv_aout_h=unusable
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
5359$as_echo "$tcl_cv_aout_h" >&6; }
5360            if test $tcl_cv_aout_h = usable; then
5361                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
5362
5363            else
5364                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
5365$as_echo_n "checking sys/exec_aout.h... " >&6; }
5366if ${tcl_cv_sysexecaout_h+:} false; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369
5370                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372#include <sys/exec_aout.h>
5373int
5374main ()
5375{
5376
5377                    struct exec foo;
5378                    unsigned long seek;
5379                    int flag;
5380#if defined(__mips) || defined(mips)
5381                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5382#else
5383                    seek = N_TXTOFF (foo);
5384#endif
5385                    flag = (foo.a_midmag == OMAGIC);
5386                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393  tcl_cv_sysexecaout_h=usable
5394else
5395  tcl_cv_sysexecaout_h=unusable
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
5400$as_echo "$tcl_cv_sysexecaout_h" >&6; }
5401                if test $tcl_cv_sysexecaout_h = usable; then
5402                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
5403
5404                else
5405                    DL_OBJS=""
5406                fi
5407            fi
5408        fi
5409    fi
5410
5411    # Step 5: disable dynamic loading if requested via a command-line switch.
5412
5413    # Check whether --enable-load was given.
5414if test "${enable_load+set}" = set; then :
5415  enableval=$enable_load; tcl_ok=$enableval
5416else
5417  tcl_ok=yes
5418fi
5419
5420    if test "$tcl_ok" = "no"; then
5421        DL_OBJS=""
5422    fi
5423
5424    if test "x$DL_OBJS" != "x" ; then
5425        BUILD_DLTEST="\$(DLTEST_TARGETS)"
5426    else
5427        echo "Can't figure out how to do dynamic loading or shared libraries"
5428        echo "on this system."
5429        SHLIB_CFLAGS=""
5430        SHLIB_LD=""
5431        SHLIB_SUFFIX=""
5432        DL_OBJS="tclLoadNone.o"
5433        DL_LIBS=""
5434        LDFLAGS="$LDFLAGS_ORIG"
5435        CC_SEARCH_FLAGS=""
5436        LD_SEARCH_FLAGS=""
5437        BUILD_DLTEST=""
5438    fi
5439
5440    # If we're running gcc, then change the C flags for compiling shared
5441    # libraries to the right flags for gcc, instead of those for the
5442    # standard manufacturer compiler.
5443
5444    if test "$DL_OBJS" != "tclLoadNone.o" ; then
5445        if test "$GCC" = "yes" ; then
5446            case $system in
5447                AIX-*)
5448                    ;;
5449                BSD/OS*)
5450                    ;;
5451                IRIX*)
5452                    ;;
5453                NetBSD-*|FreeBSD-*|OpenBSD-*)
5454                    ;;
5455                Darwin-*)
5456                    ;;
5457                RISCos-*)
5458                    ;;
5459                SCO_SV-3.2*)
5460                    ;;
5461                ULTRIX-4.*)
5462                    ;;
5463                *)
5464                    SHLIB_CFLAGS="-fPIC"
5465                    ;;
5466            esac
5467        fi
5468    fi
5469
5470    if test "$SHARED_LIB_SUFFIX" = "" ; then
5471        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
5472    fi
5473    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
5474        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
5475    fi
5476
5477    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
5478        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5479        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5480        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5481    else
5482        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5483
5484        if test "$RANLIB" = "" ; then
5485            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5486            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5487        else
5488            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5489            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
5490        fi
5491
5492    fi
5493
5494
5495    # Stub lib does not depend on shared/static configuration
5496    if test "$RANLIB" = "" ; then
5497        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5498        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
5499    else
5500        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5501        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
5502    fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
5537$as_echo_n "checking how to build libraries... " >&6; }
5538    # Check whether --enable-shared was given.
5539if test "${enable_shared+set}" = set; then :
5540  enableval=$enable_shared; tcl_ok=$enableval
5541else
5542  tcl_ok=yes
5543fi
5544
5545
5546    if test "${enable_shared+set}" = set; then
5547        enableval="$enable_shared"
5548        tcl_ok=$enableval
5549    else
5550        tcl_ok=yes
5551    fi
5552
5553    if test "$tcl_ok" = "yes" ; then
5554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
5555$as_echo "shared" >&6; }
5556        SHARED_BUILD=1
5557    else
5558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5559$as_echo "static" >&6; }
5560        SHARED_BUILD=0
5561        $as_echo "#define STATIC_BUILD 1" >>confdefs.h
5562
5563    fi
5564
5565
5566gui_with_tcl=""
5567
5568make_command=""
5569for m in "$MAKE" make gmake gnumake ; do
5570  if test "x${m}" != "x" ; then
5571    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
5572      make_command=$m; break;
5573    fi
5574  fi
5575done
5576if test "x${make_command}" = "x" ; then
5577  as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
5578fi
5579MAKE=${make_command}
5580
5581
5582# Check whether --enable-gui was given.
5583if test "${enable_gui+set}" = set; then :
5584  enableval=$enable_gui;
5585else
5586  enable_gui=yes
5587fi
5588
5589
5590ENABLE_GUI=
5591if test "$enable_gui" != "no" ; then
5592    ENABLE_GUI="yes"
5593fi
5594
5595
5596with_tclsh="yes"
5597
5598# Check whether --with-tclsh was given.
5599if test "${with_tclsh+set}" = set; then :
5600  withval=$with_tclsh;
5601else
5602  with_tclsh=yes
5603fi
5604
5605
5606TCLSH=
5607# -----------------------------------------------------------------------
5608#
5609#       Find the Tcl build configuration file "tclConfig.sh"
5610#
5611# -----------------------------------------------------------------------
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
5614$as_echo_n "checking for tclConfig.sh... " >&6; }
5615tcl_config_sh=""
5616if test "x$gui_with_tcl" != "x" ; then
5617
5618  # Verify that a tclConfig.sh file exists in the directory specified
5619  # by --with-tcl.
5620
5621  for dir in \
5622   $gui_with_tcl
5623  do
5624    if test -r "$dir/tclConfig.sh" ; then
5625      tcl_config_sh="$dir/tclConfig.sh"
5626      break
5627    elif test -r "$dir/lib/tclConfig.sh" ; then
5628      tcl_config_sh="$dir/lib/tclConfig.sh"
5629      break
5630    fi
5631  done
5632else
5633
5634  # Otherwise, search for Tcl configuration file.
5635
5636  #  1. Search previously named locations.
5637
5638  for dir in \
5639   $prefix \
5640   $exec_prefix \
5641   $gui_cv_tcl_lib
5642  do
5643    if test -r "$dir/tclConfig.sh" ; then
5644      tcl_config_sh="$dir/tclConfig.sh"
5645      break
5646    elif test -r "$dir/lib/tclConfig.sh" ; then
5647      tcl_config_sh="$dir/lib/tclConfig.sh"
5648      break
5649    fi
5650  done
5651fi
5652
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
5654$as_echo "${tcl_config_sh}" >&6; }
5655
5656if test "x$tcl_config_sh" = "x" ; then
5657  echo "can't find Tcl configuration script \"tclConfig.sh\""
5658  exit 1
5659fi
5660. ${tcl_config_sh}
5661TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
5662
5663case $target in
5664  *-*-cygwin*|*-*-mingw*)
5665    gui_platform="win"
5666    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}
5667    ;;
5668  *-*-darwin*)
5669    gui_platform="macosx"
5670    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
5671    ;;
5672  *)
5673    blt_platform="unix"
5674    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
5675    ;;
5676esac
5677
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5
5679$as_echo "${TCLSH}" >&6; }
5680
5681
5682if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
5683  . ${exec_prefix}/lib/tclConfig.sh
5684fi
5685if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
5686  . ${exec_prefix}/lib/tkConfig.sh
5687fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile"
5705
5706cat >confcache <<\_ACEOF
5707# This file is a shell script that caches the results of configure
5708# tests run on this system so they can be shared between configure
5709# scripts and configure runs, see configure's option --config-cache.
5710# It is not useful on other systems.  If it contains results you don't
5711# want to keep, you may remove or edit it.
5712#
5713# config.status only pays attention to the cache file if you give it
5714# the --recheck option to rerun configure.
5715#
5716# `ac_cv_env_foo' variables (set or unset) will be overridden when
5717# loading this file, other *unset* `ac_cv_foo' will be assigned the
5718# following values.
5719
5720_ACEOF
5721
5722# The following way of writing the cache mishandles newlines in values,
5723# but we know of no workaround that is simple, portable, and efficient.
5724# So, we kill variables containing newlines.
5725# Ultrix sh set writes to stderr and can't be redirected directly,
5726# and sets the high bit in the cache file unless we assign to the vars.
5727(
5728  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5729    eval ac_val=\$$ac_var
5730    case $ac_val in #(
5731    *${as_nl}*)
5732      case $ac_var in #(
5733      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5734$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5735      esac
5736      case $ac_var in #(
5737      _ | IFS | as_nl) ;; #(
5738      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5739      *) { eval $ac_var=; unset $ac_var;} ;;
5740      esac ;;
5741    esac
5742  done
5743
5744  (set) 2>&1 |
5745    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5746    *${as_nl}ac_space=\ *)
5747      # `set' does not quote correctly, so add quotes: double-quote
5748      # substitution turns \\\\ into \\, and sed turns \\ into \.
5749      sed -n \
5750        "s/'/'\\\\''/g;
5751          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5752      ;; #(
5753    *)
5754      # `set' quotes correctly as required by POSIX, so do not add quotes.
5755      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5756      ;;
5757    esac |
5758    sort
5759) |
5760  sed '
5761     /^ac_cv_env_/b end
5762     t clear
5763     :clear
5764     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5765     t end
5766     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5767     :end' >>confcache
5768if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5769  if test -w "$cache_file"; then
5770    if test "x$cache_file" != "x/dev/null"; then
5771      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5772$as_echo "$as_me: updating cache $cache_file" >&6;}
5773      if test ! -f "$cache_file" || test -h "$cache_file"; then
5774        cat confcache >"$cache_file"
5775      else
5776        case $cache_file in #(
5777        */* | ?:*)
5778          mv -f confcache "$cache_file"$$ &&
5779          mv -f "$cache_file"$$ "$cache_file" ;; #(
5780        *)
5781          mv -f confcache "$cache_file" ;;
5782        esac
5783      fi
5784    fi
5785  else
5786    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5787$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5788  fi
5789fi
5790rm -f confcache
5791
5792test "x$prefix" = xNONE && prefix=$ac_default_prefix
5793# Let make expand exec_prefix.
5794test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5795
5796# Transform confdefs.h into DEFS.
5797# Protect against shell expansion while executing Makefile rules.
5798# Protect against Makefile macro expansion.
5799#
5800# If the first sed substitution is executed (which looks for macros that
5801# take arguments), then branch to the quote section.  Otherwise,
5802# look for a macro that doesn't take arguments.
5803ac_script='
5804:mline
5805/\\$/{
5806 N
5807 s,\\\n,,
5808 b mline
5809}
5810t clear
5811:clear
5812s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5813t quote
5814s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5815t quote
5816b any
5817:quote
5818s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5819s/\[/\\&/g
5820s/\]/\\&/g
5821s/\$/$$/g
5822H
5823:any
5824${
5825        g
5826        s/^\n//
5827        s/\n/ /g
5828        p
5829}
5830'
5831DEFS=`sed -n "$ac_script" confdefs.h`
5832
5833
5834ac_libobjs=
5835ac_ltlibobjs=
5836U=
5837for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5838  # 1. Remove the extension, and $U if already installed.
5839  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5840  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5841  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5842  #    will be set to the directory where LIBOBJS objects are built.
5843  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5844  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5845done
5846LIBOBJS=$ac_libobjs
5847
5848LTLIBOBJS=$ac_ltlibobjs
5849
5850
5851
5852: "${CONFIG_STATUS=./config.status}"
5853ac_write_fail=0
5854ac_clean_files_save=$ac_clean_files
5855ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5857$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5858as_write_fail=0
5859cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5860#! $SHELL
5861# Generated by $as_me.
5862# Run this file to recreate the current configuration.
5863# Compiler output produced by configure, useful for debugging
5864# configure, is in config.log if it exists.
5865
5866debug=false
5867ac_cs_recheck=false
5868ac_cs_silent=false
5869
5870SHELL=\${CONFIG_SHELL-$SHELL}
5871export SHELL
5872_ASEOF
5873cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5874## -------------------- ##
5875## M4sh Initialization. ##
5876## -------------------- ##
5877
5878# Be more Bourne compatible
5879DUALCASE=1; export DUALCASE # for MKS sh
5880if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5881  emulate sh
5882  NULLCMD=:
5883  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5884  # is contrary to our usage.  Disable this feature.
5885  alias -g '${1+"$@"}'='"$@"'
5886  setopt NO_GLOB_SUBST
5887else
5888  case `(set -o) 2>/dev/null` in #(
5889  *posix*) :
5890    set -o posix ;; #(
5891  *) :
5892     ;;
5893esac
5894fi
5895
5896
5897as_nl='
5898'
5899export as_nl
5900# Printing a long string crashes Solaris 7 /usr/bin/printf.
5901as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5903as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5904# Prefer a ksh shell builtin over an external printf program on Solaris,
5905# but without wasting forks for bash or zsh.
5906if test -z "$BASH_VERSION$ZSH_VERSION" \
5907    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5908  as_echo='print -r --'
5909  as_echo_n='print -rn --'
5910elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5911  as_echo='printf %s\n'
5912  as_echo_n='printf %s'
5913else
5914  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5915    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5916    as_echo_n='/usr/ucb/echo -n'
5917  else
5918    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5919    as_echo_n_body='eval
5920      arg=$1;
5921      case $arg in #(
5922      *"$as_nl"*)
5923        expr "X$arg" : "X\\(.*\\)$as_nl";
5924        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5925      esac;
5926      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5927    '
5928    export as_echo_n_body
5929    as_echo_n='sh -c $as_echo_n_body as_echo'
5930  fi
5931  export as_echo_body
5932  as_echo='sh -c $as_echo_body as_echo'
5933fi
5934
5935# The user is always right.
5936if test "${PATH_SEPARATOR+set}" != set; then
5937  PATH_SEPARATOR=:
5938  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5939    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5940      PATH_SEPARATOR=';'
5941  }
5942fi
5943
5944
5945# IFS
5946# We need space, tab and new line, in precisely that order.  Quoting is
5947# there to prevent editors from complaining about space-tab.
5948# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5949# splitting by setting IFS to empty value.)
5950IFS=" ""        $as_nl"
5951
5952# Find who we are.  Look in the path if we contain no directory separator.
5953as_myself=
5954case $0 in #((
5955  *[\\/]* ) as_myself=$0 ;;
5956  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5962  done
5963IFS=$as_save_IFS
5964
5965     ;;
5966esac
5967# We did not find ourselves, most probably we were run as `sh COMMAND'
5968# in which case we are not to be found in the path.
5969if test "x$as_myself" = x; then
5970  as_myself=$0
5971fi
5972if test ! -f "$as_myself"; then
5973  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5974  exit 1
5975fi
5976
5977# Unset variables that we do not need and which cause bugs (e.g. in
5978# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5979# suppresses any "Segmentation fault" message there.  '((' could
5980# trigger a bug in pdksh 5.2.14.
5981for as_var in BASH_ENV ENV MAIL MAILPATH
5982do eval test x\${$as_var+set} = xset \
5983  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5984done
5985PS1='$ '
5986PS2='> '
5987PS4='+ '
5988
5989# NLS nuisances.
5990LC_ALL=C
5991export LC_ALL
5992LANGUAGE=C
5993export LANGUAGE
5994
5995# CDPATH.
5996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5997
5998
5999# as_fn_error STATUS ERROR [LINENO LOG_FD]
6000# ----------------------------------------
6001# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6002# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6003# script with STATUS, using 1 if that was 0.
6004as_fn_error ()
6005{
6006  as_status=$1; test $as_status -eq 0 && as_status=1
6007  if test "$4"; then
6008    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6009    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6010  fi
6011  $as_echo "$as_me: error: $2" >&2
6012  as_fn_exit $as_status
6013} # as_fn_error
6014
6015
6016# as_fn_set_status STATUS
6017# -----------------------
6018# Set $? to STATUS, without forking.
6019as_fn_set_status ()
6020{
6021  return $1
6022} # as_fn_set_status
6023
6024# as_fn_exit STATUS
6025# -----------------
6026# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6027as_fn_exit ()
6028{
6029  set +e
6030  as_fn_set_status $1
6031  exit $1
6032} # as_fn_exit
6033
6034# as_fn_unset VAR
6035# ---------------
6036# Portably unset VAR.
6037as_fn_unset ()
6038{
6039  { eval $1=; unset $1;}
6040}
6041as_unset=as_fn_unset
6042# as_fn_append VAR VALUE
6043# ----------------------
6044# Append the text in VALUE to the end of the definition contained in VAR. Take
6045# advantage of any shell optimizations that allow amortized linear growth over
6046# repeated appends, instead of the typical quadratic growth present in naive
6047# implementations.
6048if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6049  eval 'as_fn_append ()
6050  {
6051    eval $1+=\$2
6052  }'
6053else
6054  as_fn_append ()
6055  {
6056    eval $1=\$$1\$2
6057  }
6058fi # as_fn_append
6059
6060# as_fn_arith ARG...
6061# ------------------
6062# Perform arithmetic evaluation on the ARGs, and store the result in the
6063# global $as_val. Take advantage of shells that can avoid forks. The arguments
6064# must be portable across $(()) and expr.
6065if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6066  eval 'as_fn_arith ()
6067  {
6068    as_val=$(( $* ))
6069  }'
6070else
6071  as_fn_arith ()
6072  {
6073    as_val=`expr "$@" || test $? -eq 1`
6074  }
6075fi # as_fn_arith
6076
6077
6078if expr a : '\(a\)' >/dev/null 2>&1 &&
6079   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6080  as_expr=expr
6081else
6082  as_expr=false
6083fi
6084
6085if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6086  as_basename=basename
6087else
6088  as_basename=false
6089fi
6090
6091if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6092  as_dirname=dirname
6093else
6094  as_dirname=false
6095fi
6096
6097as_me=`$as_basename -- "$0" ||
6098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6099         X"$0" : 'X\(//\)$' \| \
6100         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6101$as_echo X/"$0" |
6102    sed '/^.*\/\([^/][^/]*\)\/*$/{
6103            s//\1/
6104            q
6105          }
6106          /^X\/\(\/\/\)$/{
6107            s//\1/
6108            q
6109          }
6110          /^X\/\(\/\).*/{
6111            s//\1/
6112            q
6113          }
6114          s/.*/./; q'`
6115
6116# Avoid depending upon Character Ranges.
6117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6120as_cr_digits='0123456789'
6121as_cr_alnum=$as_cr_Letters$as_cr_digits
6122
6123ECHO_C= ECHO_N= ECHO_T=
6124case `echo -n x` in #(((((
6125-n*)
6126  case `echo 'xy\c'` in
6127  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6128  xy)  ECHO_C='\c';;
6129  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6130       ECHO_T=' ';;
6131  esac;;
6132*)
6133  ECHO_N='-n';;
6134esac
6135
6136rm -f conf$$ conf$$.exe conf$$.file
6137if test -d conf$$.dir; then
6138  rm -f conf$$.dir/conf$$.file
6139else
6140  rm -f conf$$.dir
6141  mkdir conf$$.dir 2>/dev/null
6142fi
6143if (echo >conf$$.file) 2>/dev/null; then
6144  if ln -s conf$$.file conf$$ 2>/dev/null; then
6145    as_ln_s='ln -s'
6146    # ... but there are two gotchas:
6147    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6148    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6149    # In both cases, we have to default to `cp -pR'.
6150    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6151      as_ln_s='cp -pR'
6152  elif ln conf$$.file conf$$ 2>/dev/null; then
6153    as_ln_s=ln
6154  else
6155    as_ln_s='cp -pR'
6156  fi
6157else
6158  as_ln_s='cp -pR'
6159fi
6160rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6161rmdir conf$$.dir 2>/dev/null
6162
6163
6164# as_fn_mkdir_p
6165# -------------
6166# Create "$as_dir" as a directory, including parents if necessary.
6167as_fn_mkdir_p ()
6168{
6169
6170  case $as_dir in #(
6171  -*) as_dir=./$as_dir;;
6172  esac
6173  test -d "$as_dir" || eval $as_mkdir_p || {
6174    as_dirs=
6175    while :; do
6176      case $as_dir in #(
6177      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6178      *) as_qdir=$as_dir;;
6179      esac
6180      as_dirs="'$as_qdir' $as_dirs"
6181      as_dir=`$as_dirname -- "$as_dir" ||
6182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6183         X"$as_dir" : 'X\(//\)[^/]' \| \
6184         X"$as_dir" : 'X\(//\)$' \| \
6185         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6186$as_echo X"$as_dir" |
6187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6188            s//\1/
6189            q
6190          }
6191          /^X\(\/\/\)[^/].*/{
6192            s//\1/
6193            q
6194          }
6195          /^X\(\/\/\)$/{
6196            s//\1/
6197            q
6198          }
6199          /^X\(\/\).*/{
6200            s//\1/
6201            q
6202          }
6203          s/.*/./; q'`
6204      test -d "$as_dir" && break
6205    done
6206    test -z "$as_dirs" || eval "mkdir $as_dirs"
6207  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6208
6209
6210} # as_fn_mkdir_p
6211if mkdir -p . 2>/dev/null; then
6212  as_mkdir_p='mkdir -p "$as_dir"'
6213else
6214  test -d ./-p && rmdir ./-p
6215  as_mkdir_p=false
6216fi
6217
6218
6219# as_fn_executable_p FILE
6220# -----------------------
6221# Test if FILE is an executable regular file.
6222as_fn_executable_p ()
6223{
6224  test -f "$1" && test -x "$1"
6225} # as_fn_executable_p
6226as_test_x='test -x'
6227as_executable_p=as_fn_executable_p
6228
6229# Sed expression to map a string onto a valid CPP name.
6230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6231
6232# Sed expression to map a string onto a valid variable name.
6233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6234
6235
6236exec 6>&1
6237## ----------------------------------- ##
6238## Main body of $CONFIG_STATUS script. ##
6239## ----------------------------------- ##
6240_ASEOF
6241test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6242
6243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6244# Save the log message, to keep $0 and so on meaningful, and to
6245# report actual input values of CONFIG_FILES etc. instead of their
6246# values after options handling.
6247ac_log="
6248This file was extended by RapptureGUI $as_me 1.1, which was
6249generated by GNU Autoconf 2.69.  Invocation command line was
6250
6251  CONFIG_FILES    = $CONFIG_FILES
6252  CONFIG_HEADERS  = $CONFIG_HEADERS
6253  CONFIG_LINKS    = $CONFIG_LINKS
6254  CONFIG_COMMANDS = $CONFIG_COMMANDS
6255  $ $0 $@
6256
6257on `(hostname || uname -n) 2>/dev/null | sed 1q`
6258"
6259
6260_ACEOF
6261
6262case $ac_config_files in *"
6263"*) set x $ac_config_files; shift; ac_config_files=$*;;
6264esac
6265
6266
6267
6268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6269# Files that config.status was made for.
6270config_files="$ac_config_files"
6271
6272_ACEOF
6273
6274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6275ac_cs_usage="\
6276\`$as_me' instantiates files and other configuration actions
6277from templates according to the current configuration.  Unless the files
6278and actions are specified as TAGs, all are instantiated by default.
6279
6280Usage: $0 [OPTION]... [TAG]...
6281
6282  -h, --help       print this help, then exit
6283  -V, --version    print version number and configuration settings, then exit
6284      --config     print configuration, then exit
6285  -q, --quiet, --silent
6286                   do not print progress messages
6287  -d, --debug      don't remove temporary files
6288      --recheck    update $as_me by reconfiguring in the same conditions
6289      --file=FILE[:TEMPLATE]
6290                   instantiate the configuration file FILE
6291
6292Configuration files:
6293$config_files
6294
6295Report bugs to <rappture@nanohub.org>."
6296
6297_ACEOF
6298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6300ac_cs_version="\\
6301RapptureGUI config.status 1.1
6302configured by $0, generated by GNU Autoconf 2.69,
6303  with options \\"\$ac_cs_config\\"
6304
6305Copyright (C) 2012 Free Software Foundation, Inc.
6306This config.status script is free software; the Free Software Foundation
6307gives unlimited permission to copy, distribute and modify it."
6308
6309ac_pwd='$ac_pwd'
6310srcdir='$srcdir'
6311INSTALL='$INSTALL'
6312MKDIR_P='$MKDIR_P'
6313test -n "\$AWK" || AWK=awk
6314_ACEOF
6315
6316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6317# The default lists apply if the user does not specify any file.
6318ac_need_defaults=:
6319while test $# != 0
6320do
6321  case $1 in
6322  --*=?*)
6323    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6324    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6325    ac_shift=:
6326    ;;
6327  --*=)
6328    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6329    ac_optarg=
6330    ac_shift=:
6331    ;;
6332  *)
6333    ac_option=$1
6334    ac_optarg=$2
6335    ac_shift=shift
6336    ;;
6337  esac
6338
6339  case $ac_option in
6340  # Handling of the options.
6341  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6342    ac_cs_recheck=: ;;
6343  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6344    $as_echo "$ac_cs_version"; exit ;;
6345  --config | --confi | --conf | --con | --co | --c )
6346    $as_echo "$ac_cs_config"; exit ;;
6347  --debug | --debu | --deb | --de | --d | -d )
6348    debug=: ;;
6349  --file | --fil | --fi | --f )
6350    $ac_shift
6351    case $ac_optarg in
6352    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6353    '') as_fn_error $? "missing file argument" ;;
6354    esac
6355    as_fn_append CONFIG_FILES " '$ac_optarg'"
6356    ac_need_defaults=false;;
6357  --he | --h |  --help | --hel | -h )
6358    $as_echo "$ac_cs_usage"; exit ;;
6359  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6360  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6361    ac_cs_silent=: ;;
6362
6363  # This is an error.
6364  -*) as_fn_error $? "unrecognized option: \`$1'
6365Try \`$0 --help' for more information." ;;
6366
6367  *) as_fn_append ac_config_targets " $1"
6368     ac_need_defaults=false ;;
6369
6370  esac
6371  shift
6372done
6373
6374ac_configure_extra_args=
6375
6376if $ac_cs_silent; then
6377  exec 6>/dev/null
6378  ac_configure_extra_args="$ac_configure_extra_args --silent"
6379fi
6380
6381_ACEOF
6382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383if \$ac_cs_recheck; then
6384  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6385  shift
6386  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6387  CONFIG_SHELL='$SHELL'
6388  export CONFIG_SHELL
6389  exec "\$@"
6390fi
6391
6392_ACEOF
6393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6394exec 5>>config.log
6395{
6396  echo
6397  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6398## Running $as_me. ##
6399_ASBOX
6400  $as_echo "$ac_log"
6401} >&5
6402
6403_ACEOF
6404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6405_ACEOF
6406
6407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6408
6409# Handling of arguments.
6410for ac_config_target in $ac_config_targets
6411do
6412  case $ac_config_target in
6413    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6414    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
6415    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
6416    "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
6417    "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;;
6418    "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;;
6419    "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;;
6420    "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;;
6421    "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;;
6422    "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;;
6423    "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
6424    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
6425    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6426    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6427
6428  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6429  esac
6430done
6431
6432
6433# If the user did not use the arguments to specify the items to instantiate,
6434# then the envvar interface is used.  Set only those that are not.
6435# We use the long form for the default assignment because of an extremely
6436# bizarre bug on SunOS 4.1.3.
6437if $ac_need_defaults; then
6438  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6439fi
6440
6441# Have a temporary directory for convenience.  Make it in the build tree
6442# simply because there is no reason against having it here, and in addition,
6443# creating and moving files from /tmp can sometimes cause problems.
6444# Hook for its removal unless debugging.
6445# Note that there is a small window in which the directory will not be cleaned:
6446# after its creation but before its name has been assigned to `$tmp'.
6447$debug ||
6448{
6449  tmp= ac_tmp=
6450  trap 'exit_status=$?
6451  : "${ac_tmp:=$tmp}"
6452  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6453' 0
6454  trap 'as_fn_exit 1' 1 2 13 15
6455}
6456# Create a (secure) tmp directory for tmp files.
6457
6458{
6459  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6460  test -d "$tmp"
6461}  ||
6462{
6463  tmp=./conf$$-$RANDOM
6464  (umask 077 && mkdir "$tmp")
6465} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6466ac_tmp=$tmp
6467
6468# Set up the scripts for CONFIG_FILES section.
6469# No need to generate them if there are no CONFIG_FILES.
6470# This happens for instance with `./config.status config.h'.
6471if test -n "$CONFIG_FILES"; then
6472
6473
6474ac_cr=`echo X | tr X '\015'`
6475# On cygwin, bash can eat \r inside `` if the user requested igncr.
6476# But we know of no other shell where ac_cr would be empty at this
6477# point, so we can use a bashism as a fallback.
6478if test "x$ac_cr" = x; then
6479  eval ac_cr=\$\'\\r\'
6480fi
6481ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6482if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6483  ac_cs_awk_cr='\\r'
6484else
6485  ac_cs_awk_cr=$ac_cr
6486fi
6487
6488echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6489_ACEOF
6490
6491
6492{
6493  echo "cat >conf$$subs.awk <<_ACEOF" &&
6494  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6495  echo "_ACEOF"
6496} >conf$$subs.sh ||
6497  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6498ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6499ac_delim='%!_!# '
6500for ac_last_try in false false false false false :; do
6501  . ./conf$$subs.sh ||
6502    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6503
6504  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6505  if test $ac_delim_n = $ac_delim_num; then
6506    break
6507  elif $ac_last_try; then
6508    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6509  else
6510    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6511  fi
6512done
6513rm -f conf$$subs.sh
6514
6515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6516cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6517_ACEOF
6518sed -n '
6519h
6520s/^/S["/; s/!.*/"]=/
6521p
6522g
6523s/^[^!]*!//
6524:repl
6525t repl
6526s/'"$ac_delim"'$//
6527t delim
6528:nl
6529h
6530s/\(.\{148\}\)..*/\1/
6531t more1
6532s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6533p
6534n
6535b repl
6536:more1
6537s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6538p
6539g
6540s/.\{148\}//
6541t nl
6542:delim
6543h
6544s/\(.\{148\}\)..*/\1/
6545t more2
6546s/["\\]/\\&/g; s/^/"/; s/$/"/
6547p
6548b
6549:more2
6550s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6551p
6552g
6553s/.\{148\}//
6554t delim
6555' <conf$$subs.awk | sed '
6556/^[^""]/{
6557  N
6558  s/\n//
6559}
6560' >>$CONFIG_STATUS || ac_write_fail=1
6561rm -f conf$$subs.awk
6562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6563_ACAWK
6564cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6565  for (key in S) S_is_set[key] = 1
6566  FS = ""
6567
6568}
6569{
6570  line = $ 0
6571  nfields = split(line, field, "@")
6572  substed = 0
6573  len = length(field[1])
6574  for (i = 2; i < nfields; i++) {
6575    key = field[i]
6576    keylen = length(key)
6577    if (S_is_set[key]) {
6578      value = S[key]
6579      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6580      len += length(value) + length(field[++i])
6581      substed = 1
6582    } else
6583      len += 1 + keylen
6584  }
6585
6586  print line
6587}
6588
6589_ACAWK
6590_ACEOF
6591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6592if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6593  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6594else
6595  cat
6596fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6597  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6598_ACEOF
6599
6600# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6601# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6602# trailing colons and then remove the whole line if VPATH becomes empty
6603# (actually we leave an empty line to preserve line numbers).
6604if test "x$srcdir" = x.; then
6605  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6606h
6607s///
6608s/^/:/
6609s/[      ]*$/:/
6610s/:\$(srcdir):/:/g
6611s/:\${srcdir}:/:/g
6612s/:@srcdir@:/:/g
6613s/^:*//
6614s/:*$//
6615x
6616s/\(=[   ]*\).*/\1/
6617G
6618s/\n//
6619s/^[^=]*=[       ]*$//
6620}'
6621fi
6622
6623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6624fi # test -n "$CONFIG_FILES"
6625
6626
6627eval set X "  :F $CONFIG_FILES      "
6628shift
6629for ac_tag
6630do
6631  case $ac_tag in
6632  :[FHLC]) ac_mode=$ac_tag; continue;;
6633  esac
6634  case $ac_mode$ac_tag in
6635  :[FHL]*:*);;
6636  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6637  :[FH]-) ac_tag=-:-;;
6638  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6639  esac
6640  ac_save_IFS=$IFS
6641  IFS=:
6642  set x $ac_tag
6643  IFS=$ac_save_IFS
6644  shift
6645  ac_file=$1
6646  shift
6647
6648  case $ac_mode in
6649  :L) ac_source=$1;;
6650  :[FH])
6651    ac_file_inputs=
6652    for ac_f
6653    do
6654      case $ac_f in
6655      -) ac_f="$ac_tmp/stdin";;
6656      *) # Look for the file first in the build tree, then in the source tree
6657         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6658         # because $ac_f cannot contain `:'.
6659         test -f "$ac_f" ||
6660           case $ac_f in
6661           [\\/$]*) false;;
6662           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6663           esac ||
6664           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6665      esac
6666      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6667      as_fn_append ac_file_inputs " '$ac_f'"
6668    done
6669
6670    # Let's still pretend it is `configure' which instantiates (i.e., don't
6671    # use $as_me), people would be surprised to read:
6672    #    /* config.h.  Generated by config.status.  */
6673    configure_input='Generated from '`
6674          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6675        `' by configure.'
6676    if test x"$ac_file" != x-; then
6677      configure_input="$ac_file.  $configure_input"
6678      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6679$as_echo "$as_me: creating $ac_file" >&6;}
6680    fi
6681    # Neutralize special characters interpreted by sed in replacement strings.
6682    case $configure_input in #(
6683    *\&* | *\|* | *\\* )
6684       ac_sed_conf_input=`$as_echo "$configure_input" |
6685       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6686    *) ac_sed_conf_input=$configure_input;;
6687    esac
6688
6689    case $ac_tag in
6690    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6691      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6692    esac
6693    ;;
6694  esac
6695
6696  ac_dir=`$as_dirname -- "$ac_file" ||
6697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6698         X"$ac_file" : 'X\(//\)[^/]' \| \
6699         X"$ac_file" : 'X\(//\)$' \| \
6700         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6701$as_echo X"$ac_file" |
6702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6703            s//\1/
6704            q
6705          }
6706          /^X\(\/\/\)[^/].*/{
6707            s//\1/
6708            q
6709          }
6710          /^X\(\/\/\)$/{
6711            s//\1/
6712            q
6713          }
6714          /^X\(\/\).*/{
6715            s//\1/
6716            q
6717          }
6718          s/.*/./; q'`
6719  as_dir="$ac_dir"; as_fn_mkdir_p
6720  ac_builddir=.
6721
6722case "$ac_dir" in
6723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6724*)
6725  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6726  # A ".." for each directory in $ac_dir_suffix.
6727  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6728  case $ac_top_builddir_sub in
6729  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6730  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6731  esac ;;
6732esac
6733ac_abs_top_builddir=$ac_pwd
6734ac_abs_builddir=$ac_pwd$ac_dir_suffix
6735# for backward compatibility:
6736ac_top_builddir=$ac_top_build_prefix
6737
6738case $srcdir in
6739  .)  # We are building in place.
6740    ac_srcdir=.
6741    ac_top_srcdir=$ac_top_builddir_sub
6742    ac_abs_top_srcdir=$ac_pwd ;;
6743  [\\/]* | ?:[\\/]* )  # Absolute name.
6744    ac_srcdir=$srcdir$ac_dir_suffix;
6745    ac_top_srcdir=$srcdir
6746    ac_abs_top_srcdir=$srcdir ;;
6747  *) # Relative name.
6748    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6749    ac_top_srcdir=$ac_top_build_prefix$srcdir
6750    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6751esac
6752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6753
6754
6755  case $ac_mode in
6756  :F)
6757  #
6758  # CONFIG_FILE
6759  #
6760
6761  case $INSTALL in
6762  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6763  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6764  esac
6765  ac_MKDIR_P=$MKDIR_P
6766  case $MKDIR_P in
6767  [\\/$]* | ?:[\\/]* ) ;;
6768  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6769  esac
6770_ACEOF
6771
6772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6773# If the template does not know about datarootdir, expand it.
6774# FIXME: This hack should be removed a few years after 2.60.
6775ac_datarootdir_hack=; ac_datarootdir_seen=
6776ac_sed_dataroot='
6777/datarootdir/ {
6778  p
6779  q
6780}
6781/@datadir@/p
6782/@docdir@/p
6783/@infodir@/p
6784/@localedir@/p
6785/@mandir@/p'
6786case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6787*datarootdir*) ac_datarootdir_seen=yes;;
6788*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6790$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6791_ACEOF
6792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6793  ac_datarootdir_hack='
6794  s&@datadir@&$datadir&g
6795  s&@docdir@&$docdir&g
6796  s&@infodir@&$infodir&g
6797  s&@localedir@&$localedir&g
6798  s&@mandir@&$mandir&g
6799  s&\\\${datarootdir}&$datarootdir&g' ;;
6800esac
6801_ACEOF
6802
6803# Neutralize VPATH when `$srcdir' = `.'.
6804# Shell code in configure.ac might set extrasub.
6805# FIXME: do we really want to maintain this feature?
6806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6807ac_sed_extra="$ac_vpsub
6808$extrasub
6809_ACEOF
6810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6811:t
6812/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6813s|@configure_input@|$ac_sed_conf_input|;t t
6814s&@top_builddir@&$ac_top_builddir_sub&;t t
6815s&@top_build_prefix@&$ac_top_build_prefix&;t t
6816s&@srcdir@&$ac_srcdir&;t t
6817s&@abs_srcdir@&$ac_abs_srcdir&;t t
6818s&@top_srcdir@&$ac_top_srcdir&;t t
6819s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6820s&@builddir@&$ac_builddir&;t t
6821s&@abs_builddir@&$ac_abs_builddir&;t t
6822s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6823s&@INSTALL@&$ac_INSTALL&;t t
6824s&@MKDIR_P@&$ac_MKDIR_P&;t t
6825$ac_datarootdir_hack
6826"
6827eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6828  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6829
6830test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6831  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6832  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6833      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6835which seems to be undefined.  Please make sure it is defined" >&5
6836$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6837which seems to be undefined.  Please make sure it is defined" >&2;}
6838
6839  rm -f "$ac_tmp/stdin"
6840  case $ac_file in
6841  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6842  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6843  esac \
6844  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6845 ;;
6846
6847
6848
6849  esac
6850
6851done # for ac_tag
6852
6853
6854as_fn_exit 0
6855_ACEOF
6856ac_clean_files=$ac_clean_files_save
6857
6858test $ac_write_fail = 0 ||
6859  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6860
6861
6862# configure is writing to config.log, and then calls config.status.
6863# config.status does its own redirection, appending to config.log.
6864# Unfortunately, on DOS this fails, as config.log is still kept open
6865# by configure, so config.status won't be able to write to it; its
6866# output is simply discarded.  So we exec the FD to /dev/null,
6867# effectively closing config.log, so it can be properly (re)opened and
6868# appended to by config.status.  When coming back to configure, we
6869# need to make the FD available again.
6870if test "$no_create" != yes; then
6871  ac_cs_success=:
6872  ac_config_status_args=
6873  test "$silent" = yes &&
6874    ac_config_status_args="$ac_config_status_args --quiet"
6875  exec 5>/dev/null
6876  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6877  exec 5>>config.log
6878  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6879  # would make configure fail if this is the last instruction.
6880  $ac_cs_success || as_fn_exit 1
6881fi
6882if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6883  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6884$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6885fi
6886
Note: See TracBrowser for help on using the repository browser.