source: branches/blt4/gui/configure @ 2526

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