source: nanoscale/trunk/configure

Last change on this file was 6571, checked in by ldelgass, 8 years ago

Separate out config file parser, add default simple text parser, make Tcl parser
optional.

  • Property svn:executable set to *
File size: 249.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for nanoscale 0.1.
4#
5# Report bugs to <rappture@nanohub.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62        expr "X$arg" : "X\\(.*\\)$as_nl";
63        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""        $as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218         /*)
219           for as_base in sh bash ksh sh5; do
220             # Try only shells that exist, to save several forks.
221             as_shell=$as_dir/$as_base
222             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229           done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: rappture@nanohub.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334         X"$as_dir" : 'X\(//\)[^/]' \| \
335         X"$as_dir" : 'X\(//\)$' \| \
336         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339            s//\1/
340            q
341          }
342          /^X\(\/\/\)[^/].*/{
343            s//\1/
344            q
345          }
346          /^X\(\/\/\)$/{
347            s//\1/
348            q
349          }
350          /^X\(\/\).*/{
351            s//\1/
352            q
353          }
354          s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443         X"$0" : 'X\(//\)$' \| \
444         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447            s//\1/
448            q
449          }
450          /^X\/\(\/\/\)$/{
451            s//\1/
452            q
453          }
454          /^X\/\(\/\).*/{
455            s//\1/
456            q
457          }
458          s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T=' ';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='nanoscale'
582PACKAGE_TARNAME='nanoscale'
583PACKAGE_VERSION='0.1'
584PACKAGE_STRING='nanoscale 0.1'
585PACKAGE_BUGREPORT='rappture@nanohub.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626TCL_VERSION
627TCL_LIB_SPEC
628TCL_INC_SPEC
629SUBDIRS
630STATSDIR
631LOGDIR
632LD_RPATH
633CXXCPP
634ac_ct_CXX
635CXXFLAGS
636CXX
637MKDIR_P
638LN_S
639INSTALL_DATA
640INSTALL_SCRIPT
641INSTALL_PROGRAM
642XMKMF
643INSTALL_STUB_LIB
644INSTALL_LIB
645MAKE_STUB_LIB
646MAKE_LIB
647SHLIB_SUFFIX
648SHLIB_CFLAGS
649SHLIB_LD_LIBS
650TK_SHLIB_LD_EXTRAS
651TCL_SHLIB_LD_EXTRAS
652SHLIB_LD
653STLIB_LD
654LD_SEARCH_FLAGS
655CC_SEARCH_FLAGS
656LDFLAGS_OPTIMIZE
657LDFLAGS_DEBUG
658CFLAGS_WARNING
659CFLAGS_OPTIMIZE
660CFLAGS_DEBUG
661PLAT_SRCS
662PLAT_OBJS
663DL_OBJS
664DL_LIBS
665EGREP
666GREP
667CPP
668AR
669RANLIB
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677target_alias
678host_alias
679build_alias
680LIBS
681ECHO_T
682ECHO_N
683ECHO_C
684DEFS
685mandir
686localedir
687libdir
688psdir
689pdfdir
690dvidir
691htmldir
692infodir
693docdir
694oldincludedir
695includedir
696localstatedir
697sharedstatedir
698sysconfdir
699datadir
700datarootdir
701libexecdir
702sbindir
703bindir
704program_transform_name
705prefix
706exec_prefix
707PACKAGE_URL
708PACKAGE_BUGREPORT
709PACKAGE_STRING
710PACKAGE_VERSION
711PACKAGE_TARNAME
712PACKAGE_NAME
713PATH_SEPARATOR
714SHELL'
715ac_subst_files=''
716ac_user_opts='
717enable_option_checking
718with_tcllib
719with_statsdir
720with_logdir
721enable_64bit
722enable_64bit_vis
723enable_corefoundation
724enable_load
725with_x
726'
727      ac_precious_vars='build_alias
728host_alias
729target_alias
730CC
731CFLAGS
732LDFLAGS
733LIBS
734CPPFLAGS
735CPP
736XMKMF
737CXX
738CXXFLAGS
739CCC
740CXXCPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
770# (The list follows the same order as the GNU Coding Standards.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
795  # If the previous option needs an argument, assign it.
796  if test -n "$ac_prev"; then
797    eval $ac_prev=\$ac_option
798    ac_prev=
799    continue
800  fi
801
802  case $ac_option in
803  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804  *=)   ac_optarg= ;;
805  *)    ac_optarg=yes ;;
806  esac
807
808  # Accept the important Cygnus configure options, so we can diagnose typos.
809
810  case $ac_dashdash$ac_option in
811  --)
812    ac_dashdash=yes ;;
813
814  -bindir | --bindir | --bindi | --bind | --bin | --bi)
815    ac_prev=bindir ;;
816  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817    bindir=$ac_optarg ;;
818
819  -build | --build | --buil | --bui | --bu)
820    ac_prev=build_alias ;;
821  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822    build_alias=$ac_optarg ;;
823
824  -cache-file | --cache-file | --cache-fil | --cache-fi \
825  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826    ac_prev=cache_file ;;
827  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829    cache_file=$ac_optarg ;;
830
831  --config-cache | -C)
832    cache_file=config.cache ;;
833
834  -datadir | --datadir | --datadi | --datad)
835    ac_prev=datadir ;;
836  -datadir=* | --datadir=* | --datadi=* | --datad=*)
837    datadir=$ac_optarg ;;
838
839  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840  | --dataroo | --dataro | --datar)
841    ac_prev=datarootdir ;;
842  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844    datarootdir=$ac_optarg ;;
845
846  -disable-* | --disable-*)
847    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
848    # Reject names that are not valid shell variable names.
849    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850      as_fn_error $? "invalid feature name: $ac_useropt"
851    ac_useropt_orig=$ac_useropt
852    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853    case $ac_user_opts in
854      *"
855"enable_$ac_useropt"
856"*) ;;
857      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858         ac_unrecognized_sep=', ';;
859    esac
860    eval enable_$ac_useropt=no ;;
861
862  -docdir | --docdir | --docdi | --doc | --do)
863    ac_prev=docdir ;;
864  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865    docdir=$ac_optarg ;;
866
867  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868    ac_prev=dvidir ;;
869  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870    dvidir=$ac_optarg ;;
871
872  -enable-* | --enable-*)
873    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874    # Reject names that are not valid shell variable names.
875    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876      as_fn_error $? "invalid feature name: $ac_useropt"
877    ac_useropt_orig=$ac_useropt
878    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879    case $ac_user_opts in
880      *"
881"enable_$ac_useropt"
882"*) ;;
883      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884         ac_unrecognized_sep=', ';;
885    esac
886    eval enable_$ac_useropt=\$ac_optarg ;;
887
888  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890  | --exec | --exe | --ex)
891    ac_prev=exec_prefix ;;
892  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894  | --exec=* | --exe=* | --ex=*)
895    exec_prefix=$ac_optarg ;;
896
897  -gas | --gas | --ga | --g)
898    # Obsolete; use --with-gas.
899    with_gas=yes ;;
900
901  -help | --help | --hel | --he | -h)
902    ac_init_help=long ;;
903  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904    ac_init_help=recursive ;;
905  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906    ac_init_help=short ;;
907
908  -host | --host | --hos | --ho)
909    ac_prev=host_alias ;;
910  -host=* | --host=* | --hos=* | --ho=*)
911    host_alias=$ac_optarg ;;
912
913  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914    ac_prev=htmldir ;;
915  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916  | --ht=*)
917    htmldir=$ac_optarg ;;
918
919  -includedir | --includedir | --includedi | --included | --include \
920  | --includ | --inclu | --incl | --inc)
921    ac_prev=includedir ;;
922  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923  | --includ=* | --inclu=* | --incl=* | --inc=*)
924    includedir=$ac_optarg ;;
925
926  -infodir | --infodir | --infodi | --infod | --info | --inf)
927    ac_prev=infodir ;;
928  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929    infodir=$ac_optarg ;;
930
931  -libdir | --libdir | --libdi | --libd)
932    ac_prev=libdir ;;
933  -libdir=* | --libdir=* | --libdi=* | --libd=*)
934    libdir=$ac_optarg ;;
935
936  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937  | --libexe | --libex | --libe)
938    ac_prev=libexecdir ;;
939  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940  | --libexe=* | --libex=* | --libe=*)
941    libexecdir=$ac_optarg ;;
942
943  -localedir | --localedir | --localedi | --localed | --locale)
944    ac_prev=localedir ;;
945  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946    localedir=$ac_optarg ;;
947
948  -localstatedir | --localstatedir | --localstatedi | --localstated \
949  | --localstate | --localstat | --localsta | --localst | --locals)
950    ac_prev=localstatedir ;;
951  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
952  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953    localstatedir=$ac_optarg ;;
954
955  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956    ac_prev=mandir ;;
957  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958    mandir=$ac_optarg ;;
959
960  -nfp | --nfp | --nf)
961    # Obsolete; use --without-fp.
962    with_fp=no ;;
963
964  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965  | --no-cr | --no-c | -n)
966    no_create=yes ;;
967
968  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970    no_recursion=yes ;;
971
972  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974  | --oldin | --oldi | --old | --ol | --o)
975    ac_prev=oldincludedir ;;
976  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979    oldincludedir=$ac_optarg ;;
980
981  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982    ac_prev=prefix ;;
983  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984    prefix=$ac_optarg ;;
985
986  -program-prefix | --program-prefix | --program-prefi | --program-pref \
987  | --program-pre | --program-pr | --program-p)
988    ac_prev=program_prefix ;;
989  -program-prefix=* | --program-prefix=* | --program-prefi=* \
990  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991    program_prefix=$ac_optarg ;;
992
993  -program-suffix | --program-suffix | --program-suffi | --program-suff \
994  | --program-suf | --program-su | --program-s)
995    ac_prev=program_suffix ;;
996  -program-suffix=* | --program-suffix=* | --program-suffi=* \
997  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998    program_suffix=$ac_optarg ;;
999
1000  -program-transform-name | --program-transform-name \
1001  | --program-transform-nam | --program-transform-na \
1002  | --program-transform-n | --program-transform- \
1003  | --program-transform | --program-transfor \
1004  | --program-transfo | --program-transf \
1005  | --program-trans | --program-tran \
1006  | --progr-tra | --program-tr | --program-t)
1007    ac_prev=program_transform_name ;;
1008  -program-transform-name=* | --program-transform-name=* \
1009  | --program-transform-nam=* | --program-transform-na=* \
1010  | --program-transform-n=* | --program-transform-=* \
1011  | --program-transform=* | --program-transfor=* \
1012  | --program-transfo=* | --program-transf=* \
1013  | --program-trans=* | --program-tran=* \
1014  | --progr-tra=* | --program-tr=* | --program-t=*)
1015    program_transform_name=$ac_optarg ;;
1016
1017  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018    ac_prev=pdfdir ;;
1019  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020    pdfdir=$ac_optarg ;;
1021
1022  -psdir | --psdir | --psdi | --psd | --ps)
1023    ac_prev=psdir ;;
1024  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025    psdir=$ac_optarg ;;
1026
1027  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028  | -silent | --silent | --silen | --sile | --sil)
1029    silent=yes ;;
1030
1031  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1032    ac_prev=sbindir ;;
1033  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1034  | --sbi=* | --sb=*)
1035    sbindir=$ac_optarg ;;
1036
1037  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1038  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1039  | --sharedst | --shareds | --shared | --share | --shar \
1040  | --sha | --sh)
1041    ac_prev=sharedstatedir ;;
1042  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1043  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1044  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1045  | --sha=* | --sh=*)
1046    sharedstatedir=$ac_optarg ;;
1047
1048  -site | --site | --sit)
1049    ac_prev=site ;;
1050  -site=* | --site=* | --sit=*)
1051    site=$ac_optarg ;;
1052
1053  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1054    ac_prev=srcdir ;;
1055  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1056    srcdir=$ac_optarg ;;
1057
1058  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1059  | --syscon | --sysco | --sysc | --sys | --sy)
1060    ac_prev=sysconfdir ;;
1061  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1062  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1063    sysconfdir=$ac_optarg ;;
1064
1065  -target | --target | --targe | --targ | --tar | --ta | --t)
1066    ac_prev=target_alias ;;
1067  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1068    target_alias=$ac_optarg ;;
1069
1070  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1071    verbose=yes ;;
1072
1073  -version | --version | --versio | --versi | --vers | -V)
1074    ac_init_version=: ;;
1075
1076  -with-* | --with-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      as_fn_error $? "invalid package name: $ac_useropt"
1081    ac_useropt_orig=$ac_useropt
1082    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083    case $ac_user_opts in
1084      *"
1085"with_$ac_useropt"
1086"*) ;;
1087      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1088         ac_unrecognized_sep=', ';;
1089    esac
1090    eval with_$ac_useropt=\$ac_optarg ;;
1091
1092  -without-* | --without-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error $? "invalid package name: $ac_useropt"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"with_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1104         ac_unrecognized_sep=', ';;
1105    esac
1106    eval with_$ac_useropt=no ;;
1107
1108  --x)
1109    # Obsolete; use --with-x.
1110    with_x=yes ;;
1111
1112  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113  | --x-incl | --x-inc | --x-in | --x-i)
1114    ac_prev=x_includes ;;
1115  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117    x_includes=$ac_optarg ;;
1118
1119  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121    ac_prev=x_libraries ;;
1122  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124    x_libraries=$ac_optarg ;;
1125
1126  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1127Try \`$0 --help' for more information"
1128    ;;
1129
1130  *=*)
1131    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132    # Reject names that are not valid shell variable names.
1133    case $ac_envvar in #(
1134      '' | [0-9]* | *[!_$as_cr_alnum]* )
1135      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1136    esac
1137    eval $ac_envvar=\$ac_optarg
1138    export $ac_envvar ;;
1139
1140  *)
1141    # FIXME: should be removed in autoconf 3.0.
1142    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1146    ;;
1147
1148  esac
1149done
1150
1151if test -n "$ac_prev"; then
1152  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153  as_fn_error $? "missing argument to $ac_option"
1154fi
1155
1156if test -n "$ac_unrecognized_opts"; then
1157  case $enable_option_checking in
1158    no) ;;
1159    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1160    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161  esac
1162fi
1163
1164# Check all directory arguments for consistency.
1165for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166                datadir sysconfdir sharedstatedir localstatedir includedir \
1167                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168                libdir localedir mandir
1169do
1170  eval ac_val=\$$ac_var
1171  # Remove trailing slashes.
1172  case $ac_val in
1173    */ )
1174      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1175      eval $ac_var=\$ac_val;;
1176  esac
1177  # Be sure to have absolute directory names.
1178  case $ac_val in
1179    [\\/$]* | ?:[\\/]* )  continue;;
1180    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181  esac
1182  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1183done
1184
1185# There might be people who depend on the old broken behavior: `$host'
1186# used to hold the argument of --host etc.
1187# FIXME: To remove some day.
1188build=$build_alias
1189host=$host_alias
1190target=$target_alias
1191
1192# FIXME: To remove some day.
1193if test "x$host_alias" != x; then
1194  if test "x$build_alias" = x; then
1195    cross_compiling=maybe
1196  elif test "x$build_alias" != "x$host_alias"; then
1197    cross_compiling=yes
1198  fi
1199fi
1200
1201ac_tool_prefix=
1202test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204test "$silent" = yes && exec 6>/dev/null
1205
1206
1207ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208ac_ls_di=`ls -di .` &&
1209ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210  as_fn_error $? "working directory cannot be determined"
1211test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212  as_fn_error $? "pwd does not report name of working directory"
1213
1214
1215# Find the source files, if location was not specified.
1216if test -z "$srcdir"; then
1217  ac_srcdir_defaulted=yes
1218  # Try the directory containing this script, then the parent directory.
1219  ac_confdir=`$as_dirname -- "$as_myself" ||
1220$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221         X"$as_myself" : 'X\(//\)[^/]' \| \
1222         X"$as_myself" : 'X\(//\)$' \| \
1223         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224$as_echo X"$as_myself" |
1225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226            s//\1/
1227            q
1228          }
1229          /^X\(\/\/\)[^/].*/{
1230            s//\1/
1231            q
1232          }
1233          /^X\(\/\/\)$/{
1234            s//\1/
1235            q
1236          }
1237          /^X\(\/\).*/{
1238            s//\1/
1239            q
1240          }
1241          s/.*/./; q'`
1242  srcdir=$ac_confdir
1243  if test ! -r "$srcdir/$ac_unique_file"; then
1244    srcdir=..
1245  fi
1246else
1247  ac_srcdir_defaulted=no
1248fi
1249if test ! -r "$srcdir/$ac_unique_file"; then
1250  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1252fi
1253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254ac_abs_confdir=`(
1255        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256        pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259  srcdir=.
1260fi
1261# Remove unnecessary trailing slashes from srcdir.
1262# Double slashes in file names in object file debugging info
1263# mess up M-x gdb in Emacs.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for ac_var in $ac_precious_vars; do
1268  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269  eval ac_env_${ac_var}_value=\$${ac_var}
1270  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272done
1273
1274#
1275# Report the --help message.
1276#
1277if test "$ac_init_help" = "long"; then
1278  # Omit some internal or obsolete options to make the list less imposing.
1279  # This message is too long to be a string in the A/UX 3.1 sh.
1280  cat <<_ACEOF
1281\`configure' configures nanoscale 0.1 to adapt to many kinds of systems.
1282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE.  See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
1291  -h, --help              display this help and exit
1292      --help=short        display options specific to this package
1293      --help=recursive    display the short help of all the included packages
1294  -V, --version           display version information and exit
1295  -q, --quiet, --silent   do not print \`checking ...' messages
1296      --cache-file=FILE   cache test results in FILE [disabled]
1297  -C, --config-cache      alias for \`--cache-file=config.cache'
1298  -n, --no-create         do not create output files
1299      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1300
1301Installation directories:
1302  --prefix=PREFIX         install architecture-independent files in PREFIX
1303                          [$ac_default_prefix]
1304  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1305                          [PREFIX]
1306
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine tuning of the installation directories:
1315  --bindir=DIR            user executables [EPREFIX/bin]
1316  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1317  --libexecdir=DIR        program executables [EPREFIX/libexec]
1318  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1319  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1320  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1321  --libdir=DIR            object code libraries [EPREFIX/lib]
1322  --includedir=DIR        C header files [PREFIX/include]
1323  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1324  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1325  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1326  --infodir=DIR           info documentation [DATAROOTDIR/info]
1327  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1328  --mandir=DIR            man documentation [DATAROOTDIR/man]
1329  --docdir=DIR            documentation root [DATAROOTDIR/doc/nanoscale]
1330  --htmldir=DIR           html documentation [DOCDIR]
1331  --dvidir=DIR            dvi documentation [DOCDIR]
1332  --pdfdir=DIR            pdf documentation [DOCDIR]
1333  --psdir=DIR             ps documentation [DOCDIR]
1334_ACEOF
1335
1336  cat <<\_ACEOF
1337
1338X features:
1339  --x-includes=DIR    X include files are in DIR
1340  --x-libraries=DIR   X library files are in DIR
1341_ACEOF
1342fi
1343
1344if test -n "$ac_init_help"; then
1345  case $ac_init_help in
1346     short | recursive ) echo "Configuration of nanoscale 0.1:";;
1347   esac
1348  cat <<\_ACEOF
1349
1350Optional Features:
1351  --disable-option-checking  ignore unrecognized --enable/--with options
1352  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1353  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1354  --enable-64bit          enable 64bit support (where applicable)
1355  --enable-64bit-vis      enable 64bit Sparc VIS support
1356  --enable-corefoundation use CoreFoundation API --enable-corefoundation
1357  --disable-load          disallow dynamic loading and "load" command
1358
1359Optional Packages:
1360  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1361  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1362  --with-tcllib=DIR       location of Tcl binary library libtclstubs.a
1363                          [default=/usr/lib]
1364  --with-statsdir=DIR     Write statistics in DIR
1365  --with-logdir=DIR       Write log files in DIR
1366  --with-x                use the X Window System
1367
1368Some influential environment variables:
1369  CC          C compiler command
1370  CFLAGS      C compiler flags
1371  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1372              nonstandard directory <lib dir>
1373  LIBS        libraries to pass to the linker, e.g. -l<library>
1374  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1375              you have headers in a nonstandard directory <include dir>
1376  CPP         C preprocessor
1377  XMKMF       Path to xmkmf, Makefile generator for X Window System
1378  CXX         C++ compiler command
1379  CXXFLAGS    C++ compiler flags
1380  CXXCPP      C++ preprocessor
1381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385Report bugs to <rappture@nanohub.org>.
1386_ACEOF
1387ac_status=$?
1388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391  # If there are subdirs, report their specific --help.
1392  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393    test -d "$ac_dir" ||
1394      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395      continue
1396    ac_builddir=.
1397
1398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
1401  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402  # A ".." for each directory in $ac_dir_suffix.
1403  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404  case $ac_top_builddir_sub in
1405  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407  esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
1413
1414case $srcdir in
1415  .)  # We are building in place.
1416    ac_srcdir=.
1417    ac_top_srcdir=$ac_top_builddir_sub
1418    ac_abs_top_srcdir=$ac_pwd ;;
1419  [\\/]* | ?:[\\/]* )  # Absolute name.
1420    ac_srcdir=$srcdir$ac_dir_suffix;
1421    ac_top_srcdir=$srcdir
1422    ac_abs_top_srcdir=$srcdir ;;
1423  *) # Relative name.
1424    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425    ac_top_srcdir=$ac_top_build_prefix$srcdir
1426    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427esac
1428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430    cd "$ac_dir" || { ac_status=$?; continue; }
1431    # Check for guested configure.
1432    if test -f "$ac_srcdir/configure.gnu"; then
1433      echo &&
1434      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435    elif test -f "$ac_srcdir/configure"; then
1436      echo &&
1437      $SHELL "$ac_srcdir/configure" --help=recursive
1438    else
1439      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440    fi || ac_status=$?
1441    cd "$ac_pwd" || { ac_status=$?; break; }
1442  done
1443fi
1444
1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then
1447  cat <<\_ACEOF
1448nanoscale configure 0.1
1449generated by GNU Autoconf 2.69
1450
1451Copyright (C) 2012 Free Software Foundation, Inc.
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
1455  exit
1456fi
1457
1458## ------------------------ ##
1459## Autoconf initialization. ##
1460## ------------------------ ##
1461
1462# ac_fn_c_try_compile LINENO
1463# --------------------------
1464# Try to compile conftest.$ac_ext, and return whether this succeeded.
1465ac_fn_c_try_compile ()
1466{
1467  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468  rm -f conftest.$ac_objext
1469  if { { ac_try="$ac_compile"
1470case "(($ac_try" in
1471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472  *) ac_try_echo=$ac_try;;
1473esac
1474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475$as_echo "$ac_try_echo"; } >&5
1476  (eval "$ac_compile") 2>conftest.err
1477  ac_status=$?
1478  if test -s conftest.err; then
1479    grep -v '^ *+' conftest.err >conftest.er1
1480    cat conftest.er1 >&5
1481    mv -f conftest.er1 conftest.err
1482  fi
1483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484  test $ac_status = 0; } && {
1485         test -z "$ac_c_werror_flag" ||
1486         test ! -s conftest.err
1487       } && test -s conftest.$ac_objext; then :
1488  ac_retval=0
1489else
1490  $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493        ac_retval=1
1494fi
1495  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496  as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_compile
1499
1500# ac_fn_c_try_link LINENO
1501# -----------------------
1502# Try to link conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_link ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext conftest$ac_exeext
1507  if { { ac_try="$ac_link"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_link") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523         test -z "$ac_c_werror_flag" ||
1524         test ! -s conftest.err
1525       } && test -s conftest$ac_exeext && {
1526         test "$cross_compiling" = yes ||
1527         test -x conftest$ac_exeext
1528       }; then :
1529  ac_retval=0
1530else
1531  $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534        ac_retval=1
1535fi
1536  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1537  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1538  # interfere with the next link command; also delete a directory that is
1539  # left behind by Apple's compiler.  We do this before executing the actions.
1540  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1541  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542  as_fn_set_status $ac_retval
1543
1544} # ac_fn_c_try_link
1545
1546# ac_fn_c_try_cpp LINENO
1547# ----------------------
1548# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_cpp ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  if { { ac_try="$ac_cpp conftest.$ac_ext"
1553case "(($ac_try" in
1554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555  *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560  ac_status=$?
1561  if test -s conftest.err; then
1562    grep -v '^ *+' conftest.err >conftest.er1
1563    cat conftest.er1 >&5
1564    mv -f conftest.er1 conftest.err
1565  fi
1566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567  test $ac_status = 0; } > conftest.i && {
1568         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569         test ! -s conftest.err
1570       }; then :
1571  ac_retval=0
1572else
1573  $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576    ac_retval=1
1577fi
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579  as_fn_set_status $ac_retval
1580
1581} # ac_fn_c_try_cpp
1582
1583# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584# -------------------------------------------------------
1585# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586# the include files in INCLUDES and setting the cache variable VAR
1587# accordingly.
1588ac_fn_c_check_header_mongrel ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  if eval \${$3+:} false; then :
1592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593$as_echo_n "checking for $2... " >&6; }
1594if eval \${$3+:} false; then :
1595  $as_echo_n "(cached) " >&6
1596fi
1597eval ac_res=\$$3
1598               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599$as_echo "$ac_res" >&6; }
1600else
1601  # Is the header compilable?
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603$as_echo_n "checking $2 usability... " >&6; }
1604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605/* end confdefs.h.  */
1606$4
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_compile "$LINENO"; then :
1610  ac_header_compiler=yes
1611else
1612  ac_header_compiler=no
1613fi
1614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616$as_echo "$ac_header_compiler" >&6; }
1617
1618# Is the header present?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620$as_echo_n "checking $2 presence... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_cpp "$LINENO"; then :
1626  ac_header_preproc=yes
1627else
1628  ac_header_preproc=no
1629fi
1630rm -f conftest.err conftest.i conftest.$ac_ext
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632$as_echo "$ac_header_preproc" >&6; }
1633
1634# So?  What about this header?
1635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636  yes:no: )
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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    ;;
1642  no:yes:* )
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1646$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1650$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653( $as_echo "## ----------------------------------- ##
1654## Report this to rappture@nanohub.org ##
1655## ----------------------------------- ##"
1656     ) | sed "s/^/$as_me: WARNING:     /" >&2
1657    ;;
1658esac
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  eval "$3=\$ac_header_compiler"
1665fi
1666eval ac_res=\$$3
1667               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672} # ac_fn_c_check_header_mongrel
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734  eval "$3=yes"
1735else
1736  eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_cxx_try_compile LINENO
1748# ----------------------------
1749# Try to compile conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_cxx_try_compile ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  rm -f conftest.$ac_objext
1754  if { { ac_try="$ac_compile"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761  (eval "$ac_compile") 2>conftest.err
1762  ac_status=$?
1763  if test -s conftest.err; then
1764    grep -v '^ *+' conftest.err >conftest.er1
1765    cat conftest.er1 >&5
1766    mv -f conftest.er1 conftest.err
1767  fi
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && {
1770         test -z "$ac_cxx_werror_flag" ||
1771         test ! -s conftest.err
1772       } && test -s conftest.$ac_objext; then :
1773  ac_retval=0
1774else
1775  $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778        ac_retval=1
1779fi
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781  as_fn_set_status $ac_retval
1782
1783} # ac_fn_cxx_try_compile
1784
1785# ac_fn_cxx_try_cpp LINENO
1786# ------------------------
1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_cxx_try_cpp ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if { { ac_try="$ac_cpp conftest.$ac_ext"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799  ac_status=$?
1800  if test -s conftest.err; then
1801    grep -v '^ *+' conftest.err >conftest.er1
1802    cat conftest.er1 >&5
1803    mv -f conftest.er1 conftest.err
1804  fi
1805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806  test $ac_status = 0; } > conftest.i && {
1807         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1808         test ! -s conftest.err
1809       }; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815    ac_retval=1
1816fi
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_cxx_try_cpp
1821
1822# ac_fn_cxx_try_run LINENO
1823# ------------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825# that executables *can* be run.
1826ac_fn_cxx_try_run ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_link") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840  { { case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_try") 2>&5
1847  ac_status=$?
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; }; }; then :
1850  ac_retval=0
1851else
1852  $as_echo "$as_me: program exited with status $ac_status" >&5
1853       $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856       ac_retval=$ac_status
1857fi
1858  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_cxx_try_run
1863
1864# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1865# ---------------------------------------------------------
1866# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1867# the include files in INCLUDES and setting the cache variable VAR
1868# accordingly.
1869ac_fn_cxx_check_header_mongrel ()
1870{
1871  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872  if eval \${$3+:} false; then :
1873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877fi
1878eval ac_res=\$$3
1879               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881else
1882  # Is the header compilable?
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1884$as_echo_n "checking $2 usability... " >&6; }
1885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$4
1888#include <$2>
1889_ACEOF
1890if ac_fn_cxx_try_compile "$LINENO"; then :
1891  ac_header_compiler=yes
1892else
1893  ac_header_compiler=no
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1897$as_echo "$ac_header_compiler" >&6; }
1898
1899# Is the header present?
1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1901$as_echo_n "checking $2 presence... " >&6; }
1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904#include <$2>
1905_ACEOF
1906if ac_fn_cxx_try_cpp "$LINENO"; then :
1907  ac_header_preproc=yes
1908else
1909  ac_header_preproc=no
1910fi
1911rm -f conftest.err conftest.i conftest.$ac_ext
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1913$as_echo "$ac_header_preproc" >&6; }
1914
1915# So?  What about this header?
1916case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1917  yes:no: )
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1919$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922    ;;
1923  no:yes:* )
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1925$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1926    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1927$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1928    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1929$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1931$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934( $as_echo "## ----------------------------------- ##
1935## Report this to rappture@nanohub.org ##
1936## ----------------------------------- ##"
1937     ) | sed "s/^/$as_me: WARNING:     /" >&2
1938    ;;
1939esac
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  eval "$3=\$ac_header_compiler"
1946fi
1947eval ac_res=\$$3
1948               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950fi
1951  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953} # ac_fn_cxx_check_header_mongrel
1954
1955# ac_fn_cxx_try_link LINENO
1956# -------------------------
1957# Try to link conftest.$ac_ext, and return whether this succeeded.
1958ac_fn_cxx_try_link ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  rm -f conftest.$ac_objext conftest$ac_exeext
1962  if { { ac_try="$ac_link"
1963case "(($ac_try" in
1964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965  *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969  (eval "$ac_link") 2>conftest.err
1970  ac_status=$?
1971  if test -s conftest.err; then
1972    grep -v '^ *+' conftest.err >conftest.er1
1973    cat conftest.er1 >&5
1974    mv -f conftest.er1 conftest.err
1975  fi
1976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977  test $ac_status = 0; } && {
1978         test -z "$ac_cxx_werror_flag" ||
1979         test ! -s conftest.err
1980       } && test -s conftest$ac_exeext && {
1981         test "$cross_compiling" = yes ||
1982         test -x conftest$ac_exeext
1983       }; then :
1984  ac_retval=0
1985else
1986  $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989        ac_retval=1
1990fi
1991  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993  # interfere with the next link command; also delete a directory that is
1994  # left behind by Apple's compiler.  We do this before executing the actions.
1995  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997  as_fn_set_status $ac_retval
1998
1999} # ac_fn_cxx_try_link
2000
2001# ac_fn_cxx_check_func LINENO FUNC VAR
2002# ------------------------------------
2003# Tests whether FUNC exists, setting the cache variable VAR accordingly
2004ac_fn_cxx_check_func ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if eval \${$3+:} false; then :
2010  $as_echo_n "(cached) " >&6
2011else
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2016#define $2 innocuous_$2
2017
2018/* System header to define __stub macros and hopefully few prototypes,
2019    which can conflict with char $2 (); below.
2020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021    <limits.h> exists even on freestanding compilers.  */
2022
2023#ifdef __STDC__
2024# include <limits.h>
2025#else
2026# include <assert.h>
2027#endif
2028
2029#undef $2
2030
2031/* Override any GCC internal prototype to avoid an error.
2032   Use char because int might match the return type of a GCC
2033   builtin and then its argument prototype would still apply.  */
2034#ifdef __cplusplus
2035extern "C"
2036#endif
2037char $2 ();
2038/* The GNU C library defines this for functions which it implements
2039    to always fail with ENOSYS.  Some functions are actually named
2040    something starting with __ and the normal name is an alias.  */
2041#if defined __stub_$2 || defined __stub___$2
2042choke me
2043#endif
2044
2045int
2046main ()
2047{
2048return $2 ();
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_cxx_try_link "$LINENO"; then :
2054  eval "$3=yes"
2055else
2056  eval "$3=no"
2057fi
2058rm -f core conftest.err conftest.$ac_objext \
2059    conftest$ac_exeext conftest.$ac_ext
2060fi
2061eval ac_res=\$$3
2062               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066} # ac_fn_cxx_check_func
2067cat >config.log <<_ACEOF
2068This file contains any messages produced by compilers while
2069running configure, to aid debugging if configure makes a mistake.
2070
2071It was created by nanoscale $as_me 0.1, which was
2072generated by GNU Autoconf 2.69.  Invocation command line was
2073
2074  $ $0 $@
2075
2076_ACEOF
2077exec 5>>config.log
2078{
2079cat <<_ASUNAME
2080## --------- ##
2081## Platform. ##
2082## --------- ##
2083
2084hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2085uname -m = `(uname -m) 2>/dev/null || echo unknown`
2086uname -r = `(uname -r) 2>/dev/null || echo unknown`
2087uname -s = `(uname -s) 2>/dev/null || echo unknown`
2088uname -v = `(uname -v) 2>/dev/null || echo unknown`
2089
2090/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2091/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2092
2093/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2094/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2095/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2096/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2097/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2098/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2099/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2100
2101_ASUNAME
2102
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108    $as_echo "PATH: $as_dir"
2109  done
2110IFS=$as_save_IFS
2111
2112} >&5
2113
2114cat >&5 <<_ACEOF
2115
2116
2117## ----------- ##
2118## Core tests. ##
2119## ----------- ##
2120
2121_ACEOF
2122
2123
2124# Keep a trace of the command line.
2125# Strip out --no-create and --no-recursion so they do not pile up.
2126# Strip out --silent because we don't want to record it for future runs.
2127# Also quote any args containing shell meta-characters.
2128# Make two passes to allow for proper duplicate-argument suppression.
2129ac_configure_args=
2130ac_configure_args0=
2131ac_configure_args1=
2132ac_must_keep_next=false
2133for ac_pass in 1 2
2134do
2135  for ac_arg
2136  do
2137    case $ac_arg in
2138    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2139    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2140    | -silent | --silent | --silen | --sile | --sil)
2141      continue ;;
2142    *\'*)
2143      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144    esac
2145    case $ac_pass in
2146    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2147    2)
2148      as_fn_append ac_configure_args1 " '$ac_arg'"
2149      if test $ac_must_keep_next = true; then
2150        ac_must_keep_next=false # Got value, back to normal.
2151      else
2152        case $ac_arg in
2153          *=* | --config-cache | -C | -disable-* | --disable-* \
2154          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2155          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2156          | -with-* | --with-* | -without-* | --without-* | --x)
2157            case "$ac_configure_args0 " in
2158              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159            esac
2160            ;;
2161          -* ) ac_must_keep_next=true ;;
2162        esac
2163      fi
2164      as_fn_append ac_configure_args " '$ac_arg'"
2165      ;;
2166    esac
2167  done
2168done
2169{ ac_configure_args0=; unset ac_configure_args0;}
2170{ ac_configure_args1=; unset ac_configure_args1;}
2171
2172# When interrupted or exit'd, cleanup temporary files, and complete
2173# config.log.  We remove comments because anyway the quotes in there
2174# would cause problems or look ugly.
2175# WARNING: Use '\'' to represent an apostrophe within the trap.
2176# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2177trap 'exit_status=$?
2178  # Save into config.log some information that might help in debugging.
2179  {
2180    echo
2181
2182    $as_echo "## ---------------- ##
2183## Cache variables. ##
2184## ---------------- ##"
2185    echo
2186    # The following way of writing the cache mishandles newlines in values,
2187(
2188  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189    eval ac_val=\$$ac_var
2190    case $ac_val in #(
2191    *${as_nl}*)
2192      case $ac_var in #(
2193      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195      esac
2196      case $ac_var in #(
2197      _ | IFS | as_nl) ;; #(
2198      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199      *) { eval $ac_var=; unset $ac_var;} ;;
2200      esac ;;
2201    esac
2202  done
2203  (set) 2>&1 |
2204    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205    *${as_nl}ac_space=\ *)
2206      sed -n \
2207        "s/'\''/'\''\\\\'\'''\''/g;
2208          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209      ;; #(
2210    *)
2211      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212      ;;
2213    esac |
2214    sort
2215)
2216    echo
2217
2218    $as_echo "## ----------------- ##
2219## Output variables. ##
2220## ----------------- ##"
2221    echo
2222    for ac_var in $ac_subst_vars
2223    do
2224      eval ac_val=\$$ac_var
2225      case $ac_val in
2226      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227      esac
2228      $as_echo "$ac_var='\''$ac_val'\''"
2229    done | sort
2230    echo
2231
2232    if test -n "$ac_subst_files"; then
2233      $as_echo "## ------------------- ##
2234## File substitutions. ##
2235## ------------------- ##"
2236      echo
2237      for ac_var in $ac_subst_files
2238      do
2239        eval ac_val=\$$ac_var
2240        case $ac_val in
2241        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242        esac
2243        $as_echo "$ac_var='\''$ac_val'\''"
2244      done | sort
2245      echo
2246    fi
2247
2248    if test -s confdefs.h; then
2249      $as_echo "## ----------- ##
2250## confdefs.h. ##
2251## ----------- ##"
2252      echo
2253      cat confdefs.h
2254      echo
2255    fi
2256    test "$ac_signal" != 0 &&
2257      $as_echo "$as_me: caught signal $ac_signal"
2258    $as_echo "$as_me: exit $exit_status"
2259  } >&5
2260  rm -f core *.core core.conftest.* &&
2261    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262    exit $exit_status
2263' 0
2264for ac_signal in 1 2 13 15; do
2265  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266done
2267ac_signal=0
2268
2269# confdefs.h avoids OS command line length limits that DEFS can exceed.
2270rm -f -r conftest* confdefs.h
2271
2272$as_echo "/* confdefs.h */" > confdefs.h
2273
2274# Predefined preprocessor variables.
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_NAME "$PACKAGE_NAME"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_VERSION "$PACKAGE_VERSION"
2286_ACEOF
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_STRING "$PACKAGE_STRING"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_URL "$PACKAGE_URL"
2298_ACEOF
2299
2300
2301# Let the site file select an alternate cache file if it wants to.
2302# Prefer an explicitly selected file to automatically selected ones.
2303ac_site_file1=NONE
2304ac_site_file2=NONE
2305if test -n "$CONFIG_SITE"; then
2306  # We do not want a PATH search for config.site.
2307  case $CONFIG_SITE in #((
2308    -*)  ac_site_file1=./$CONFIG_SITE;;
2309    */*) ac_site_file1=$CONFIG_SITE;;
2310    *)   ac_site_file1=./$CONFIG_SITE;;
2311  esac
2312elif test "x$prefix" != xNONE; then
2313  ac_site_file1=$prefix/share/config.site
2314  ac_site_file2=$prefix/etc/config.site
2315else
2316  ac_site_file1=$ac_default_prefix/share/config.site
2317  ac_site_file2=$ac_default_prefix/etc/config.site
2318fi
2319for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320do
2321  test "x$ac_site_file" = xNONE && continue
2322  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325    sed 's/^/| /' "$ac_site_file" >&5
2326    . "$ac_site_file" \
2327      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329as_fn_error $? "failed to load site script $ac_site_file
2330See \`config.log' for more details" "$LINENO" 5; }
2331  fi
2332done
2333
2334if test -r "$cache_file"; then
2335  # Some versions of bash will fail to source /dev/null (special files
2336  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2337  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339$as_echo "$as_me: loading cache $cache_file" >&6;}
2340    case $cache_file in
2341      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342      *)                      . "./$cache_file";;
2343    esac
2344  fi
2345else
2346  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347$as_echo "$as_me: creating cache $cache_file" >&6;}
2348  >$cache_file
2349fi
2350
2351# Check that the precious variables saved in the cache have kept the same
2352# value.
2353ac_cache_corrupted=false
2354for ac_var in $ac_precious_vars; do
2355  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2356  eval ac_new_set=\$ac_env_${ac_var}_set
2357  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2358  eval ac_new_val=\$ac_env_${ac_var}_value
2359  case $ac_old_set,$ac_new_set in
2360    set,)
2361      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2362$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2363      ac_cache_corrupted=: ;;
2364    ,set)
2365      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2366$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2367      ac_cache_corrupted=: ;;
2368    ,);;
2369    *)
2370      if test "x$ac_old_val" != "x$ac_new_val"; then
2371        # differences in whitespace do not lead to failure.
2372        ac_old_val_w=`echo x $ac_old_val`
2373        ac_new_val_w=`echo x $ac_new_val`
2374        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2375          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2376$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2377          ac_cache_corrupted=:
2378        else
2379          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2380$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2381          eval $ac_var=\$ac_old_val
2382        fi
2383        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2384$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2385        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2386$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2387      fi;;
2388  esac
2389  # Pass precious variables to config.status.
2390  if test "$ac_new_set" = set; then
2391    case $ac_new_val in
2392    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2393    *) ac_arg=$ac_var=$ac_new_val ;;
2394    esac
2395    case " $ac_configure_args " in
2396      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2397      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398    esac
2399  fi
2400done
2401if $ac_cache_corrupted; then
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2405$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2406  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2407fi
2408## -------------------- ##
2409## Main body of script. ##
2410## -------------------- ##
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419ac_aux_dir=
2420for ac_dir in cf "$srcdir"/cf; do
2421  if test -f "$ac_dir/install-sh"; then
2422    ac_aux_dir=$ac_dir
2423    ac_install_sh="$ac_aux_dir/install-sh -c"
2424    break
2425  elif test -f "$ac_dir/install.sh"; then
2426    ac_aux_dir=$ac_dir
2427    ac_install_sh="$ac_aux_dir/install.sh -c"
2428    break
2429  elif test -f "$ac_dir/shtool"; then
2430    ac_aux_dir=$ac_dir
2431    ac_install_sh="$ac_aux_dir/shtool install -c"
2432    break
2433  fi
2434done
2435if test -z "$ac_aux_dir"; then
2436  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2437fi
2438
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2444ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2445ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2446
2447
2448ac_config_headers="$ac_config_headers config.h"
2449
2450
2451
2452# Check whether --with-tcllib was given.
2453if test "${with_tcllib+set}" = set; then :
2454  withval=$with_tcllib; with_tcllib=$withval
2455else
2456  with_tcllib=""
2457fi
2458
2459
2460
2461# Check whether --with-statsdir was given.
2462if test "${with_statsdir+set}" = set; then :
2463  withval=$with_statsdir; STATSDIR=$withval
2464else
2465  STATSDIR="/var/tmp/visservers"
2466fi
2467
2468
2469
2470# Check whether --with-logdir was given.
2471if test "${with_logdir+set}" = set; then :
2472  withval=$with_logdir; LOGDIR=$withval
2473else
2474  LOGDIR="/tmp"
2475fi
2476
2477
2478#------------------------------------------------------------------------
2479# Handle the --prefix=... option
2480#------------------------------------------------------------------------
2481
2482if test "${prefix}" = "NONE"; then
2483    prefix=/usr/local
2484fi
2485if test "${exec_prefix}" = "NONE"; then
2486    exec_prefix=$prefix
2487fi
2488
2489if test "x${incdir}" == "x"; then
2490  incdir=${exec_prefix}/include
2491fi
2492libdir=${exec_prefix}/lib
2493
2494if test "${libdir}" != "${prefix}/lib"; then
2495    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
2496else
2497    LIB_SEARCH_DIRS="-L ${libdir}"
2498fi
2499
2500ac_ext=c
2501ac_cpp='$CPP $CPPFLAGS'
2502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505if test -n "$ac_tool_prefix"; then
2506  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}gcc; ac_word=$2
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if ${ac_cv_prog_CC+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  if test -n "$CC"; then
2514  ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521    for ac_exec_ext in '' $ac_executable_extensions; do
2522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528  done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536$as_echo "$CC" >&6; }
2537else
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
2540fi
2541
2542
2543fi
2544if test -z "$ac_cv_prog_CC"; then
2545  ac_ct_CC=$CC
2546  # Extract the first word of "gcc", so it can be a program name with args.
2547set dummy gcc; ac_word=$2
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if ${ac_cv_prog_ac_ct_CC+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  if test -n "$ac_ct_CC"; then
2554  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559  IFS=$as_save_IFS
2560  test -z "$as_dir" && as_dir=.
2561    for ac_exec_ext in '' $ac_executable_extensions; do
2562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563    ac_cv_prog_ac_ct_CC="gcc"
2564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565    break 2
2566  fi
2567done
2568  done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573ac_ct_CC=$ac_cv_prog_ac_ct_CC
2574if test -n "$ac_ct_CC"; then
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2576$as_echo "$ac_ct_CC" >&6; }
2577else
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579$as_echo "no" >&6; }
2580fi
2581
2582  if test "x$ac_ct_CC" = x; then
2583    CC=""
2584  else
2585    case $cross_compiling:$ac_tool_warned in
2586yes:)
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591    CC=$ac_ct_CC
2592  fi
2593else
2594  CC="$ac_cv_prog_CC"
2595fi
2596
2597if test -z "$CC"; then
2598          if test -n "$ac_tool_prefix"; then
2599    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2600set dummy ${ac_tool_prefix}cc; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_CC+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$CC"; then
2607  ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614    for ac_exec_ext in '' $ac_executable_extensions; do
2615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_CC="${ac_tool_prefix}cc"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2629$as_echo "$CC" >&6; }
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633fi
2634
2635
2636  fi
2637fi
2638if test -z "$CC"; then
2639  # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_CC+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if test -n "$CC"; then
2647  ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649  ac_prog_rejected=no
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655    for ac_exec_ext in '' $ac_executable_extensions; do
2656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658       ac_prog_rejected=yes
2659       continue
2660     fi
2661    ac_cv_prog_CC="cc"
2662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663    break 2
2664  fi
2665done
2666  done
2667IFS=$as_save_IFS
2668
2669if test $ac_prog_rejected = yes; then
2670  # We found a bogon in the path, so make sure we never use it.
2671  set dummy $ac_cv_prog_CC
2672  shift
2673  if test $# != 0; then
2674    # We chose a different compiler from the bogus one.
2675    # However, it has the same basename, so the bogon will be chosen
2676    # first if we set CC to just the basename; use the full file name.
2677    shift
2678    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679  fi
2680fi
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686$as_echo "$CC" >&6; }
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
2690fi
2691
2692
2693fi
2694if test -z "$CC"; then
2695  if test -n "$ac_tool_prefix"; then
2696  for ac_prog in cl.exe
2697  do
2698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if ${ac_cv_prog_CC+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test -n "$CC"; then
2706  ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    for ac_exec_ext in '' $ac_executable_extensions; do
2714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720  done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2728$as_echo "$CC" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735    test -n "$CC" && break
2736  done
2737fi
2738if test -z "$CC"; then
2739  ac_ct_CC=$CC
2740  for ac_prog in cl.exe
2741do
2742  # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if ${ac_cv_prog_ac_ct_CC+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$ac_ct_CC"; then
2750  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759    ac_cv_prog_ac_ct_CC="$ac_prog"
2760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770if test -n "$ac_ct_CC"; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2772$as_echo "$ac_ct_CC" >&6; }
2773else
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779  test -n "$ac_ct_CC" && break
2780done
2781
2782  if test "x$ac_ct_CC" = x; then
2783    CC=""
2784  else
2785    case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2789ac_tool_warned=yes ;;
2790esac
2791    CC=$ac_ct_CC
2792  fi
2793fi
2794
2795fi
2796
2797
2798test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800as_fn_error $? "no acceptable C compiler found in \$PATH
2801See \`config.log' for more details" "$LINENO" 5; }
2802
2803# Provide some information about the compiler.
2804$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2805set X $ac_compile
2806ac_compiler=$2
2807for ac_option in --version -v -V -qversion; do
2808  { { ac_try="$ac_compiler $ac_option >&5"
2809case "(($ac_try" in
2810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811  *) ac_try_echo=$ac_try;;
2812esac
2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814$as_echo "$ac_try_echo"; } >&5
2815  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2816  ac_status=$?
2817  if test -s conftest.err; then
2818    sed '10a\
2819... rest of stderr output deleted ...
2820         10q' conftest.err >conftest.er1
2821    cat conftest.er1 >&5
2822  fi
2823  rm -f conftest.er1 conftest.err
2824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825  test $ac_status = 0; }
2826done
2827
2828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h.  */
2830
2831int
2832main ()
2833{
2834
2835  ;
2836  return 0;
2837}
2838_ACEOF
2839ac_clean_files_save=$ac_clean_files
2840ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2841# Try to create an executable without -o first, disregard a.out.
2842# It will help us diagnose broken compilers, and finding out an intuition
2843# of exeext.
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2845$as_echo_n "checking whether the C compiler works... " >&6; }
2846ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2847
2848# The possible output files:
2849ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2850
2851ac_rmfiles=
2852for ac_file in $ac_files
2853do
2854  case $ac_file in
2855    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2856    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2857  esac
2858done
2859rm -f $ac_rmfiles
2860
2861if { { ac_try="$ac_link_default"
2862case "(($ac_try" in
2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864  *) ac_try_echo=$ac_try;;
2865esac
2866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868  (eval "$ac_link_default") 2>&5
2869  ac_status=$?
2870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871  test $ac_status = 0; }; then :
2872  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2873# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2874# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2875# so that the user can short-circuit this test for compilers unknown to
2876# Autoconf.
2877for ac_file in $ac_files ''
2878do
2879  test -f "$ac_file" || continue
2880  case $ac_file in
2881    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2882        ;;
2883    [ab].out )
2884        # We found the default executable, but exeext='' is most
2885        # certainly right.
2886        break;;
2887    *.* )
2888        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2889        then :; else
2890           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891        fi
2892        # We set ac_cv_exeext here because the later test for it is not
2893        # safe: cross compilers may not add the suffix if given an `-o'
2894        # argument, so we may need to know it at that point already.
2895        # Even if this section looks crufty: it has the advantage of
2896        # actually working.
2897        break;;
2898    * )
2899        break;;
2900  esac
2901done
2902test "$ac_cv_exeext" = no && ac_cv_exeext=
2903
2904else
2905  ac_file=''
2906fi
2907if test -z "$ac_file"; then :
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910$as_echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915as_fn_error 77 "C compiler cannot create executables
2916See \`config.log' for more details" "$LINENO" 5; }
2917else
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919$as_echo "yes" >&6; }
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2922$as_echo_n "checking for C compiler default output file name... " >&6; }
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2924$as_echo "$ac_file" >&6; }
2925ac_exeext=$ac_cv_exeext
2926
2927rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2928ac_clean_files=$ac_clean_files_save
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2930$as_echo_n "checking for suffix of executables... " >&6; }
2931if { { ac_try="$ac_link"
2932case "(($ac_try" in
2933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934  *) ac_try_echo=$ac_try;;
2935esac
2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937$as_echo "$ac_try_echo"; } >&5
2938  (eval "$ac_link") 2>&5
2939  ac_status=$?
2940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941  test $ac_status = 0; }; then :
2942  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2943# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2944# work properly (i.e., refer to `conftest.exe'), while it won't with
2945# `rm'.
2946for ac_file in conftest.exe conftest conftest.*; do
2947  test -f "$ac_file" || continue
2948  case $ac_file in
2949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2950    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2951          break;;
2952    * ) break;;
2953  esac
2954done
2955else
2956  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2959See \`config.log' for more details" "$LINENO" 5; }
2960fi
2961rm -f conftest conftest$ac_cv_exeext
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2963$as_echo "$ac_cv_exeext" >&6; }
2964
2965rm -f conftest.$ac_ext
2966EXEEXT=$ac_cv_exeext
2967ac_exeext=$EXEEXT
2968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h.  */
2970#include <stdio.h>
2971int
2972main ()
2973{
2974FILE *f = fopen ("conftest.out", "w");
2975 return ferror (f) || fclose (f) != 0;
2976
2977  ;
2978  return 0;
2979}
2980_ACEOF
2981ac_clean_files="$ac_clean_files conftest.out"
2982# Check that the compiler produces executables we can run.  If not, either
2983# the compiler is broken, or we cross compile.
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2985$as_echo_n "checking whether we are cross compiling... " >&6; }
2986if test "$cross_compiling" != yes; then
2987  { { ac_try="$ac_link"
2988case "(($ac_try" in
2989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990  *) ac_try_echo=$ac_try;;
2991esac
2992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993$as_echo "$ac_try_echo"; } >&5
2994  (eval "$ac_link") 2>&5
2995  ac_status=$?
2996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997  test $ac_status = 0; }
2998  if { ac_try='./conftest$ac_cv_exeext'
2999  { { case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005  (eval "$ac_try") 2>&5
3006  ac_status=$?
3007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008  test $ac_status = 0; }; }; then
3009    cross_compiling=no
3010  else
3011    if test "$cross_compiling" = maybe; then
3012        cross_compiling=yes
3013    else
3014        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "cannot run C compiled programs.
3017If you meant to cross compile, use \`--host'.
3018See \`config.log' for more details" "$LINENO" 5; }
3019    fi
3020  fi
3021fi
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3023$as_echo "$cross_compiling" >&6; }
3024
3025rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3026ac_clean_files=$ac_clean_files_save
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3028$as_echo_n "checking for suffix of object files... " >&6; }
3029if ${ac_cv_objext+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031else
3032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.o conftest.obj
3044if { { ac_try="$ac_compile"
3045case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050$as_echo "$ac_try_echo"; } >&5
3051  (eval "$ac_compile") 2>&5
3052  ac_status=$?
3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054  test $ac_status = 0; }; then :
3055  for ac_file in conftest.o conftest.obj conftest.*; do
3056  test -f "$ac_file" || continue;
3057  case $ac_file in
3058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3059    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3060       break;;
3061  esac
3062done
3063else
3064  $as_echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069as_fn_error $? "cannot compute suffix of object files: cannot compile
3070See \`config.log' for more details" "$LINENO" 5; }
3071fi
3072rm -f conftest.$ac_cv_objext conftest.$ac_ext
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3075$as_echo "$ac_cv_objext" >&6; }
3076OBJEXT=$ac_cv_objext
3077ac_objext=$OBJEXT
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3079$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3080if ${ac_cv_c_compiler_gnu+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h.  */
3085
3086int
3087main ()
3088{
3089#ifndef __GNUC__
3090       choke me
3091#endif
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097if ac_fn_c_try_compile "$LINENO"; then :
3098  ac_compiler_gnu=yes
3099else
3100  ac_compiler_gnu=no
3101fi
3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103ac_cv_c_compiler_gnu=$ac_compiler_gnu
3104
3105fi
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3107$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3108if test $ac_compiler_gnu = yes; then
3109  GCC=yes
3110else
3111  GCC=
3112fi
3113ac_test_CFLAGS=${CFLAGS+set}
3114ac_save_CFLAGS=$CFLAGS
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3116$as_echo_n "checking whether $CC accepts -g... " >&6; }
3117if ${ac_cv_prog_cc_g+:} false; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  ac_save_c_werror_flag=$ac_c_werror_flag
3121   ac_c_werror_flag=yes
3122   ac_cv_prog_cc_g=no
3123   CFLAGS="-g"
3124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135if ac_fn_c_try_compile "$LINENO"; then :
3136  ac_cv_prog_cc_g=yes
3137else
3138  CFLAGS=""
3139      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h.  */
3141
3142int
3143main ()
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150if ac_fn_c_try_compile "$LINENO"; then :
3151
3152else
3153  ac_c_werror_flag=$ac_save_c_werror_flag
3154         CFLAGS="-g"
3155         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161
3162  ;
3163  return 0;
3164}
3165_ACEOF
3166if ac_fn_c_try_compile "$LINENO"; then :
3167  ac_cv_prog_cc_g=yes
3168fi
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170fi
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172fi
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174   ac_c_werror_flag=$ac_save_c_werror_flag
3175fi
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3177$as_echo "$ac_cv_prog_cc_g" >&6; }
3178if test "$ac_test_CFLAGS" = set; then
3179  CFLAGS=$ac_save_CFLAGS
3180elif test $ac_cv_prog_cc_g = yes; then
3181  if test "$GCC" = yes; then
3182    CFLAGS="-g -O2"
3183  else
3184    CFLAGS="-g"
3185  fi
3186else
3187  if test "$GCC" = yes; then
3188    CFLAGS="-O2"
3189  else
3190    CFLAGS=
3191  fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3194$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3195if ${ac_cv_prog_cc_c89+:} false; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  ac_cv_prog_cc_c89=no
3199ac_save_CC=$CC
3200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h.  */
3202#include <stdarg.h>
3203#include <stdio.h>
3204struct stat;
3205/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3206struct buf { int x; };
3207FILE * (*rcsopen) (struct buf *, struct stat *, int);
3208static char *e (p, i)
3209     char **p;
3210     int i;
3211{
3212  return p[i];
3213}
3214static char *f (char * (*g) (char **, int), char **p, ...)
3215{
3216  char *s;
3217  va_list v;
3218  va_start (v,p);
3219  s = g (p, va_arg (v,int));
3220  va_end (v);
3221  return s;
3222}
3223
3224/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3225   function prototypes and stuff, but not '\xHH' hex character constants.
3226   These don't provoke an error unfortunately, instead are silently treated
3227   as 'x'.  The following induces an error, until -std is added to get
3228   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3229   array size at least.  It's necessary to write '\x00'==0 to get something
3230   that's true only with -std.  */
3231int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3232
3233/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3234   inside strings and character constants.  */
3235#define FOO(x) 'x'
3236int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3237
3238int test (int i, double x);
3239struct s1 {int (*f) (int a);};
3240struct s2 {int (*f) (double a);};
3241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242int argc;
3243char **argv;
3244int
3245main ()
3246{
3247return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3248  ;
3249  return 0;
3250}
3251_ACEOF
3252for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3253        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3254do
3255  CC="$ac_save_CC $ac_arg"
3256  if ac_fn_c_try_compile "$LINENO"; then :
3257  ac_cv_prog_cc_c89=$ac_arg
3258fi
3259rm -f core conftest.err conftest.$ac_objext
3260  test "x$ac_cv_prog_cc_c89" != "xno" && break
3261done
3262rm -f conftest.$ac_ext
3263CC=$ac_save_CC
3264
3265fi
3266# AC_CACHE_VAL
3267case "x$ac_cv_prog_cc_c89" in
3268  x)
3269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3270$as_echo "none needed" >&6; } ;;
3271  xno)
3272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3273$as_echo "unsupported" >&6; } ;;
3274  *)
3275    CC="$CC $ac_cv_prog_cc_c89"
3276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3277$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3278esac
3279if test "x$ac_cv_prog_cc_c89" != xno; then :
3280
3281fi
3282
3283ac_ext=c
3284ac_cpp='$CPP $CPPFLAGS'
3285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290if test -n "$ac_tool_prefix"; then
3291  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294$as_echo_n "checking for $ac_word... " >&6; }
3295if ${ac_cv_prog_RANLIB+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  if test -n "$RANLIB"; then
3299  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306    for ac_exec_ext in '' $ac_executable_extensions; do
3307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313  done
3314IFS=$as_save_IFS
3315
3316fi
3317fi
3318RANLIB=$ac_cv_prog_RANLIB
3319if test -n "$RANLIB"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3321$as_echo "$RANLIB" >&6; }
3322else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328fi
3329if test -z "$ac_cv_prog_RANLIB"; then
3330  ac_ct_RANLIB=$RANLIB
3331  # Extract the first word of "ranlib", so it can be a program name with args.
3332set dummy ranlib; ac_word=$2
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
3335if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3336  $as_echo_n "(cached) " >&6
3337else
3338  if test -n "$ac_ct_RANLIB"; then
3339  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346    for ac_exec_ext in '' $ac_executable_extensions; do
3347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_ac_ct_RANLIB="ranlib"
3349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353  done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3359if test -n "$ac_ct_RANLIB"; then
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3361$as_echo "$ac_ct_RANLIB" >&6; }
3362else
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367  if test "x$ac_ct_RANLIB" = x; then
3368    RANLIB=":"
3369  else
3370    case $cross_compiling:$ac_tool_warned in
3371yes:)
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374ac_tool_warned=yes ;;
3375esac
3376    RANLIB=$ac_ct_RANLIB
3377  fi
3378else
3379  RANLIB="$ac_cv_prog_RANLIB"
3380fi
3381
3382ac_ext=c
3383ac_cpp='$CPP $CPPFLAGS'
3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3388$as_echo_n "checking how to run the C preprocessor... " >&6; }
3389# On Suns, sometimes $CPP names a directory.
3390if test -n "$CPP" && test -d "$CPP"; then
3391  CPP=
3392fi
3393if test -z "$CPP"; then
3394  if ${ac_cv_prog_CPP+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397      # Double quotes because CPP needs to be expanded
3398    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399    do
3400      ac_preproc_ok=false
3401for ac_c_preproc_warn_flag in '' yes
3402do
3403  # Use a header file that comes with gcc, so configuring glibc
3404  # with a fresh cross-compiler works.
3405  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3406  # <limits.h> exists even on freestanding compilers.
3407  # On the NeXT, cc -E runs the code through the compiler's parser,
3408  # not just through cpp. "Syntax error" is here to catch this case.
3409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411#ifdef __STDC__
3412# include <limits.h>
3413#else
3414# include <assert.h>
3415#endif
3416                     Syntax error
3417_ACEOF
3418if ac_fn_c_try_cpp "$LINENO"; then :
3419
3420else
3421  # Broken: fails on valid input.
3422continue
3423fi
3424rm -f conftest.err conftest.i conftest.$ac_ext
3425
3426  # OK, works on sane cases.  Now check whether nonexistent headers
3427  # can be detected and how.
3428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430#include <ac_nonexistent.h>
3431_ACEOF
3432if ac_fn_c_try_cpp "$LINENO"; then :
3433  # Broken: success on invalid input.
3434continue
3435else
3436  # Passes both tests.
3437ac_preproc_ok=:
3438break
3439fi
3440rm -f conftest.err conftest.i conftest.$ac_ext
3441
3442done
3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444rm -f conftest.i conftest.err conftest.$ac_ext
3445if $ac_preproc_ok; then :
3446  break
3447fi
3448
3449    done
3450    ac_cv_prog_CPP=$CPP
3451
3452fi
3453  CPP=$ac_cv_prog_CPP
3454else
3455  ac_cv_prog_CPP=$CPP
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3458$as_echo "$CPP" >&6; }
3459ac_preproc_ok=false
3460for ac_c_preproc_warn_flag in '' yes
3461do
3462  # Use a header file that comes with gcc, so configuring glibc
3463  # with a fresh cross-compiler works.
3464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465  # <limits.h> exists even on freestanding compilers.
3466  # On the NeXT, cc -E runs the code through the compiler's parser,
3467  # not just through cpp. "Syntax error" is here to catch this case.
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
3475                     Syntax error
3476_ACEOF
3477if ac_fn_c_try_cpp "$LINENO"; then :
3478
3479else
3480  # Broken: fails on valid input.
3481continue
3482fi
3483rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485  # OK, works on sane cases.  Now check whether nonexistent headers
3486  # can be detected and how.
3487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489#include <ac_nonexistent.h>
3490_ACEOF
3491if ac_fn_c_try_cpp "$LINENO"; then :
3492  # Broken: success on invalid input.
3493continue
3494else
3495  # Passes both tests.
3496ac_preproc_ok=:
3497break
3498fi
3499rm -f conftest.err conftest.i conftest.$ac_ext
3500
3501done
3502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503rm -f conftest.i conftest.err conftest.$ac_ext
3504if $ac_preproc_ok; then :
3505
3506else
3507  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3510See \`config.log' for more details" "$LINENO" 5; }
3511fi
3512
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3521$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3522if ${ac_cv_path_GREP+:} false; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  if test -z "$GREP"; then
3526  ac_path_GREP_found=false
3527  # Loop through the user's path and test for each of PROGNAME-LIST
3528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533    for ac_prog in grep ggrep; do
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3536      as_fn_executable_p "$ac_path_GREP" || continue
3537# Check for GNU ac_path_GREP and select it if it is found.
3538  # Check for GNU $ac_path_GREP
3539case `"$ac_path_GREP" --version 2>&1` in
3540*GNU*)
3541  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3542*)
3543  ac_count=0
3544  $as_echo_n 0123456789 >"conftest.in"
3545  while :
3546  do
3547    cat "conftest.in" "conftest.in" >"conftest.tmp"
3548    mv "conftest.tmp" "conftest.in"
3549    cp "conftest.in" "conftest.nl"
3550    $as_echo 'GREP' >> "conftest.nl"
3551    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553    as_fn_arith $ac_count + 1 && ac_count=$as_val
3554    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3555      # Best one so far, save it but keep looking for a better one
3556      ac_cv_path_GREP="$ac_path_GREP"
3557      ac_path_GREP_max=$ac_count
3558    fi
3559    # 10*(2^10) chars as input seems more than enough
3560    test $ac_count -gt 10 && break
3561  done
3562  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3563esac
3564
3565      $ac_path_GREP_found && break 3
3566    done
3567  done
3568  done
3569IFS=$as_save_IFS
3570  if test -z "$ac_cv_path_GREP"; then
3571    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3572  fi
3573else
3574  ac_cv_path_GREP=$GREP
3575fi
3576
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3579$as_echo "$ac_cv_path_GREP" >&6; }
3580 GREP="$ac_cv_path_GREP"
3581
3582
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3584$as_echo_n "checking for egrep... " >&6; }
3585if ${ac_cv_path_EGREP+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3589   then ac_cv_path_EGREP="$GREP -E"
3590   else
3591     if test -z "$EGREP"; then
3592  ac_path_EGREP_found=false
3593  # Loop through the user's path and test for each of PROGNAME-LIST
3594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_prog in egrep; do
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3602      as_fn_executable_p "$ac_path_EGREP" || continue
3603# Check for GNU ac_path_EGREP and select it if it is found.
3604  # Check for GNU $ac_path_EGREP
3605case `"$ac_path_EGREP" --version 2>&1` in
3606*GNU*)
3607  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3608*)
3609  ac_count=0
3610  $as_echo_n 0123456789 >"conftest.in"
3611  while :
3612  do
3613    cat "conftest.in" "conftest.in" >"conftest.tmp"
3614    mv "conftest.tmp" "conftest.in"
3615    cp "conftest.in" "conftest.nl"
3616    $as_echo 'EGREP' >> "conftest.nl"
3617    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619    as_fn_arith $ac_count + 1 && ac_count=$as_val
3620    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3621      # Best one so far, save it but keep looking for a better one
3622      ac_cv_path_EGREP="$ac_path_EGREP"
3623      ac_path_EGREP_max=$ac_count
3624    fi
3625    # 10*(2^10) chars as input seems more than enough
3626    test $ac_count -gt 10 && break
3627  done
3628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629esac
3630
3631      $ac_path_EGREP_found && break 3
3632    done
3633  done
3634  done
3635IFS=$as_save_IFS
3636  if test -z "$ac_cv_path_EGREP"; then
3637    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3638  fi
3639else
3640  ac_cv_path_EGREP=$EGREP
3641fi
3642
3643   fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3646$as_echo "$ac_cv_path_EGREP" >&6; }
3647 EGREP="$ac_cv_path_EGREP"
3648
3649
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3651$as_echo_n "checking for ANSI C header files... " >&6; }
3652if ${ac_cv_header_stdc+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657#include <stdlib.h>
3658#include <stdarg.h>
3659#include <string.h>
3660#include <float.h>
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670if ac_fn_c_try_compile "$LINENO"; then :
3671  ac_cv_header_stdc=yes
3672else
3673  ac_cv_header_stdc=no
3674fi
3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676
3677if test $ac_cv_header_stdc = yes; then
3678  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681#include <string.h>
3682
3683_ACEOF
3684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685  $EGREP "memchr" >/dev/null 2>&1; then :
3686
3687else
3688  ac_cv_header_stdc=no
3689fi
3690rm -f conftest*
3691
3692fi
3693
3694if test $ac_cv_header_stdc = yes; then
3695  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698#include <stdlib.h>
3699
3700_ACEOF
3701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702  $EGREP "free" >/dev/null 2>&1; then :
3703
3704else
3705  ac_cv_header_stdc=no
3706fi
3707rm -f conftest*
3708
3709fi
3710
3711if test $ac_cv_header_stdc = yes; then
3712  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3713  if test "$cross_compiling" = yes; then :
3714  :
3715else
3716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718#include <ctype.h>
3719#include <stdlib.h>
3720#if ((' ' & 0x0FF) == 0x020)
3721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3723#else
3724# define ISLOWER(c) \
3725                   (('a' <= (c) && (c) <= 'i') \
3726                     || ('j' <= (c) && (c) <= 'r') \
3727                     || ('s' <= (c) && (c) <= 'z'))
3728# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3729#endif
3730
3731#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3732int
3733main ()
3734{
3735  int i;
3736  for (i = 0; i < 256; i++)
3737    if (XOR (islower (i), ISLOWER (i))
3738        || toupper (i) != TOUPPER (i))
3739      return 2;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_run "$LINENO"; then :
3744
3745else
3746  ac_cv_header_stdc=no
3747fi
3748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3749  conftest.$ac_objext conftest.beam conftest.$ac_ext
3750fi
3751
3752fi
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3755$as_echo "$ac_cv_header_stdc" >&6; }
3756if test $ac_cv_header_stdc = yes; then
3757
3758$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3759
3760fi
3761
3762# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3764                  inttypes.h stdint.h unistd.h
3765do :
3766  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3768"
3769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3770  cat >>confdefs.h <<_ACEOF
3771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3772_ACEOF
3773
3774fi
3775
3776done
3777
3778
3779
3780
3781    # Step 0.a: Enable 64 bit support?
3782
3783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
3784$as_echo_n "checking if 64bit support is requested... " >&6; }
3785    # Check whether --enable-64bit was given.
3786if test "${enable_64bit+set}" = set; then :
3787  enableval=$enable_64bit; do64bit=$enableval
3788else
3789  do64bit=no
3790fi
3791
3792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
3793$as_echo "$do64bit" >&6; }
3794
3795    # Step 0.b: Enable Solaris 64 bit VIS support?
3796
3797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
3798$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
3799    # Check whether --enable-64bit-vis was given.
3800if test "${enable_64bit_vis+set}" = set; then :
3801  enableval=$enable_64bit_vis; do64bitVIS=$enableval
3802else
3803  do64bitVIS=no
3804fi
3805
3806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
3807$as_echo "$do64bitVIS" >&6; }
3808
3809    if test "$do64bitVIS" = "yes"; then
3810        # Force 64bit on with VIS
3811        do64bit=yes
3812    fi
3813
3814    # Step 1: set the variable "system" to hold the name and version number
3815    # for the system.
3816
3817
3818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
3819$as_echo_n "checking system version... " >&6; }
3820if ${tcl_cv_sys_version+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823
3824        if test -f /usr/lib/NextStep/software_version; then
3825            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
3826        else
3827            tcl_cv_sys_version=`uname -s`-`uname -r`
3828            if test "$?" -ne 0 ; then
3829                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
3830$as_echo "$as_me: WARNING: can't find uname command" >&2;}
3831                tcl_cv_sys_version=unknown
3832            else
3833                # Special check for weird MP-RAS system (uname returns weird
3834                # results, and the version is kept in special file).
3835
3836                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
3837                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
3838                fi
3839                if test "`uname -s`" = "AIX" ; then
3840                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
3841                fi
3842            fi
3843        fi
3844
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
3847$as_echo "$tcl_cv_sys_version" >&6; }
3848    system=$tcl_cv_sys_version
3849
3850
3851    # Step 2: check for existence of -ldl library.  This is needed because
3852    # Linux can use either -ldl or -ldld for dynamic loading.
3853
3854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3855$as_echo_n "checking for dlopen in -ldl... " >&6; }
3856if ${ac_cv_lib_dl_dlopen+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  ac_check_lib_save_LIBS=$LIBS
3860LIBS="-ldl  $LIBS"
3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863
3864/* Override any GCC internal prototype to avoid an error.
3865   Use char because int might match the return type of a GCC
3866   builtin and then its argument prototype would still apply.  */
3867#ifdef __cplusplus
3868extern "C"
3869#endif
3870char dlopen ();
3871int
3872main ()
3873{
3874return dlopen ();
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_link "$LINENO"; then :
3880  ac_cv_lib_dl_dlopen=yes
3881else
3882  ac_cv_lib_dl_dlopen=no
3883fi
3884rm -f core conftest.err conftest.$ac_objext \
3885    conftest$ac_exeext conftest.$ac_ext
3886LIBS=$ac_check_lib_save_LIBS
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3890if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3891  have_dl=yes
3892else
3893  have_dl=no
3894fi
3895
3896
3897    # Require ranlib early so we can override it in special cases below.
3898
3899
3900
3901    # Step 3: set configuration options based on system name and version.
3902
3903    do64bit_ok=no
3904    LDFLAGS_ORIG="$LDFLAGS"
3905    TCL_EXPORT_FILE_SUFFIX=""
3906    UNSHARED_LIB_SUFFIX=""
3907    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
3908    ECHO_VERSION='`echo ${VERSION}`'
3909    TCL_LIB_VERSIONS_OK=ok
3910    CFLAGS_DEBUG=-g
3911    CFLAGS_OPTIMIZE=-O
3912    if test "$GCC" = "yes" ; then
3913        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
3914    else
3915        CFLAGS_WARNING=""
3916    fi
3917    TCL_NEEDS_EXP_FILE=0
3918    TCL_BUILD_EXP_FILE=""
3919    TCL_EXP_FILE=""
3920    # Extract the first word of "ar", so it can be a program name with args.
3921set dummy ar; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
3924if ${ac_cv_prog_AR+:} false; then :
3925  $as_echo_n "(cached) " >&6
3926else
3927  if test -n "$AR"; then
3928  ac_cv_prog_AR="$AR" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933  IFS=$as_save_IFS
3934  test -z "$as_dir" && as_dir=.
3935    for ac_exec_ext in '' $ac_executable_extensions; do
3936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937    ac_cv_prog_AR="ar"
3938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939    break 2
3940  fi
3941done
3942  done
3943IFS=$as_save_IFS
3944
3945fi
3946fi
3947AR=$ac_cv_prog_AR
3948if test -n "$AR"; then
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3950$as_echo "$AR" >&6; }
3951else
3952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956
3957    if test "${AR}" = "" ; then
3958        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
3959    fi
3960    STLIB_LD='${AR} cr'
3961    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
3962    PLAT_OBJS=""
3963    PLAT_SRCS=""
3964    case $system in
3965        AIX-*)
3966            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
3967                # AIX requires the _r compiler when gcc isn't being used
3968                case "${CC}" in
3969                    *_r)
3970                        # ok ...
3971                        ;;
3972                    *)
3973                        CC=${CC}_r
3974                        ;;
3975                esac
3976                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
3977$as_echo "Using $CC for compiling with threads" >&6; }
3978            fi
3979            LIBS="$LIBS -lc"
3980            SHLIB_CFLAGS=""
3981            # Note: need the LIBS below, otherwise Tk won't find Tcl's
3982            # symbols when dynamically loaded into tclsh.
3983            SHLIB_LD_LIBS='${LIBS}'
3984            SHLIB_SUFFIX=".so"
3985
3986            DL_OBJS="tclLoadDl.o"
3987            LD_LIBRARY_PATH_VAR="LIBPATH"
3988
3989            # Check to enable 64-bit flags for compiler/linker on AIX 4+
3990            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
3991                if test "$GCC" = "yes" ; then
3992                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
3993$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
3994                else
3995                    do64bit_ok=yes
3996                    CFLAGS="$CFLAGS -q64"
3997                    LDFLAGS="$LDFLAGS -q64"
3998                    RANLIB="${RANLIB} -X64"
3999                    AR="${AR} -X64"
4000                    SHLIB_LD_FLAGS="-b64"
4001                fi
4002            fi
4003
4004            if test "`uname -m`" = "ia64" ; then
4005                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
4006                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
4007                # AIX-5 has dl* in libc.so
4008                DL_LIBS=""
4009                if test "$GCC" = "yes" ; then
4010                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
4011                else
4012                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
4013                fi
4014                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
4015            else
4016                if test "$GCC" = "yes" ; then
4017                    SHLIB_LD="gcc -shared"
4018                else
4019                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
4020                fi
4021                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
4022                DL_LIBS="-ldl"
4023                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4024                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4025                TCL_NEEDS_EXP_FILE=1
4026                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
4027            fi
4028
4029            # AIX v<=4.1 has some different flags than 4.2+
4030            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
4031                LIBOBJS="$LIBOBJS tclLoadAix.o"
4032                DL_LIBS="-lld"
4033            fi
4034
4035            # On AIX <=v4 systems, libbsd.a has to be linked in to support
4036            # non-blocking file IO.  This library has to be linked in after
4037            # the MATH_LIBS or it breaks the pow() function.  The way to
4038            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
4039            # This library also supplies gettimeofday.
4040            #
4041            # AIX does not have a timezone field in struct tm. When the AIX
4042            # bsd library is used, the timezone global and the gettimeofday
4043            # methods are to be avoided for timezone deduction instead, we
4044            # deduce the timezone by comparing the localtime result on a
4045            # known GMT value.
4046
4047            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
4048$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
4049if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  ac_check_lib_save_LIBS=$LIBS
4053LIBS="-lbsd  $LIBS"
4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057/* Override any GCC internal prototype to avoid an error.
4058   Use char because int might match the return type of a GCC
4059   builtin and then its argument prototype would still apply.  */
4060#ifdef __cplusplus
4061extern "C"
4062#endif
4063char gettimeofday ();
4064int
4065main ()
4066{
4067return gettimeofday ();
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_link "$LINENO"; then :
4073  ac_cv_lib_bsd_gettimeofday=yes
4074else
4075  ac_cv_lib_bsd_gettimeofday=no
4076fi
4077rm -f core conftest.err conftest.$ac_objext \
4078    conftest$ac_exeext conftest.$ac_ext
4079LIBS=$ac_check_lib_save_LIBS
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
4082$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
4083if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
4084  libbsd=yes
4085else
4086  libbsd=no
4087fi
4088
4089            if test $libbsd = yes; then
4090                MATH_LIBS="$MATH_LIBS -lbsd"
4091                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
4092
4093            fi
4094            ;;
4095        BeOS*)
4096            SHLIB_CFLAGS="-fPIC"
4097            SHLIB_LD="${CC} -nostart"
4098            SHLIB_LD_LIBS='${LIBS}'
4099            SHLIB_SUFFIX=".so"
4100            DL_OBJS="tclLoadDl.o"
4101            DL_LIBS="-ldl"
4102
4103            #-----------------------------------------------------------
4104            # Check for inet_ntoa in -lbind, for BeOS (which also needs
4105            # -lsocket, even if the network functions are in -lnet which
4106            # is always linked to, for compatibility.
4107            #-----------------------------------------------------------
4108            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
4109$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
4110if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  ac_check_lib_save_LIBS=$LIBS
4114LIBS="-lbind  $LIBS"
4115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118/* Override any GCC internal prototype to avoid an error.
4119   Use char because int might match the return type of a GCC
4120   builtin and then its argument prototype would still apply.  */
4121#ifdef __cplusplus
4122extern "C"
4123#endif
4124char inet_ntoa ();
4125int
4126main ()
4127{
4128return inet_ntoa ();
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_link "$LINENO"; then :
4134  ac_cv_lib_bind_inet_ntoa=yes
4135else
4136  ac_cv_lib_bind_inet_ntoa=no
4137fi
4138rm -f core conftest.err conftest.$ac_objext \
4139    conftest$ac_exeext conftest.$ac_ext
4140LIBS=$ac_check_lib_save_LIBS
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4143$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4144if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
4145  LIBS="$LIBS -lbind -lsocket"
4146fi
4147
4148            ;;
4149        BSD/OS-2.1*|BSD/OS-3*)
4150            SHLIB_CFLAGS=""
4151            SHLIB_LD="shlicc -r"
4152            SHLIB_LD_LIBS='${LIBS}'
4153            SHLIB_SUFFIX=".so"
4154            DL_OBJS="tclLoadDl.o"
4155            DL_LIBS="-ldl"
4156            CC_SEARCH_FLAGS=""
4157            LD_SEARCH_FLAGS=""
4158            ;;
4159        BSD/OS-4.*)
4160            SHLIB_CFLAGS="-export-dynamic -fPIC"
4161            SHLIB_LD="cc -shared"
4162            SHLIB_LD_LIBS='${LIBS}'
4163            SHLIB_SUFFIX=".so"
4164            DL_OBJS="tclLoadDl.o"
4165            DL_LIBS="-ldl"
4166            LDFLAGS="$LDFLAGS -export-dynamic"
4167            CC_SEARCH_FLAGS=""
4168            LD_SEARCH_FLAGS=""
4169            ;;
4170        dgux*)
4171            SHLIB_CFLAGS="-K PIC"
4172            SHLIB_LD="cc -G"
4173            SHLIB_LD_LIBS=""
4174            SHLIB_SUFFIX=".so"
4175            DL_OBJS="tclLoadDl.o"
4176            DL_LIBS="-ldl"
4177            CC_SEARCH_FLAGS=""
4178            LD_SEARCH_FLAGS=""
4179            ;;
4180        HP-UX-*.11.*)
4181            # Use updated header definitions where possible
4182            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4183          # Use the XOPEN network library
4184            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4185 # Use the XOPEN network library
4186            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4187
4188            if test "`uname -m`" = "ia64" ; then
4189                SHLIB_SUFFIX=".so"
4190            else
4191                SHLIB_SUFFIX=".sl"
4192            fi
4193            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4194$as_echo_n "checking for shl_load in -ldld... " >&6; }
4195if ${ac_cv_lib_dld_shl_load+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  ac_check_lib_save_LIBS=$LIBS
4199LIBS="-ldld  $LIBS"
4200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202
4203/* Override any GCC internal prototype to avoid an error.
4204   Use char because int might match the return type of a GCC
4205   builtin and then its argument prototype would still apply.  */
4206#ifdef __cplusplus
4207extern "C"
4208#endif
4209char shl_load ();
4210int
4211main ()
4212{
4213return shl_load ();
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218if ac_fn_c_try_link "$LINENO"; then :
4219  ac_cv_lib_dld_shl_load=yes
4220else
4221  ac_cv_lib_dld_shl_load=no
4222fi
4223rm -f core conftest.err conftest.$ac_objext \
4224    conftest$ac_exeext conftest.$ac_ext
4225LIBS=$ac_check_lib_save_LIBS
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4228$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4229if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4230  tcl_ok=yes
4231else
4232  tcl_ok=no
4233fi
4234
4235            if test "$tcl_ok" = yes; then
4236                SHLIB_CFLAGS="+z"
4237                SHLIB_LD="ld -b"
4238                SHLIB_LD_LIBS='${LIBS}'
4239                DL_OBJS="tclLoadShl.o"
4240                DL_LIBS="-ldld"
4241                LDFLAGS="$LDFLAGS -Wl,-E"
4242                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4243                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4244                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4245            fi
4246            if test "$GCC" = "yes" ; then
4247                SHLIB_LD="gcc -shared"
4248                SHLIB_LD_LIBS='${LIBS}'
4249                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4250            fi
4251
4252            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4253            #CFLAGS="$CFLAGS +DAportable"
4254
4255            # Check to enable 64-bit flags for compiler/linker
4256            if test "$do64bit" = "yes" ; then
4257                if test "$GCC" = "yes" ; then
4258                    hpux_arch=`${CC} -dumpmachine`
4259                    case $hpux_arch in
4260                        hppa64*)
4261                            # 64-bit gcc in use.  Fix flags for GNU ld.
4262                            do64bit_ok=yes
4263                            SHLIB_LD="${CC} -shared"
4264                            SHLIB_LD_LIBS='${LIBS}'
4265                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4266                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4267                            ;;
4268                        *)
4269                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4270$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4271                            ;;
4272                    esac
4273                else
4274                    do64bit_ok=yes
4275                    CFLAGS="$CFLAGS +DD64"
4276                    LDFLAGS="$LDFLAGS +DD64"
4277                fi
4278            fi
4279            ;;
4280        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4281            SHLIB_SUFFIX=".sl"
4282            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4283$as_echo_n "checking for shl_load in -ldld... " >&6; }
4284if ${ac_cv_lib_dld_shl_load+:} false; then :
4285  $as_echo_n "(cached) " >&6
4286else
4287  ac_check_lib_save_LIBS=$LIBS
4288LIBS="-ldld  $LIBS"
4289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292/* Override any GCC internal prototype to avoid an error.
4293   Use char because int might match the return type of a GCC
4294   builtin and then its argument prototype would still apply.  */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298char shl_load ();
4299int
4300main ()
4301{
4302return shl_load ();
4303  ;
4304  return 0;
4305}
4306_ACEOF
4307if ac_fn_c_try_link "$LINENO"; then :
4308  ac_cv_lib_dld_shl_load=yes
4309else
4310  ac_cv_lib_dld_shl_load=no
4311fi
4312rm -f core conftest.err conftest.$ac_objext \
4313    conftest$ac_exeext conftest.$ac_ext
4314LIBS=$ac_check_lib_save_LIBS
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4317$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4318if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4319  tcl_ok=yes
4320else
4321  tcl_ok=no
4322fi
4323
4324            if test "$tcl_ok" = yes; then
4325                SHLIB_CFLAGS="+z"
4326                SHLIB_LD="ld -b"
4327                SHLIB_LD_LIBS=""
4328                DL_OBJS="tclLoadShl.o"
4329                DL_LIBS="-ldld"
4330                LDFLAGS="$LDFLAGS -Wl,-E"
4331                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4332                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4333                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4334            fi
4335            ;;
4336        IRIX-4.*)
4337            SHLIB_CFLAGS="-G 0"
4338            SHLIB_SUFFIX=".a"
4339            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4340            SHLIB_LD_LIBS='${LIBS}'
4341            DL_OBJS="tclLoadAout.o"
4342            DL_LIBS=""
4343            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4344            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4345            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4346            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
4347            ;;
4348        IRIX-5.*)
4349            SHLIB_CFLAGS=""
4350            SHLIB_LD="ld -shared -rdata_shared"
4351            SHLIB_LD_LIBS='${LIBS}'
4352            SHLIB_SUFFIX=".so"
4353            DL_OBJS="tclLoadDl.o"
4354            DL_LIBS=""
4355            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4356            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4357            ;;
4358        IRIX-6.*)
4359            SHLIB_CFLAGS=""
4360            SHLIB_LD="ld -n32 -shared -rdata_shared"
4361            SHLIB_LD_LIBS='${LIBS}'
4362            SHLIB_SUFFIX=".so"
4363            DL_OBJS="tclLoadDl.o"
4364            DL_LIBS=""
4365            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4366            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4367            if test "$GCC" = "yes" ; then
4368                CFLAGS="$CFLAGS -mabi=n32"
4369                LDFLAGS="$LDFLAGS -mabi=n32"
4370            else
4371                case $system in
4372                    IRIX-6.3)
4373                        # Use to build 6.2 compatible binaries on 6.3.
4374                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4375                        ;;
4376                    *)
4377                        CFLAGS="$CFLAGS -n32"
4378                        ;;
4379                esac
4380                LDFLAGS="$LDFLAGS -n32"
4381            fi
4382            ;;
4383        IRIX64-6.*)
4384            SHLIB_CFLAGS=""
4385            SHLIB_LD="ld -n32 -shared -rdata_shared"
4386            SHLIB_LD_LIBS='${LIBS}'
4387            SHLIB_SUFFIX=".so"
4388            DL_OBJS="tclLoadDl.o"
4389            DL_LIBS=""
4390            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4391            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4392
4393            # Check to enable 64-bit flags for compiler/linker
4394
4395            if test "$do64bit" = "yes" ; then
4396                if test "$GCC" = "yes" ; then
4397                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4398$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4399                else
4400                    do64bit_ok=yes
4401                    SHLIB_LD="ld -64 -shared -rdata_shared"
4402                    CFLAGS="$CFLAGS -64"
4403                    LDFLAGS="$LDFLAGS -64"
4404                fi
4405            fi
4406            ;;
4407        Linux*)
4408            SHLIB_CFLAGS="-fPIC"
4409            SHLIB_LD_LIBS='${LIBS}'
4410            SHLIB_SUFFIX=".so"
4411
4412            CFLAGS_OPTIMIZE=-O2
4413            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4414            # when you inline the string and math operations.  Turn this off to
4415            # get rid of the warnings.
4416            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4417
4418            if test "$have_dl" = yes; then
4419                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
4420                DL_OBJS="tclLoadDl.o"
4421                DL_LIBS="-ldl"
4422                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4423                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4424                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4425            else
4426                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4427if test "x$ac_cv_header_dld_h" = xyes; then :
4428
4429                    SHLIB_LD="ld -shared"
4430                    DL_OBJS="tclLoadDld.o"
4431                    DL_LIBS="-ldld"
4432                    CC_SEARCH_FLAGS=""
4433                    LD_SEARCH_FLAGS=""
4434fi
4435
4436
4437            fi
4438            if test "`uname -m`" = "alpha" ; then
4439                CFLAGS="$CFLAGS -mieee"
4440            fi
4441            if test $do64bit = yes; then
4442                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4443$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4444if ${tcl_cv_cc_m64+:} false; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447
4448                    hold_cflags=$CFLAGS
4449                    CFLAGS="$CFLAGS -m64"
4450                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452
4453int
4454main ()
4455{
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_link "$LINENO"; then :
4462  tcl_cv_cc_m64=yes
4463else
4464  tcl_cv_cc_m64=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext \
4467    conftest$ac_exeext conftest.$ac_ext
4468                    CFLAGS=$hold_cflags
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4471$as_echo "$tcl_cv_cc_m64" >&6; }
4472                if test $tcl_cv_cc_m64 = yes; then
4473                    CFLAGS="$CFLAGS -m64"
4474                    do64bit_ok=yes
4475                fi
4476            fi
4477
4478            # The combo of gcc + glibc has a bug related
4479            # to inlining of functions like strtod(). The
4480            # -fno-builtin flag should address this problem
4481            # but it does not work. The -fno-inline flag
4482            # is kind of overkill but it works.
4483            # Disable inlining only when one of the
4484            # files in compat/*.c is being linked in.
4485            if test x"${LIBOBJS}" != x ; then
4486                CFLAGS="$CFLAGS -fno-inline"
4487            fi
4488
4489            # XIM peeking works under XFree86.
4490            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
4491
4492
4493            ;;
4494        GNU*)
4495            SHLIB_CFLAGS="-fPIC"
4496            SHLIB_LD_LIBS='${LIBS}'
4497            SHLIB_SUFFIX=".so"
4498
4499            if test "$have_dl" = yes; then
4500                SHLIB_LD="${CC} -shared"
4501                DL_OBJS=""
4502                DL_LIBS="-ldl"
4503                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4504                CC_SEARCH_FLAGS=""
4505                LD_SEARCH_FLAGS=""
4506            else
4507                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4508if test "x$ac_cv_header_dld_h" = xyes; then :
4509
4510                    SHLIB_LD="ld -shared"
4511                    DL_OBJS=""
4512                    DL_LIBS="-ldld"
4513                    CC_SEARCH_FLAGS=""
4514                    LD_SEARCH_FLAGS=""
4515fi
4516
4517
4518            fi
4519            if test "`uname -m`" = "alpha" ; then
4520                CFLAGS="$CFLAGS -mieee"
4521            fi
4522            ;;
4523        Lynx*)
4524            SHLIB_CFLAGS="-fPIC"
4525            SHLIB_LD_LIBS='${LIBS}'
4526            SHLIB_SUFFIX=".so"
4527            CFLAGS_OPTIMIZE=-02
4528            SHLIB_LD="${CC} -shared "
4529            DL_OBJS="tclLoadDl.o"
4530            DL_LIBS="-mshared -ldl"
4531            LD_FLAGS="-Wl,--export-dynamic"
4532            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4533            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4534            ;;
4535        MP-RAS-02*)
4536            SHLIB_CFLAGS="-K PIC"
4537            SHLIB_LD="cc -G"
4538            SHLIB_LD_LIBS=""
4539            SHLIB_SUFFIX=".so"
4540            DL_OBJS="tclLoadDl.o"
4541            DL_LIBS="-ldl"
4542            CC_SEARCH_FLAGS=""
4543            LD_SEARCH_FLAGS=""
4544            ;;
4545        MP-RAS-*)
4546            SHLIB_CFLAGS="-K PIC"
4547            SHLIB_LD="cc -G"
4548            SHLIB_LD_LIBS=""
4549            SHLIB_SUFFIX=".so"
4550            DL_OBJS="tclLoadDl.o"
4551            DL_LIBS="-ldl"
4552            LDFLAGS="$LDFLAGS -Wl,-Bexport"
4553            CC_SEARCH_FLAGS=""
4554            LD_SEARCH_FLAGS=""
4555            ;;
4556        NetBSD-*|FreeBSD-[1-2].*)
4557            # Not available on all versions:  check for include file.
4558            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4559if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4560
4561                # NetBSD/SPARC needs -fPIC, -fpic will not do.
4562                SHLIB_CFLAGS="-fPIC"
4563                SHLIB_LD="ld -Bshareable -x"
4564                SHLIB_LD_LIBS='${LIBS}'
4565                SHLIB_SUFFIX=".so"
4566                DL_OBJS="tclLoadDl.o"
4567                DL_LIBS=""
4568                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4569                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4570                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4571$as_echo_n "checking for ELF... " >&6; }
4572if ${tcl_cv_ld_elf+:} false; then :
4573  $as_echo_n "(cached) " >&6
4574else
4575
4576                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577/* end confdefs.h.  */
4578
4579#ifdef __ELF__
4580        yes
4581#endif
4582
4583_ACEOF
4584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585  $EGREP "yes" >/dev/null 2>&1; then :
4586  tcl_cv_ld_elf=yes
4587else
4588  tcl_cv_ld_elf=no
4589fi
4590rm -f conftest*
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4594$as_echo "$tcl_cv_ld_elf" >&6; }
4595                if test $tcl_cv_ld_elf = yes; then
4596                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4597                else
4598                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4599                fi
4600
4601else
4602
4603                SHLIB_CFLAGS=""
4604                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4605                SHLIB_LD_LIBS='${LIBS}'
4606                SHLIB_SUFFIX=".a"
4607                DL_OBJS="tclLoadAout.o"
4608                DL_LIBS=""
4609                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4610                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4611                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4612
4613fi
4614
4615
4616
4617            # FreeBSD doesn't handle version numbers with dots.
4618
4619            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4620            TCL_LIB_VERSIONS_OK=nodots
4621            ;;
4622        OpenBSD-*)
4623            case `arch -s` in
4624            m88k|vax)
4625                SHLIB_CFLAGS=""
4626                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4627                SHLIB_LD_LIBS='${LIBS}'
4628                SHLIB_SUFFIX=".a"
4629                DL_OBJS="tclLoadAout.o"
4630                DL_LIBS=""
4631                LDFLAGS=""
4632                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4633                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4634                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4635                ;;
4636            *)
4637                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
4638                case `machine` in
4639                sparc|sparc64)
4640                    SHLIB_CFLAGS="-fPIC";;
4641                *)
4642                    SHLIB_CFLAGS="-fpic";;
4643                esac
4644                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
4645                SHLIB_LD_LIBS='${LIBS}'
4646                SHLIB_SUFFIX=".so"
4647                DL_OBJS="tclLoadDl.o"
4648                DL_LIBS=""
4649                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4650                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4651                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4652                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4653$as_echo_n "checking for ELF... " >&6; }
4654if ${tcl_cv_ld_elf+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657
4658                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h.  */
4660
4661#ifdef __ELF__
4662        yes
4663#endif
4664
4665_ACEOF
4666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667  $EGREP "yes" >/dev/null 2>&1; then :
4668  tcl_cv_ld_elf=yes
4669else
4670  tcl_cv_ld_elf=no
4671fi
4672rm -f conftest*
4673
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4676$as_echo "$tcl_cv_ld_elf" >&6; }
4677                if test $tcl_cv_ld_elf = yes; then
4678                    LDFLAGS=-Wl,-export-dynamic
4679                else
4680                    LDFLAGS=""
4681                fi
4682                ;;
4683            esac
4684
4685            # OpenBSD doesn't do version numbers with dots.
4686            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4687            TCL_LIB_VERSIONS_OK=nodots
4688            ;;
4689        FreeBSD-*)
4690            # FreeBSD 3.* and greater have ELF.
4691            SHLIB_CFLAGS="-fPIC"
4692            SHLIB_LD="ld -Bshareable -x"
4693            SHLIB_LD_LIBS='${LIBS}'
4694            SHLIB_SUFFIX=".so"
4695            DL_OBJS="tclLoadDl.o"
4696            DL_LIBS=""
4697            LDFLAGS="$LDFLAGS -export-dynamic"
4698            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4699            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4700            if test "${TCL_THREADS}" = "1" ; then
4701                # The -pthread needs to go in the CFLAGS, not LIBS
4702                LIBS=`echo $LIBS | sed s/-pthread//`
4703                CFLAGS="$CFLAGS -pthread"
4704                LDFLAGS="$LDFLAGS -pthread"
4705            fi
4706            case $system in
4707            FreeBSD-3.*)
4708                # FreeBSD-3 doesn't handle version numbers with dots.
4709                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4710                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4711                TCL_LIB_VERSIONS_OK=nodots
4712                ;;
4713            esac
4714            ;;
4715        Darwin-*)
4716            CFLAGS_OPTIMIZE="-Os"
4717            SHLIB_CFLAGS="-fno-common"
4718            # To avoid discrepancies between what headers configure sees during
4719            # preprocessing tests and compiling tests, move any -isysroot and
4720            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
4721            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
4722                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4723                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
4724            CFLAGS="`echo " ${CFLAGS}" | \
4725                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4726                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
4727            if test $do64bit = yes; then
4728                case `arch` in
4729                    ppc)
4730                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
4731$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
4732if ${tcl_cv_cc_arch_ppc64+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735
4736                            hold_cflags=$CFLAGS
4737                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4738                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740
4741int
4742main ()
4743{
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_link "$LINENO"; then :
4750  tcl_cv_cc_arch_ppc64=yes
4751else
4752  tcl_cv_cc_arch_ppc64=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext \
4755    conftest$ac_exeext conftest.$ac_ext
4756                            CFLAGS=$hold_cflags
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
4759$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
4760                        if test $tcl_cv_cc_arch_ppc64 = yes; then
4761                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4762                            do64bit_ok=yes
4763                        fi;;
4764                    i386)
4765                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
4766$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
4767if ${tcl_cv_cc_arch_x86_64+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770
4771                            hold_cflags=$CFLAGS
4772                            CFLAGS="$CFLAGS -arch x86_64"
4773                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775
4776int
4777main ()
4778{
4779
4780  ;
4781  return 0;
4782}
4783_ACEOF
4784if ac_fn_c_try_link "$LINENO"; then :
4785  tcl_cv_cc_arch_x86_64=yes
4786else
4787  tcl_cv_cc_arch_x86_64=no
4788fi
4789rm -f core conftest.err conftest.$ac_objext \
4790    conftest$ac_exeext conftest.$ac_ext
4791                            CFLAGS=$hold_cflags
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
4794$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
4795                        if test $tcl_cv_cc_arch_x86_64 = yes; then
4796                            CFLAGS="$CFLAGS -arch x86_64"
4797                            do64bit_ok=yes
4798                        fi;;
4799                    *)
4800                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
4801$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
4802                esac
4803            else
4804                # Check for combined 32-bit and 64-bit fat build
4805                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
4806                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
4807                    fat_32_64=yes
4808            fi
4809            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
4810            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
4811$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
4812if ${tcl_cv_ld_single_module+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815
4816                hold_ldflags=$LDFLAGS
4817                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
4818                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820
4821int
4822main ()
4823{
4824int i;
4825  ;
4826  return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_link "$LINENO"; then :
4830  tcl_cv_ld_single_module=yes
4831else
4832  tcl_cv_ld_single_module=no
4833fi
4834rm -f core conftest.err conftest.$ac_objext \
4835    conftest$ac_exeext conftest.$ac_ext
4836                LDFLAGS=$hold_ldflags
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
4839$as_echo "$tcl_cv_ld_single_module" >&6; }
4840            if test $tcl_cv_ld_single_module = yes; then
4841                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
4842            fi
4843            SHLIB_LD_LIBS='${LIBS}'
4844            SHLIB_SUFFIX=".dylib"
4845            DL_OBJS="tclLoadDyld.o"
4846            DL_LIBS=""
4847            # Don't use -prebind when building for Mac OS X 10.4 or later only:
4848            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
4849                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
4850                LDFLAGS="$LDFLAGS -prebind"
4851            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
4852            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
4853$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
4854if ${tcl_cv_ld_search_paths_first+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857
4858                hold_ldflags=$LDFLAGS
4859                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4860                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h.  */
4862
4863int
4864main ()
4865{
4866int i;
4867  ;
4868  return 0;
4869}
4870_ACEOF
4871if ac_fn_c_try_link "$LINENO"; then :
4872  tcl_cv_ld_search_paths_first=yes
4873else
4874  tcl_cv_ld_search_paths_first=no
4875fi
4876rm -f core conftest.err conftest.$ac_objext \
4877    conftest$ac_exeext conftest.$ac_ext
4878                LDFLAGS=$hold_ldflags
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
4881$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
4882            if test $tcl_cv_ld_search_paths_first = yes; then
4883                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4884            fi
4885            CC_SEARCH_FLAGS=""
4886            LD_SEARCH_FLAGS=""
4887            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
4888            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
4889            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
4890            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
4891$as_echo_n "checking whether to use CoreFoundation... " >&6; }
4892            # Check whether --enable-corefoundation was given.
4893if test "${enable_corefoundation+set}" = set; then :
4894  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
4895else
4896  tcl_corefoundation=yes
4897fi
4898
4899            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
4900$as_echo "$tcl_corefoundation" >&6; }
4901            if test $tcl_corefoundation = yes; then
4902                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
4903$as_echo_n "checking for CoreFoundation.framework... " >&6; }
4904if ${tcl_cv_lib_corefoundation+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907
4908                    hold_libs=$LIBS
4909                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4910                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
4911                        # from CFLAGS et al. while testing for presence of CF.
4912                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
4913                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
4914                    done; fi
4915                    LIBS="$LIBS -framework CoreFoundation"
4916                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918#include <CoreFoundation/CoreFoundation.h>
4919int
4920main ()
4921{
4922CFBundleRef b = CFBundleGetMainBundle();
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_link "$LINENO"; then :
4928  tcl_cv_lib_corefoundation=yes
4929else
4930  tcl_cv_lib_corefoundation=no
4931fi
4932rm -f core conftest.err conftest.$ac_objext \
4933    conftest$ac_exeext conftest.$ac_ext
4934                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4935                        eval $v'="$hold_'$v'"'
4936                    done; fi; LIBS=$hold_libs
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
4939$as_echo "$tcl_cv_lib_corefoundation" >&6; }
4940                if test $tcl_cv_lib_corefoundation = yes; then
4941                    LIBS="$LIBS -framework CoreFoundation"
4942                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
4943
4944                else
4945                    tcl_corefoundation=no
4946                fi
4947                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
4948                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
4949$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
4950if ${tcl_cv_lib_corefoundation_64+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953
4954                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4955                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
4956                        done
4957                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959#include <CoreFoundation/CoreFoundation.h>
4960int
4961main ()
4962{
4963CFBundleRef b = CFBundleGetMainBundle();
4964  ;
4965  return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_link "$LINENO"; then :
4969  tcl_cv_lib_corefoundation_64=yes
4970else
4971  tcl_cv_lib_corefoundation_64=no
4972fi
4973rm -f core conftest.err conftest.$ac_objext \
4974    conftest$ac_exeext conftest.$ac_ext
4975                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4976                            eval $v'="$hold_'$v'"'
4977                        done
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
4980$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
4981                    if test $tcl_cv_lib_corefoundation_64 = no; then
4982                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
4983
4984                    fi
4985                fi
4986            fi
4987            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
4988
4989            ;;
4990        NEXTSTEP-*)
4991            SHLIB_CFLAGS=""
4992            SHLIB_LD="cc -nostdlib -r"
4993            SHLIB_LD_LIBS=""
4994            SHLIB_SUFFIX=".so"
4995            DL_OBJS="tclLoadNext.o"
4996            DL_LIBS=""
4997            CC_SEARCH_FLAGS=""
4998            LD_SEARCH_FLAGS=""
4999            ;;
5000        OS/390-*)
5001            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
5002            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
5003        # needed in sys/socket.h
5004            ;;
5005        OSF1-1.0|OSF1-1.1|OSF1-1.2)
5006            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
5007            SHLIB_CFLAGS=""
5008            # Hack: make package name same as library name
5009            SHLIB_LD='ld -R -export :'
5010            SHLIB_LD_LIBS=""
5011            SHLIB_SUFFIX=".so"
5012            DL_OBJS="tclLoadOSF.o"
5013            DL_LIBS=""
5014            CC_SEARCH_FLAGS=""
5015            LD_SEARCH_FLAGS=""
5016            ;;
5017        OSF1-1.*)
5018            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
5019            SHLIB_CFLAGS="-fPIC"
5020            if test "$SHARED_BUILD" = "1" ; then
5021                SHLIB_LD="ld -shared"
5022            else
5023                SHLIB_LD="ld -non_shared"
5024            fi
5025            SHLIB_LD_LIBS=""
5026            SHLIB_SUFFIX=".so"
5027            DL_OBJS="tclLoadDl.o"
5028            DL_LIBS=""
5029            CC_SEARCH_FLAGS=""
5030            LD_SEARCH_FLAGS=""
5031            ;;
5032        OSF1-V*)
5033            # Digital OSF/1
5034            SHLIB_CFLAGS=""
5035            if test "$SHARED_BUILD" = "1" ; then
5036                SHLIB_LD='ld -shared -expect_unresolved "*"'
5037            else
5038                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
5039            fi
5040            SHLIB_LD_LIBS=""
5041            SHLIB_SUFFIX=".so"
5042            DL_OBJS="tclLoadDl.o"
5043            DL_LIBS=""
5044            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
5045            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
5046            if test "$GCC" = "yes" ; then
5047                CFLAGS="$CFLAGS -mieee"
5048            else
5049                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
5050            fi
5051            # see pthread_intro(3) for pthread support on osf1, k.furukawa
5052            if test "${TCL_THREADS}" = "1" ; then
5053                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
5054                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
5055                LIBS=`echo $LIBS | sed s/-lpthreads//`
5056                if test "$GCC" = "yes" ; then
5057                    LIBS="$LIBS -lpthread -lmach -lexc"
5058                else
5059                    CFLAGS="$CFLAGS -pthread"
5060                    LDFLAGS="$LDFLAGS -pthread"
5061                fi
5062            fi
5063
5064            ;;
5065        QNX-6*)
5066            # QNX RTP
5067            # This may work for all QNX, but it was only reported for v6.
5068            SHLIB_CFLAGS="-fPIC"
5069            SHLIB_LD="ld -Bshareable -x"
5070            SHLIB_LD_LIBS=""
5071            SHLIB_SUFFIX=".so"
5072            DL_OBJS="tclLoadDl.o"
5073            # dlopen is in -lc on QNX
5074            DL_LIBS=""
5075            CC_SEARCH_FLAGS=""
5076            LD_SEARCH_FLAGS=""
5077            ;;
5078        RISCos-*)
5079            SHLIB_CFLAGS="-G 0"
5080            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5081            SHLIB_LD_LIBS='${LIBS}'
5082            SHLIB_SUFFIX=".a"
5083            DL_OBJS="tclLoadAout.o"
5084            DL_LIBS=""
5085            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5086            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5087            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5088            ;;
5089        SCO_SV-3.2*)
5090            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5091            # this test works, since "uname -s" was non-standard in 3.2.4 and
5092            # below.
5093            if test "$GCC" = "yes" ; then
5094                SHLIB_CFLAGS="-fPIC -melf"
5095                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
5096            else
5097                SHLIB_CFLAGS="-Kpic -belf"
5098                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
5099            fi
5100            SHLIB_LD="ld -G"
5101            SHLIB_LD_LIBS=""
5102            SHLIB_SUFFIX=".so"
5103            DL_OBJS="tclLoadDl.o"
5104            DL_LIBS=""
5105            CC_SEARCH_FLAGS=""
5106            LD_SEARCH_FLAGS=""
5107            ;;
5108        SINIX*5.4*)
5109            SHLIB_CFLAGS="-K PIC"
5110            SHLIB_LD="cc -G"
5111            SHLIB_LD_LIBS=""
5112            SHLIB_SUFFIX=".so"
5113            DL_OBJS="tclLoadDl.o"
5114            DL_LIBS="-ldl"
5115            CC_SEARCH_FLAGS=""
5116            LD_SEARCH_FLAGS=""
5117            ;;
5118        SunOS-4*)
5119            SHLIB_CFLAGS="-PIC"
5120            SHLIB_LD="ld"
5121            SHLIB_LD_LIBS=""
5122            SHLIB_SUFFIX=".so"
5123            DL_OBJS="tclLoadDl.o"
5124            DL_LIBS="-ldl"
5125            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5126            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5127
5128            # SunOS can't handle version numbers with dots in them in library
5129            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
5130            # requires an extra version number at the end of .so file names.
5131            # So, the library has to have a name like libtcl75.so.1.0
5132
5133            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
5134            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
5135            TCL_LIB_VERSIONS_OK=nodots
5136            ;;
5137        SunOS-5.[0-6])
5138            # Careful to not let 5.10+ fall into this case
5139
5140            # Note: If _REENTRANT isn't defined, then Solaris
5141            # won't define thread-safe library routines.
5142
5143            $as_echo "#define _REENTRANT 1" >>confdefs.h
5144
5145            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5146
5147
5148            SHLIB_CFLAGS="-KPIC"
5149
5150            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5151            # symbols when dynamically loaded into tclsh.
5152
5153            SHLIB_LD_LIBS='${LIBS}'
5154            SHLIB_SUFFIX=".so"
5155            DL_OBJS="tclLoadDl.o"
5156            DL_LIBS="-ldl"
5157            if test "$GCC" = "yes" ; then
5158                SHLIB_LD="$CC -shared"
5159                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5160                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5161            else
5162                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5163                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5164                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5165            fi
5166            ;;
5167        SunOS-5*)
5168            # Note: If _REENTRANT isn't defined, then Solaris
5169            # won't define thread-safe library routines.
5170
5171            $as_echo "#define _REENTRANT 1" >>confdefs.h
5172
5173            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5174
5175
5176            SHLIB_CFLAGS="-KPIC"
5177
5178            # Check to enable 64-bit flags for compiler/linker
5179            if test "$do64bit" = "yes" ; then
5180                arch=`isainfo`
5181                if test "$arch" = "sparcv9 sparc" ; then
5182                        if test "$GCC" = "yes" ; then
5183                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
5184                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5185$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5186                            else
5187                                do64bit_ok=yes
5188                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
5189                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5190                                SHLIB_CFLAGS="-fPIC"
5191                            fi
5192                        else
5193                            do64bit_ok=yes
5194                            if test "$do64bitVIS" = "yes" ; then
5195                                CFLAGS="$CFLAGS -xarch=v9a"
5196                                LDFLAGS="$LDFLAGS -xarch=v9a"
5197                            else
5198                                CFLAGS="$CFLAGS -xarch=v9"
5199                                LDFLAGS="$LDFLAGS -xarch=v9"
5200                            fi
5201                            # Solaris 64 uses this as well
5202                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5203                        fi
5204                elif test "$arch" = "amd64 i386" ; then
5205                    if test "$GCC" = "yes" ; then
5206                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5207$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5208                    else
5209                        do64bit_ok=yes
5210                        CFLAGS="$CFLAGS -xarch=amd64"
5211                        LDFLAGS="$LDFLAGS -xarch=amd64"
5212                    fi
5213                else
5214                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5215$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5216                fi
5217            fi
5218
5219            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5220            # symbols when dynamically loaded into tclsh.
5221
5222            SHLIB_LD_LIBS='${LIBS}'
5223            SHLIB_SUFFIX=".so"
5224            DL_OBJS="tclLoadDl.o"
5225            DL_LIBS="-ldl"
5226            if test "$GCC" = "yes" ; then
5227                SHLIB_LD="$CC -shared"
5228                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5229                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5230                if test "$do64bit_ok" = "yes" ; then
5231                    # We need to specify -static-libgcc or we need to
5232                    # add the path to the sparv9 libgcc.
5233                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5234                    # for finding sparcv9 libgcc, get the regular libgcc
5235                    # path, remove so name and append 'sparcv9'
5236                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5237                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5238                fi
5239            else
5240                case $system in
5241                    SunOS-5.[1-9][0-9]*)
5242                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
5243                    *)
5244                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
5245                esac
5246                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5247                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5248            fi
5249            ;;
5250        ULTRIX-4.*)
5251            SHLIB_CFLAGS="-G 0"
5252            SHLIB_SUFFIX=".a"
5253            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5254            SHLIB_LD_LIBS='${LIBS}'
5255            DL_OBJS="tclLoadAout.o"
5256            DL_LIBS=""
5257            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5258            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5259            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5260            if test "$GCC" != "yes" ; then
5261                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
5262            fi
5263            ;;
5264        UNIX_SV* | UnixWare-5*)
5265            SHLIB_CFLAGS="-KPIC"
5266            SHLIB_LD="cc -G"
5267            SHLIB_LD_LIBS=""
5268            SHLIB_SUFFIX=".so"
5269            DL_OBJS="tclLoadDl.o"
5270            DL_LIBS="-ldl"
5271            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5272            # that don't grok the -Bexport option.  Test that it does.
5273            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5274$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5275if ${tcl_cv_ld_Bexport+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278
5279                hold_ldflags=$LDFLAGS
5280                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5281                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283
5284int
5285main ()
5286{
5287int i;
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_link "$LINENO"; then :
5293  tcl_cv_ld_Bexport=yes
5294else
5295  tcl_cv_ld_Bexport=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext \
5298    conftest$ac_exeext conftest.$ac_ext
5299                LDFLAGS=$hold_ldflags
5300fi
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5302$as_echo "$tcl_cv_ld_Bexport" >&6; }
5303            if test $tcl_cv_ld_Bexport = yes; then
5304                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5305            fi
5306            CC_SEARCH_FLAGS=""
5307            LD_SEARCH_FLAGS=""
5308            ;;
5309    esac
5310
5311    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
5312        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5313$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5314    fi
5315
5316
5317
5318
5319    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
5320    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
5321    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
5322    # to determine which of several header files defines the a.out file
5323    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
5324    # support only a file format that is more or less version-7-compatible.
5325    # In particular,
5326    #   - a.out files must begin with `struct exec'.
5327    #   - the N_TXTOFF on the `struct exec' must compute the seek address
5328    #     of the text segment
5329    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
5330    #     and a_entry fields.
5331    # The following compilation should succeed if and only if either sys/exec.h
5332    # or a.out.h is usable for the purpose.
5333    #
5334    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
5335    # `struct exec' includes a second header that contains information that
5336    # duplicates the v7 fields that are needed.
5337
5338    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
5339        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
5340$as_echo_n "checking sys/exec.h... " >&6; }
5341if ${tcl_cv_sysexec_h+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344
5345        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347#include <sys/exec.h>
5348int
5349main ()
5350{
5351
5352            struct exec foo;
5353            unsigned long seek;
5354            int flag;
5355#if defined(__mips) || defined(mips)
5356            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5357#else
5358            seek = N_TXTOFF (foo);
5359#endif
5360            flag = (foo.a_magic == OMAGIC);
5361            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5362
5363  ;
5364  return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368  tcl_cv_sysexec_h=usable
5369else
5370  tcl_cv_sysexec_h=unusable
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
5375$as_echo "$tcl_cv_sysexec_h" >&6; }
5376        if test $tcl_cv_sysexec_h = usable; then
5377            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
5378
5379        else
5380            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
5381$as_echo_n "checking a.out.h... " >&6; }
5382if ${tcl_cv_aout_h+:} false; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385
5386            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388#include <a.out.h>
5389int
5390main ()
5391{
5392
5393                struct exec foo;
5394                unsigned long seek;
5395                int flag;
5396#if defined(__mips) || defined(mips)
5397                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5398#else
5399                seek = N_TXTOFF (foo);
5400#endif
5401                flag = (foo.a_magic == OMAGIC);
5402                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5403
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_compile "$LINENO"; then :
5409  tcl_cv_aout_h=usable
5410else
5411  tcl_cv_aout_h=unusable
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
5416$as_echo "$tcl_cv_aout_h" >&6; }
5417            if test $tcl_cv_aout_h = usable; then
5418                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
5419
5420            else
5421                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
5422$as_echo_n "checking sys/exec_aout.h... " >&6; }
5423if ${tcl_cv_sysexecaout_h+:} false; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426
5427                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429#include <sys/exec_aout.h>
5430int
5431main ()
5432{
5433
5434                    struct exec foo;
5435                    unsigned long seek;
5436                    int flag;
5437#if defined(__mips) || defined(mips)
5438                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5439#else
5440                    seek = N_TXTOFF (foo);
5441#endif
5442                    flag = (foo.a_midmag == OMAGIC);
5443                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450  tcl_cv_sysexecaout_h=usable
5451else
5452  tcl_cv_sysexecaout_h=unusable
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
5457$as_echo "$tcl_cv_sysexecaout_h" >&6; }
5458                if test $tcl_cv_sysexecaout_h = usable; then
5459                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
5460
5461                else
5462                    DL_OBJS=""
5463                fi
5464            fi
5465        fi
5466    fi
5467
5468    # Step 5: disable dynamic loading if requested via a command-line switch.
5469
5470    # Check whether --enable-load was given.
5471if test "${enable_load+set}" = set; then :
5472  enableval=$enable_load; tcl_ok=$enableval
5473else
5474  tcl_ok=yes
5475fi
5476
5477    if test "$tcl_ok" = "no"; then
5478        DL_OBJS=""
5479    fi
5480
5481    if test "x$DL_OBJS" != "x" ; then
5482        BUILD_DLTEST="\$(DLTEST_TARGETS)"
5483    else
5484        echo "Can't figure out how to do dynamic loading or shared libraries"
5485        echo "on this system."
5486        SHLIB_CFLAGS=""
5487        SHLIB_LD=""
5488        SHLIB_SUFFIX=""
5489        DL_OBJS="tclLoadNone.o"
5490        DL_LIBS=""
5491        LDFLAGS="$LDFLAGS_ORIG"
5492        CC_SEARCH_FLAGS=""
5493        LD_SEARCH_FLAGS=""
5494        BUILD_DLTEST=""
5495    fi
5496
5497    # If we're running gcc, then change the C flags for compiling shared
5498    # libraries to the right flags for gcc, instead of those for the
5499    # standard manufacturer compiler.
5500
5501    if test "$DL_OBJS" != "tclLoadNone.o" ; then
5502        if test "$GCC" = "yes" ; then
5503            case $system in
5504                AIX-*)
5505                    ;;
5506                BSD/OS*)
5507                    ;;
5508                IRIX*)
5509                    ;;
5510                NetBSD-*|FreeBSD-*|OpenBSD-*)
5511                    ;;
5512                Darwin-*)
5513                    ;;
5514                RISCos-*)
5515                    ;;
5516                SCO_SV-3.2*)
5517                    ;;
5518                ULTRIX-4.*)
5519                    ;;
5520                *)
5521                    SHLIB_CFLAGS="-fPIC"
5522                    ;;
5523            esac
5524        fi
5525    fi
5526
5527    if test "$SHARED_LIB_SUFFIX" = "" ; then
5528        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
5529    fi
5530    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
5531        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
5532    fi
5533
5534    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
5535        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5536        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5537        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5538    else
5539        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5540
5541        if test "$RANLIB" = "" ; then
5542            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5543            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5544        else
5545            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5546            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
5547        fi
5548
5549    fi
5550
5551
5552    # Stub lib does not depend on shared/static configuration
5553    if test "$RANLIB" = "" ; then
5554        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5555        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
5556    else
5557        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5558        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
5559    fi
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5594$as_echo_n "checking for X... " >&6; }
5595
5596
5597# Check whether --with-x was given.
5598if test "${with_x+set}" = set; then :
5599  withval=$with_x;
5600fi
5601
5602# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5603if test "x$with_x" = xno; then
5604  # The user explicitly disabled X.
5605  have_x=disabled
5606else
5607  case $x_includes,$x_libraries in #(
5608    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5609    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  # One or both of the vars are not set, and there is no cached value.
5613ac_x_includes=no ac_x_libraries=no
5614rm -f -r conftest.dir
5615if mkdir conftest.dir; then
5616  cd conftest.dir
5617  cat >Imakefile <<'_ACEOF'
5618incroot:
5619        @echo incroot='${INCROOT}'
5620usrlibdir:
5621        @echo usrlibdir='${USRLIBDIR}'
5622libdir:
5623        @echo libdir='${LIBDIR}'
5624_ACEOF
5625  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5626    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5627    for ac_var in incroot usrlibdir libdir; do
5628      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5629    done
5630    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5631    for ac_extension in a so sl dylib la dll; do
5632      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5633         test -f "$ac_im_libdir/libX11.$ac_extension"; then
5634        ac_im_usrlibdir=$ac_im_libdir; break
5635      fi
5636    done
5637    # Screen out bogus values from the imake configuration.  They are
5638    # bogus both because they are the default anyway, and because
5639    # using them would break gcc on systems where it needs fixed includes.
5640    case $ac_im_incroot in
5641        /usr/include) ac_x_includes= ;;
5642        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5643    esac
5644    case $ac_im_usrlibdir in
5645        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5646        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5647    esac
5648  fi
5649  cd ..
5650  rm -f -r conftest.dir
5651fi
5652
5653# Standard set of common directories for X headers.
5654# Check X11 before X11Rn because it is often a symlink to the current release.
5655ac_x_header_dirs='
5656/usr/X11/include
5657/usr/X11R7/include
5658/usr/X11R6/include
5659/usr/X11R5/include
5660/usr/X11R4/include
5661
5662/usr/include/X11
5663/usr/include/X11R7
5664/usr/include/X11R6
5665/usr/include/X11R5
5666/usr/include/X11R4
5667
5668/usr/local/X11/include
5669/usr/local/X11R7/include
5670/usr/local/X11R6/include
5671/usr/local/X11R5/include
5672/usr/local/X11R4/include
5673
5674/usr/local/include/X11
5675/usr/local/include/X11R7
5676/usr/local/include/X11R6
5677/usr/local/include/X11R5
5678/usr/local/include/X11R4
5679
5680/usr/X386/include
5681/usr/x386/include
5682/usr/XFree86/include/X11
5683
5684/usr/include
5685/usr/local/include
5686/usr/unsupported/include
5687/usr/athena/include
5688/usr/local/x11r5/include
5689/usr/lpp/Xamples/include
5690
5691/usr/openwin/include
5692/usr/openwin/share/include'
5693
5694if test "$ac_x_includes" = no; then
5695  # Guess where to find include files, by looking for Xlib.h.
5696  # First, try using that file with no special directory specified.
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699#include <X11/Xlib.h>
5700_ACEOF
5701if ac_fn_c_try_cpp "$LINENO"; then :
5702  # We can compile using X headers with no special include directory.
5703ac_x_includes=
5704else
5705  for ac_dir in $ac_x_header_dirs; do
5706  if test -r "$ac_dir/X11/Xlib.h"; then
5707    ac_x_includes=$ac_dir
5708    break
5709  fi
5710done
5711fi
5712rm -f conftest.err conftest.i conftest.$ac_ext
5713fi # $ac_x_includes = no
5714
5715if test "$ac_x_libraries" = no; then
5716  # Check for the libraries.
5717  # See if we find them without any special options.
5718  # Don't add to $LIBS permanently.
5719  ac_save_LIBS=$LIBS
5720  LIBS="-lX11 $LIBS"
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723#include <X11/Xlib.h>
5724int
5725main ()
5726{
5727XrmInitialize ()
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_link "$LINENO"; then :
5733  LIBS=$ac_save_LIBS
5734# We can link X programs with no special library path.
5735ac_x_libraries=
5736else
5737  LIBS=$ac_save_LIBS
5738for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5739do
5740  # Don't even attempt the hair of trying to link an X program!
5741  for ac_extension in a so sl dylib la dll; do
5742    if test -r "$ac_dir/libX11.$ac_extension"; then
5743      ac_x_libraries=$ac_dir
5744      break 2
5745    fi
5746  done
5747done
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext conftest.$ac_ext
5751fi # $ac_x_libraries = no
5752
5753case $ac_x_includes,$ac_x_libraries in #(
5754  no,* | *,no | *\'*)
5755    # Didn't find X, or a directory has "'" in its name.
5756    ac_cv_have_x="have_x=no";; #(
5757  *)
5758    # Record where we found X for the cache.
5759    ac_cv_have_x="have_x=yes\
5760        ac_x_includes='$ac_x_includes'\
5761        ac_x_libraries='$ac_x_libraries'"
5762esac
5763fi
5764;; #(
5765    *) have_x=yes;;
5766  esac
5767  eval "$ac_cv_have_x"
5768fi # $with_x != no
5769
5770if test "$have_x" != yes; then
5771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5772$as_echo "$have_x" >&6; }
5773  no_x=yes
5774else
5775  # If each of the values was on the command line, it overrides each guess.
5776  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5777  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5778  # Update the cache value to reflect the command line values.
5779  ac_cv_have_x="have_x=yes\
5780        ac_x_includes='$x_includes'\
5781        ac_x_libraries='$x_libraries'"
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5783$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5784fi
5785
5786
5787# Find a good install program.  We prefer a C program (faster),
5788# so one script is as good as another.  But avoid the broken or
5789# incompatible versions:
5790# SysV /etc/install, /usr/sbin/install
5791# SunOS /usr/etc/install
5792# IRIX /sbin/install
5793# AIX /bin/install
5794# AmigaOS /C/install, which installs bootblocks on floppy discs
5795# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5796# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5797# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5798# OS/2's system install, which has a completely different semantic
5799# ./install, which can be erroneously created by make from ./install.sh.
5800# Reject install programs that cannot install multiple files.
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5802$as_echo_n "checking for a BSD-compatible install... " >&6; }
5803if test -z "$INSTALL"; then
5804if ${ac_cv_path_install+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812    # Account for people who put trailing slashes in PATH elements.
5813case $as_dir/ in #((
5814  ./ | .// | /[cC]/* | \
5815  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5816  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5817  /usr/ucb/* ) ;;
5818  *)
5819    # OSF1 and SCO ODT 3.0 have their own names for install.
5820    # Don't use installbsd from OSF since it installs stuff as root
5821    # by default.
5822    for ac_prog in ginstall scoinst install; do
5823      for ac_exec_ext in '' $ac_executable_extensions; do
5824        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5825          if test $ac_prog = install &&
5826            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5827            # AIX install.  It has an incompatible calling convention.
5828            :
5829          elif test $ac_prog = install &&
5830            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5831            # program-specific install script used by HP pwplus--don't use.
5832            :
5833          else
5834            rm -rf conftest.one conftest.two conftest.dir
5835            echo one > conftest.one
5836            echo two > conftest.two
5837            mkdir conftest.dir
5838            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5839              test -s conftest.one && test -s conftest.two &&
5840              test -s conftest.dir/conftest.one &&
5841              test -s conftest.dir/conftest.two
5842            then
5843              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5844              break 3
5845            fi
5846          fi
5847        fi
5848      done
5849    done
5850    ;;
5851esac
5852
5853  done
5854IFS=$as_save_IFS
5855
5856rm -rf conftest.one conftest.two conftest.dir
5857
5858fi
5859  if test "${ac_cv_path_install+set}" = set; then
5860    INSTALL=$ac_cv_path_install
5861  else
5862    # As a last resort, use the slow shell script.  Don't cache a
5863    # value for INSTALL within a source directory, because that will
5864    # break other packages using the cache if that directory is
5865    # removed, or if the value is a relative name.
5866    INSTALL=$ac_install_sh
5867  fi
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5870$as_echo "$INSTALL" >&6; }
5871
5872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5873# It thinks the first close brace ends the variable substitution.
5874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5875
5876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5877
5878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_RANLIB+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$RANLIB"; then
5889  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908RANLIB=$ac_cv_prog_RANLIB
5909if test -n "$RANLIB"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5911$as_echo "$RANLIB" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917
5918fi
5919if test -z "$ac_cv_prog_RANLIB"; then
5920  ac_ct_RANLIB=$RANLIB
5921  # Extract the first word of "ranlib", so it can be a program name with args.
5922set dummy ranlib; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  if test -n "$ac_ct_RANLIB"; then
5929  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938    ac_cv_prog_ac_ct_RANLIB="ranlib"
5939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943  done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5949if test -n "$ac_ct_RANLIB"; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5951$as_echo "$ac_ct_RANLIB" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957  if test "x$ac_ct_RANLIB" = x; then
5958    RANLIB=":"
5959  else
5960    case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966    RANLIB=$ac_ct_RANLIB
5967  fi
5968else
5969  RANLIB="$ac_cv_prog_RANLIB"
5970fi
5971
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5973$as_echo_n "checking whether ln -s works... " >&6; }
5974LN_S=$as_ln_s
5975if test "$LN_S" = "ln -s"; then
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977$as_echo "yes" >&6; }
5978else
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5980$as_echo "no, using $LN_S" >&6; }
5981fi
5982
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5984$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5985if test -z "$MKDIR_P"; then
5986  if ${ac_cv_path_mkdir+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994    for ac_prog in mkdir gmkdir; do
5995         for ac_exec_ext in '' $ac_executable_extensions; do
5996           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5997           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5998             'mkdir (GNU coreutils) '* | \
5999             'mkdir (coreutils) '* | \
6000             'mkdir (fileutils) '4.1*)
6001               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6002               break 3;;
6003           esac
6004         done
6005       done
6006  done
6007IFS=$as_save_IFS
6008
6009fi
6010
6011  test -d ./--version && rmdir ./--version
6012  if test "${ac_cv_path_mkdir+set}" = set; then
6013    MKDIR_P="$ac_cv_path_mkdir -p"
6014  else
6015    # As a last resort, use the slow shell script.  Don't cache a
6016    # value for MKDIR_P within a source directory, because that will
6017    # break other packages using the cache if that directory is
6018    # removed, or if the value is a relative name.
6019    MKDIR_P="$ac_install_sh -d"
6020  fi
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6023$as_echo "$MKDIR_P" >&6; }
6024
6025
6026ac_ext=c
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}gcc; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if ${ac_cv_prog_CC+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$CC"; then
6040  ac_cv_prog_CC="$CC" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059CC=$ac_cv_prog_CC
6060if test -n "$CC"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6062$as_echo "$CC" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069fi
6070if test -z "$ac_cv_prog_CC"; then
6071  ac_ct_CC=$CC
6072  # Extract the first word of "gcc", so it can be a program name with args.
6073set dummy gcc; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_ac_ct_CC+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$ac_ct_CC"; then
6080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089    ac_cv_prog_ac_ct_CC="gcc"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099ac_ct_CC=$ac_cv_prog_ac_ct_CC
6100if test -n "$ac_ct_CC"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6102$as_echo "$ac_ct_CC" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108  if test "x$ac_ct_CC" = x; then
6109    CC=""
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    CC=$ac_ct_CC
6118  fi
6119else
6120  CC="$ac_cv_prog_CC"
6121fi
6122
6123if test -z "$CC"; then
6124          if test -n "$ac_tool_prefix"; then
6125    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6126set dummy ${ac_tool_prefix}cc; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_CC+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$CC"; then
6133  ac_cv_prog_CC="$CC" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_CC="${ac_tool_prefix}cc"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152CC=$ac_cv_prog_CC
6153if test -n "$CC"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6155$as_echo "$CC" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162  fi
6163fi
6164if test -z "$CC"; then
6165  # Extract the first word of "cc", so it can be a program name with args.
6166set dummy cc; ac_word=$2
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168$as_echo_n "checking for $ac_word... " >&6; }
6169if ${ac_cv_prog_CC+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  if test -n "$CC"; then
6173  ac_cv_prog_CC="$CC" # Let the user override the test.
6174else
6175  ac_prog_rejected=no
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179  IFS=$as_save_IFS
6180  test -z "$as_dir" && as_dir=.
6181    for ac_exec_ext in '' $ac_executable_extensions; do
6182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6184       ac_prog_rejected=yes
6185       continue
6186     fi
6187    ac_cv_prog_CC="cc"
6188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189    break 2
6190  fi
6191done
6192  done
6193IFS=$as_save_IFS
6194
6195if test $ac_prog_rejected = yes; then
6196  # We found a bogon in the path, so make sure we never use it.
6197  set dummy $ac_cv_prog_CC
6198  shift
6199  if test $# != 0; then
6200    # We chose a different compiler from the bogus one.
6201    # However, it has the same basename, so the bogon will be chosen
6202    # first if we set CC to just the basename; use the full file name.
6203    shift
6204    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6205  fi
6206fi
6207fi
6208fi
6209CC=$ac_cv_prog_CC
6210if test -n "$CC"; then
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6212$as_echo "$CC" >&6; }
6213else
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219fi
6220if test -z "$CC"; then
6221  if test -n "$ac_tool_prefix"; then
6222  for ac_prog in cl.exe
6223  do
6224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_CC+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$CC"; then
6232  ac_cv_prog_CC="$CC" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  test -z "$as_dir" && as_dir=.
6239    for ac_exec_ext in '' $ac_executable_extensions; do
6240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246  done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251CC=$ac_cv_prog_CC
6252if test -n "$CC"; then
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6254$as_echo "$CC" >&6; }
6255else
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260
6261    test -n "$CC" && break
6262  done
6263fi
6264if test -z "$CC"; then
6265  ac_ct_CC=$CC
6266  for ac_prog in cl.exe
6267do
6268  # Extract the first word of "$ac_prog", so it can be a program name with args.
6269set dummy $ac_prog; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if ${ac_cv_prog_ac_ct_CC+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$ac_ct_CC"; then
6276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285    ac_cv_prog_ac_ct_CC="$ac_prog"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295ac_ct_CC=$ac_cv_prog_ac_ct_CC
6296if test -n "$ac_ct_CC"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6298$as_echo "$ac_ct_CC" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304
6305  test -n "$ac_ct_CC" && break
6306done
6307
6308  if test "x$ac_ct_CC" = x; then
6309    CC=""
6310  else
6311    case $cross_compiling:$ac_tool_warned in
6312yes:)
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315ac_tool_warned=yes ;;
6316esac
6317    CC=$ac_ct_CC
6318  fi
6319fi
6320
6321fi
6322
6323
6324test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6326as_fn_error $? "no acceptable C compiler found in \$PATH
6327See \`config.log' for more details" "$LINENO" 5; }
6328
6329# Provide some information about the compiler.
6330$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6331set X $ac_compile
6332ac_compiler=$2
6333for ac_option in --version -v -V -qversion; do
6334  { { ac_try="$ac_compiler $ac_option >&5"
6335case "(($ac_try" in
6336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337  *) ac_try_echo=$ac_try;;
6338esac
6339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6340$as_echo "$ac_try_echo"; } >&5
6341  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6342  ac_status=$?
6343  if test -s conftest.err; then
6344    sed '10a\
6345... rest of stderr output deleted ...
6346         10q' conftest.err >conftest.er1
6347    cat conftest.er1 >&5
6348  fi
6349  rm -f conftest.er1 conftest.err
6350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351  test $ac_status = 0; }
6352done
6353
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6356if ${ac_cv_c_compiler_gnu+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361
6362int
6363main ()
6364{
6365#ifndef __GNUC__
6366       choke me
6367#endif
6368
6369  ;
6370  return 0;
6371}
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"; then :
6374  ac_compiler_gnu=yes
6375else
6376  ac_compiler_gnu=no
6377fi
6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379ac_cv_c_compiler_gnu=$ac_compiler_gnu
6380
6381fi
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6383$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6384if test $ac_compiler_gnu = yes; then
6385  GCC=yes
6386else
6387  GCC=
6388fi
6389ac_test_CFLAGS=${CFLAGS+set}
6390ac_save_CFLAGS=$CFLAGS
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6392$as_echo_n "checking whether $CC accepts -g... " >&6; }
6393if ${ac_cv_prog_cc_g+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  ac_save_c_werror_flag=$ac_c_werror_flag
6397   ac_c_werror_flag=yes
6398   ac_cv_prog_cc_g=no
6399   CFLAGS="-g"
6400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h.  */
6402
6403int
6404main ()
6405{
6406
6407  ;
6408  return 0;
6409}
6410_ACEOF
6411if ac_fn_c_try_compile "$LINENO"; then :
6412  ac_cv_prog_cc_g=yes
6413else
6414  CFLAGS=""
6415      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417
6418int
6419main ()
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426if ac_fn_c_try_compile "$LINENO"; then :
6427
6428else
6429  ac_c_werror_flag=$ac_save_c_werror_flag
6430         CFLAGS="-g"
6431         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433
6434int
6435main ()
6436{
6437
6438  ;
6439  return 0;
6440}
6441_ACEOF
6442if ac_fn_c_try_compile "$LINENO"; then :
6443  ac_cv_prog_cc_g=yes
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450   ac_c_werror_flag=$ac_save_c_werror_flag
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6453$as_echo "$ac_cv_prog_cc_g" >&6; }
6454if test "$ac_test_CFLAGS" = set; then
6455  CFLAGS=$ac_save_CFLAGS
6456elif test $ac_cv_prog_cc_g = yes; then
6457  if test "$GCC" = yes; then
6458    CFLAGS="-g -O2"
6459  else
6460    CFLAGS="-g"
6461  fi
6462else
6463  if test "$GCC" = yes; then
6464    CFLAGS="-O2"
6465  else
6466    CFLAGS=
6467  fi
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6471if ${ac_cv_prog_cc_c89+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  ac_cv_prog_cc_c89=no
6475ac_save_CC=$CC
6476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478#include <stdarg.h>
6479#include <stdio.h>
6480struct stat;
6481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6482struct buf { int x; };
6483FILE * (*rcsopen) (struct buf *, struct stat *, int);
6484static char *e (p, i)
6485     char **p;
6486     int i;
6487{
6488  return p[i];
6489}
6490static char *f (char * (*g) (char **, int), char **p, ...)
6491{
6492  char *s;
6493  va_list v;
6494  va_start (v,p);
6495  s = g (p, va_arg (v,int));
6496  va_end (v);
6497  return s;
6498}
6499
6500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6501   function prototypes and stuff, but not '\xHH' hex character constants.
6502   These don't provoke an error unfortunately, instead are silently treated
6503   as 'x'.  The following induces an error, until -std is added to get
6504   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6505   array size at least.  It's necessary to write '\x00'==0 to get something
6506   that's true only with -std.  */
6507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6508
6509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6510   inside strings and character constants.  */
6511#define FOO(x) 'x'
6512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6513
6514int test (int i, double x);
6515struct s1 {int (*f) (int a);};
6516struct s2 {int (*f) (double a);};
6517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6518int argc;
6519char **argv;
6520int
6521main ()
6522{
6523return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6529        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6530do
6531  CC="$ac_save_CC $ac_arg"
6532  if ac_fn_c_try_compile "$LINENO"; then :
6533  ac_cv_prog_cc_c89=$ac_arg
6534fi
6535rm -f core conftest.err conftest.$ac_objext
6536  test "x$ac_cv_prog_cc_c89" != "xno" && break
6537done
6538rm -f conftest.$ac_ext
6539CC=$ac_save_CC
6540
6541fi
6542# AC_CACHE_VAL
6543case "x$ac_cv_prog_cc_c89" in
6544  x)
6545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6546$as_echo "none needed" >&6; } ;;
6547  xno)
6548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6549$as_echo "unsupported" >&6; } ;;
6550  *)
6551    CC="$CC $ac_cv_prog_cc_c89"
6552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6554esac
6555if test "x$ac_cv_prog_cc_c89" != xno; then :
6556
6557fi
6558
6559ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565ac_ext=c
6566ac_cpp='$CPP $CPPFLAGS'
6567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6571$as_echo_n "checking how to run the C preprocessor... " >&6; }
6572# On Suns, sometimes $CPP names a directory.
6573if test -n "$CPP" && test -d "$CPP"; then
6574  CPP=
6575fi
6576if test -z "$CPP"; then
6577  if ${ac_cv_prog_CPP+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580      # Double quotes because CPP needs to be expanded
6581    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6582    do
6583      ac_preproc_ok=false
6584for ac_c_preproc_warn_flag in '' yes
6585do
6586  # Use a header file that comes with gcc, so configuring glibc
6587  # with a fresh cross-compiler works.
6588  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6589  # <limits.h> exists even on freestanding compilers.
6590  # On the NeXT, cc -E runs the code through the compiler's parser,
6591  # not just through cpp. "Syntax error" is here to catch this case.
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594#ifdef __STDC__
6595# include <limits.h>
6596#else
6597# include <assert.h>
6598#endif
6599                     Syntax error
6600_ACEOF
6601if ac_fn_c_try_cpp "$LINENO"; then :
6602
6603else
6604  # Broken: fails on valid input.
6605continue
6606fi
6607rm -f conftest.err conftest.i conftest.$ac_ext
6608
6609  # OK, works on sane cases.  Now check whether nonexistent headers
6610  # can be detected and how.
6611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613#include <ac_nonexistent.h>
6614_ACEOF
6615if ac_fn_c_try_cpp "$LINENO"; then :
6616  # Broken: success on invalid input.
6617continue
6618else
6619  # Passes both tests.
6620ac_preproc_ok=:
6621break
6622fi
6623rm -f conftest.err conftest.i conftest.$ac_ext
6624
6625done
6626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6627rm -f conftest.i conftest.err conftest.$ac_ext
6628if $ac_preproc_ok; then :
6629  break
6630fi
6631
6632    done
6633    ac_cv_prog_CPP=$CPP
6634
6635fi
6636  CPP=$ac_cv_prog_CPP
6637else
6638  ac_cv_prog_CPP=$CPP
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6641$as_echo "$CPP" >&6; }
6642ac_preproc_ok=false
6643for ac_c_preproc_warn_flag in '' yes
6644do
6645  # Use a header file that comes with gcc, so configuring glibc
6646  # with a fresh cross-compiler works.
6647  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648  # <limits.h> exists even on freestanding compilers.
6649  # On the NeXT, cc -E runs the code through the compiler's parser,
6650  # not just through cpp. "Syntax error" is here to catch this case.
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653#ifdef __STDC__
6654# include <limits.h>
6655#else
6656# include <assert.h>
6657#endif
6658                     Syntax error
6659_ACEOF
6660if ac_fn_c_try_cpp "$LINENO"; then :
6661
6662else
6663  # Broken: fails on valid input.
6664continue
6665fi
6666rm -f conftest.err conftest.i conftest.$ac_ext
6667
6668  # OK, works on sane cases.  Now check whether nonexistent headers
6669  # can be detected and how.
6670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672#include <ac_nonexistent.h>
6673_ACEOF
6674if ac_fn_c_try_cpp "$LINENO"; then :
6675  # Broken: success on invalid input.
6676continue
6677else
6678  # Passes both tests.
6679ac_preproc_ok=:
6680break
6681fi
6682rm -f conftest.err conftest.i conftest.$ac_ext
6683
6684done
6685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6686rm -f conftest.i conftest.err conftest.$ac_ext
6687if $ac_preproc_ok; then :
6688
6689else
6690  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6692as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6693See \`config.log' for more details" "$LINENO" 5; }
6694fi
6695
6696ac_ext=c
6697ac_cpp='$CPP $CPPFLAGS'
6698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702ac_ext=cpp
6703ac_cpp='$CXXCPP $CPPFLAGS'
6704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707if test -z "$CXX"; then
6708  if test -n "$CCC"; then
6709    CXX=$CCC
6710  else
6711    if test -n "$ac_tool_prefix"; then
6712  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6713  do
6714    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if ${ac_cv_prog_CXX+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  if test -n "$CXX"; then
6722  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
6729    for ac_exec_ext in '' $ac_executable_extensions; do
6730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733    break 2
6734  fi
6735done
6736  done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741CXX=$ac_cv_prog_CXX
6742if test -n "$CXX"; then
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6744$as_echo "$CXX" >&6; }
6745else
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751    test -n "$CXX" && break
6752  done
6753fi
6754if test -z "$CXX"; then
6755  ac_ct_CXX=$CXX
6756  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6757do
6758  # Extract the first word of "$ac_prog", so it can be a program name with args.
6759set dummy $ac_prog; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  if test -n "$ac_ct_CXX"; then
6766  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773    for ac_exec_ext in '' $ac_executable_extensions; do
6774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775    ac_cv_prog_ac_ct_CXX="$ac_prog"
6776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780  done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6786if test -n "$ac_ct_CXX"; then
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6788$as_echo "$ac_ct_CXX" >&6; }
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794
6795  test -n "$ac_ct_CXX" && break
6796done
6797
6798  if test "x$ac_ct_CXX" = x; then
6799    CXX="g++"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    CXX=$ac_ct_CXX
6808  fi
6809fi
6810
6811  fi
6812fi
6813# Provide some information about the compiler.
6814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6815set X $ac_compile
6816ac_compiler=$2
6817for ac_option in --version -v -V -qversion; do
6818  { { ac_try="$ac_compiler $ac_option >&5"
6819case "(($ac_try" in
6820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821  *) ac_try_echo=$ac_try;;
6822esac
6823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6824$as_echo "$ac_try_echo"; } >&5
6825  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6826  ac_status=$?
6827  if test -s conftest.err; then
6828    sed '10a\
6829... rest of stderr output deleted ...
6830         10q' conftest.err >conftest.er1
6831    cat conftest.er1 >&5
6832  fi
6833  rm -f conftest.er1 conftest.err
6834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835  test $ac_status = 0; }
6836done
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6839$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6840if ${ac_cv_cxx_compiler_gnu+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845
6846int
6847main ()
6848{
6849#ifndef __GNUC__
6850       choke me
6851#endif
6852
6853  ;
6854  return 0;
6855}
6856_ACEOF
6857if ac_fn_cxx_try_compile "$LINENO"; then :
6858  ac_compiler_gnu=yes
6859else
6860  ac_compiler_gnu=no
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6864
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6867$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6868if test $ac_compiler_gnu = yes; then
6869  GXX=yes
6870else
6871  GXX=
6872fi
6873ac_test_CXXFLAGS=${CXXFLAGS+set}
6874ac_save_CXXFLAGS=$CXXFLAGS
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6876$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6877if ${ac_cv_prog_cxx_g+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6881   ac_cxx_werror_flag=yes
6882   ac_cv_prog_cxx_g=no
6883   CXXFLAGS="-g"
6884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h.  */
6886
6887int
6888main ()
6889{
6890
6891  ;
6892  return 0;
6893}
6894_ACEOF
6895if ac_fn_cxx_try_compile "$LINENO"; then :
6896  ac_cv_prog_cxx_g=yes
6897else
6898  CXXFLAGS=""
6899      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901
6902int
6903main ()
6904{
6905
6906  ;
6907  return 0;
6908}
6909_ACEOF
6910if ac_fn_cxx_try_compile "$LINENO"; then :
6911
6912else
6913  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6914         CXXFLAGS="-g"
6915         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917
6918int
6919main ()
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_cxx_try_compile "$LINENO"; then :
6927  ac_cv_prog_cxx_g=yes
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6937$as_echo "$ac_cv_prog_cxx_g" >&6; }
6938if test "$ac_test_CXXFLAGS" = set; then
6939  CXXFLAGS=$ac_save_CXXFLAGS
6940elif test $ac_cv_prog_cxx_g = yes; then
6941  if test "$GXX" = yes; then
6942    CXXFLAGS="-g -O2"
6943  else
6944    CXXFLAGS="-g"
6945  fi
6946else
6947  if test "$GXX" = yes; then
6948    CXXFLAGS="-O2"
6949  else
6950    CXXFLAGS=
6951  fi
6952fi
6953ac_ext=c
6954ac_cpp='$CPP $CPPFLAGS'
6955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958
6959ac_ext=cpp
6960ac_cpp='$CXXCPP $CPPFLAGS'
6961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6965$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6966if test -z "$CXXCPP"; then
6967  if ${ac_cv_prog_CXXCPP+:} false; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970      # Double quotes because CXXCPP needs to be expanded
6971    for CXXCPP in "$CXX -E" "/lib/cpp"
6972    do
6973      ac_preproc_ok=false
6974for ac_cxx_preproc_warn_flag in '' yes
6975do
6976  # Use a header file that comes with gcc, so configuring glibc
6977  # with a fresh cross-compiler works.
6978  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6979  # <limits.h> exists even on freestanding compilers.
6980  # On the NeXT, cc -E runs the code through the compiler's parser,
6981  # not just through cpp. "Syntax error" is here to catch this case.
6982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983/* end confdefs.h.  */
6984#ifdef __STDC__
6985# include <limits.h>
6986#else
6987# include <assert.h>
6988#endif
6989                     Syntax error
6990_ACEOF
6991if ac_fn_cxx_try_cpp "$LINENO"; then :
6992
6993else
6994  # Broken: fails on valid input.
6995continue
6996fi
6997rm -f conftest.err conftest.i conftest.$ac_ext
6998
6999  # OK, works on sane cases.  Now check whether nonexistent headers
7000  # can be detected and how.
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003#include <ac_nonexistent.h>
7004_ACEOF
7005if ac_fn_cxx_try_cpp "$LINENO"; then :
7006  # Broken: success on invalid input.
7007continue
7008else
7009  # Passes both tests.
7010ac_preproc_ok=:
7011break
7012fi
7013rm -f conftest.err conftest.i conftest.$ac_ext
7014
7015done
7016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7017rm -f conftest.i conftest.err conftest.$ac_ext
7018if $ac_preproc_ok; then :
7019  break
7020fi
7021
7022    done
7023    ac_cv_prog_CXXCPP=$CXXCPP
7024
7025fi
7026  CXXCPP=$ac_cv_prog_CXXCPP
7027else
7028  ac_cv_prog_CXXCPP=$CXXCPP
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7031$as_echo "$CXXCPP" >&6; }
7032ac_preproc_ok=false
7033for ac_cxx_preproc_warn_flag in '' yes
7034do
7035  # Use a header file that comes with gcc, so configuring glibc
7036  # with a fresh cross-compiler works.
7037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038  # <limits.h> exists even on freestanding compilers.
7039  # On the NeXT, cc -E runs the code through the compiler's parser,
7040  # not just through cpp. "Syntax error" is here to catch this case.
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043#ifdef __STDC__
7044# include <limits.h>
7045#else
7046# include <assert.h>
7047#endif
7048                     Syntax error
7049_ACEOF
7050if ac_fn_cxx_try_cpp "$LINENO"; then :
7051
7052else
7053  # Broken: fails on valid input.
7054continue
7055fi
7056rm -f conftest.err conftest.i conftest.$ac_ext
7057
7058  # OK, works on sane cases.  Now check whether nonexistent headers
7059  # can be detected and how.
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062#include <ac_nonexistent.h>
7063_ACEOF
7064if ac_fn_cxx_try_cpp "$LINENO"; then :
7065  # Broken: success on invalid input.
7066continue
7067else
7068  # Passes both tests.
7069ac_preproc_ok=:
7070break
7071fi
7072rm -f conftest.err conftest.i conftest.$ac_ext
7073
7074done
7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076rm -f conftest.i conftest.err conftest.$ac_ext
7077if $ac_preproc_ok; then :
7078
7079else
7080  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7082as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7083See \`config.log' for more details" "$LINENO" 5; }
7084fi
7085
7086ac_ext=c
7087ac_cpp='$CPP $CPPFLAGS'
7088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092ac_ext=cpp
7093ac_cpp='$CXXCPP $CPPFLAGS'
7094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7097if test -z "$CXX"; then
7098  if test -n "$CCC"; then
7099    CXX=$CCC
7100  else
7101    if test -n "$ac_tool_prefix"; then
7102  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7103  do
7104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if ${ac_cv_prog_CXX+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  if test -n "$CXX"; then
7112  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131CXX=$ac_cv_prog_CXX
7132if test -n "$CXX"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7134$as_echo "$CXX" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140
7141    test -n "$CXX" && break
7142  done
7143fi
7144if test -z "$CXX"; then
7145  ac_ct_CXX=$CXX
7146  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7147do
7148  # Extract the first word of "$ac_prog", so it can be a program name with args.
7149set dummy $ac_prog; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  if test -n "$ac_ct_CXX"; then
7156  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163    for ac_exec_ext in '' $ac_executable_extensions; do
7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_ac_ct_CXX="$ac_prog"
7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170  done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7176if test -n "$ac_ct_CXX"; then
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7178$as_echo "$ac_ct_CXX" >&6; }
7179else
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185  test -n "$ac_ct_CXX" && break
7186done
7187
7188  if test "x$ac_ct_CXX" = x; then
7189    CXX="g++"
7190  else
7191    case $cross_compiling:$ac_tool_warned in
7192yes:)
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195ac_tool_warned=yes ;;
7196esac
7197    CXX=$ac_ct_CXX
7198  fi
7199fi
7200
7201  fi
7202fi
7203# Provide some information about the compiler.
7204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7205set X $ac_compile
7206ac_compiler=$2
7207for ac_option in --version -v -V -qversion; do
7208  { { ac_try="$ac_compiler $ac_option >&5"
7209case "(($ac_try" in
7210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211  *) ac_try_echo=$ac_try;;
7212esac
7213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7214$as_echo "$ac_try_echo"; } >&5
7215  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7216  ac_status=$?
7217  if test -s conftest.err; then
7218    sed '10a\
7219... rest of stderr output deleted ...
7220         10q' conftest.err >conftest.er1
7221    cat conftest.er1 >&5
7222  fi
7223  rm -f conftest.er1 conftest.err
7224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225  test $ac_status = 0; }
7226done
7227
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7229$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7230if ${ac_cv_cxx_compiler_gnu+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235
7236int
7237main ()
7238{
7239#ifndef __GNUC__
7240       choke me
7241#endif
7242
7243  ;
7244  return 0;
7245}
7246_ACEOF
7247if ac_fn_cxx_try_compile "$LINENO"; then :
7248  ac_compiler_gnu=yes
7249else
7250  ac_compiler_gnu=no
7251fi
7252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7254
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7257$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7258if test $ac_compiler_gnu = yes; then
7259  GXX=yes
7260else
7261  GXX=
7262fi
7263ac_test_CXXFLAGS=${CXXFLAGS+set}
7264ac_save_CXXFLAGS=$CXXFLAGS
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7266$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7267if ${ac_cv_prog_cxx_g+:} false; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7271   ac_cxx_werror_flag=yes
7272   ac_cv_prog_cxx_g=no
7273   CXXFLAGS="-g"
7274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276
7277int
7278main ()
7279{
7280
7281  ;
7282  return 0;
7283}
7284_ACEOF
7285if ac_fn_cxx_try_compile "$LINENO"; then :
7286  ac_cv_prog_cxx_g=yes
7287else
7288  CXXFLAGS=""
7289      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291
7292int
7293main ()
7294{
7295
7296  ;
7297  return 0;
7298}
7299_ACEOF
7300if ac_fn_cxx_try_compile "$LINENO"; then :
7301
7302else
7303  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7304         CXXFLAGS="-g"
7305         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316if ac_fn_cxx_try_compile "$LINENO"; then :
7317  ac_cv_prog_cxx_g=yes
7318fi
7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320fi
7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7327$as_echo "$ac_cv_prog_cxx_g" >&6; }
7328if test "$ac_test_CXXFLAGS" = set; then
7329  CXXFLAGS=$ac_save_CXXFLAGS
7330elif test $ac_cv_prog_cxx_g = yes; then
7331  if test "$GXX" = yes; then
7332    CXXFLAGS="-g -O2"
7333  else
7334    CXXFLAGS="-g"
7335  fi
7336else
7337  if test "$GXX" = yes; then
7338    CXXFLAGS="-O2"
7339  else
7340    CXXFLAGS=
7341  fi
7342fi
7343ac_ext=c
7344ac_cpp='$CPP $CPPFLAGS'
7345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348
7349ac_ext=cpp
7350ac_cpp='$CXXCPP $CPPFLAGS'
7351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7358$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7359if ${ac_cv_c_bigendian+:} false; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  ac_cv_c_bigendian=unknown
7363    # See if we're dealing with a universal compiler.
7364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366#ifndef __APPLE_CC__
7367               not a universal capable compiler
7368             #endif
7369             typedef int dummy;
7370
7371_ACEOF
7372if ac_fn_cxx_try_compile "$LINENO"; then :
7373
7374        # Check for potential -arch flags.  It is not universal unless
7375        # there are at least two -arch flags with different values.
7376        ac_arch=
7377        ac_prev=
7378        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7379         if test -n "$ac_prev"; then
7380           case $ac_word in
7381             i?86 | x86_64 | ppc | ppc64)
7382               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7383                 ac_arch=$ac_word
7384               else
7385                 ac_cv_c_bigendian=universal
7386                 break
7387               fi
7388               ;;
7389           esac
7390           ac_prev=
7391         elif test "x$ac_word" = "x-arch"; then
7392           ac_prev=arch
7393         fi
7394       done
7395fi
7396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397    if test $ac_cv_c_bigendian = unknown; then
7398      # See if sys/param.h defines the BYTE_ORDER macro.
7399      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401#include <sys/types.h>
7402             #include <sys/param.h>
7403
7404int
7405main ()
7406{
7407#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7408                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7409                     && LITTLE_ENDIAN)
7410              bogus endian macros
7411             #endif
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_cxx_try_compile "$LINENO"; then :
7418  # It does; now see whether it defined to BIG_ENDIAN or not.
7419         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421#include <sys/types.h>
7422                #include <sys/param.h>
7423
7424int
7425main ()
7426{
7427#if BYTE_ORDER != BIG_ENDIAN
7428                 not big endian
7429                #endif
7430
7431  ;
7432  return 0;
7433}
7434_ACEOF
7435if ac_fn_cxx_try_compile "$LINENO"; then :
7436  ac_cv_c_bigendian=yes
7437else
7438  ac_cv_c_bigendian=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441fi
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443    fi
7444    if test $ac_cv_c_bigendian = unknown; then
7445      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448#include <limits.h>
7449
7450int
7451main ()
7452{
7453#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7454              bogus endian macros
7455             #endif
7456
7457  ;
7458  return 0;
7459}
7460_ACEOF
7461if ac_fn_cxx_try_compile "$LINENO"; then :
7462  # It does; now see whether it defined to _BIG_ENDIAN or not.
7463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465#include <limits.h>
7466
7467int
7468main ()
7469{
7470#ifndef _BIG_ENDIAN
7471                 not big endian
7472                #endif
7473
7474  ;
7475  return 0;
7476}
7477_ACEOF
7478if ac_fn_cxx_try_compile "$LINENO"; then :
7479  ac_cv_c_bigendian=yes
7480else
7481  ac_cv_c_bigendian=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484fi
7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486    fi
7487    if test $ac_cv_c_bigendian = unknown; then
7488      # Compile a test program.
7489      if test "$cross_compiling" = yes; then :
7490  # Try to guess by grepping values from an object file.
7491         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493short int ascii_mm[] =
7494                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7495                short int ascii_ii[] =
7496                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7497                int use_ascii (int i) {
7498                  return ascii_mm[i] + ascii_ii[i];
7499                }
7500                short int ebcdic_ii[] =
7501                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7502                short int ebcdic_mm[] =
7503                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7504                int use_ebcdic (int i) {
7505                  return ebcdic_mm[i] + ebcdic_ii[i];
7506                }
7507                extern int foo;
7508
7509int
7510main ()
7511{
7512return use_ascii (foo) == use_ebcdic (foo);
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517if ac_fn_cxx_try_compile "$LINENO"; then :
7518  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7519              ac_cv_c_bigendian=yes
7520            fi
7521            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7522              if test "$ac_cv_c_bigendian" = unknown; then
7523                ac_cv_c_bigendian=no
7524              else
7525                # finding both strings is unlikely to happen, but who knows?
7526                ac_cv_c_bigendian=unknown
7527              fi
7528            fi
7529fi
7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534$ac_includes_default
7535int
7536main ()
7537{
7538
7539             /* Are we little or big endian?  From Harbison&Steele.  */
7540             union
7541             {
7542               long int l;
7543               char c[sizeof (long int)];
7544             } u;
7545             u.l = 1;
7546             return u.c[sizeof (long int) - 1] == 1;
7547
7548  ;
7549  return 0;
7550}
7551_ACEOF
7552if ac_fn_cxx_try_run "$LINENO"; then :
7553  ac_cv_c_bigendian=no
7554else
7555  ac_cv_c_bigendian=yes
7556fi
7557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7558  conftest.$ac_objext conftest.beam conftest.$ac_ext
7559fi
7560
7561    fi
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7564$as_echo "$ac_cv_c_bigendian" >&6; }
7565 case $ac_cv_c_bigendian in #(
7566   yes)
7567     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7568;; #(
7569   no)
7570      ;; #(
7571   universal)
7572
7573$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7574
7575     ;; #(
7576   *)
7577     as_fn_error $? "unknown endianness
7578 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7579 esac
7580
7581
7582# Save the values as shell variables so that we can substitute them
7583# into bltHash.h for situtations where there's no bltInt.h.
7584
7585LD_RPATH="";
7586
7587#
7588# Need to check for the following dependencies:
7589#       Rappture headers and library (done)
7590#       Tcl headers and library (done)
7591#       GL headers and library
7592#       GLEW header and library
7593#       pthread library
7594#
7595
7596TCL_VERSION="8.4"
7597for dir in \
7598 ${exec_prefix} \
7599 ${exec_prefix}/lib ; do
7600  tclconfig="${dir}/tclConfig.sh"
7601  if test -f "$tclconfig" ; then
7602    . $tclconfig
7603    break
7604  fi
7605done
7606TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
7607
7608if test "x$with_tcllib" != "x" ; then
7609   tclconfig="${with_tcllib}/tclConfig.sh"
7610   if test -f "$tclconfig" ; then
7611    . $tclconfig
7612   fi
7613   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
7614fi
7615if test "x$with_tclinclude" != "x" ; then
7616   TCL_INC_SPEC="-I${with_tclinclude}"
7617fi
7618
7619
7620for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
7621do :
7622  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7625  cat >>confdefs.h <<_ACEOF
7626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627_ACEOF
7628
7629fi
7630
7631done
7632
7633for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
7634do :
7635  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7636ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7638  cat >>confdefs.h <<_ACEOF
7639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640_ACEOF
7641
7642fi
7643
7644done
7645
7646
7647for ac_func in accept4
7648do :
7649  ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
7650if test "x$ac_cv_func_accept4" = xyes; then :
7651  cat >>confdefs.h <<_ACEOF
7652#define HAVE_ACCEPT4 1
7653_ACEOF
7654
7655fi
7656done
7657
7658for ac_func in mkstemps
7659do :
7660  ac_fn_cxx_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
7661if test "x$ac_cv_func_mkstemps" = xyes; then :
7662  cat >>confdefs.h <<_ACEOF
7663#define HAVE_MKSTEMPS 1
7664_ACEOF
7665
7666fi
7667done
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678ac_config_files="$ac_config_files Makefile renderservers.cfg renderservers.tcl start_nanoscale.sh"
7679
7680cat >confcache <<\_ACEOF
7681# This file is a shell script that caches the results of configure
7682# tests run on this system so they can be shared between configure
7683# scripts and configure runs, see configure's option --config-cache.
7684# It is not useful on other systems.  If it contains results you don't
7685# want to keep, you may remove or edit it.
7686#
7687# config.status only pays attention to the cache file if you give it
7688# the --recheck option to rerun configure.
7689#
7690# `ac_cv_env_foo' variables (set or unset) will be overridden when
7691# loading this file, other *unset* `ac_cv_foo' will be assigned the
7692# following values.
7693
7694_ACEOF
7695
7696# The following way of writing the cache mishandles newlines in values,
7697# but we know of no workaround that is simple, portable, and efficient.
7698# So, we kill variables containing newlines.
7699# Ultrix sh set writes to stderr and can't be redirected directly,
7700# and sets the high bit in the cache file unless we assign to the vars.
7701(
7702  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7703    eval ac_val=\$$ac_var
7704    case $ac_val in #(
7705    *${as_nl}*)
7706      case $ac_var in #(
7707      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7708$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7709      esac
7710      case $ac_var in #(
7711      _ | IFS | as_nl) ;; #(
7712      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7713      *) { eval $ac_var=; unset $ac_var;} ;;
7714      esac ;;
7715    esac
7716  done
7717
7718  (set) 2>&1 |
7719    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7720    *${as_nl}ac_space=\ *)
7721      # `set' does not quote correctly, so add quotes: double-quote
7722      # substitution turns \\\\ into \\, and sed turns \\ into \.
7723      sed -n \
7724        "s/'/'\\\\''/g;
7725          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7726      ;; #(
7727    *)
7728      # `set' quotes correctly as required by POSIX, so do not add quotes.
7729      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7730      ;;
7731    esac |
7732    sort
7733) |
7734  sed '
7735     /^ac_cv_env_/b end
7736     t clear
7737     :clear
7738     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7739     t end
7740     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7741     :end' >>confcache
7742if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7743  if test -w "$cache_file"; then
7744    if test "x$cache_file" != "x/dev/null"; then
7745      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7746$as_echo "$as_me: updating cache $cache_file" >&6;}
7747      if test ! -f "$cache_file" || test -h "$cache_file"; then
7748        cat confcache >"$cache_file"
7749      else
7750        case $cache_file in #(
7751        */* | ?:*)
7752          mv -f confcache "$cache_file"$$ &&
7753          mv -f "$cache_file"$$ "$cache_file" ;; #(
7754        *)
7755          mv -f confcache "$cache_file" ;;
7756        esac
7757      fi
7758    fi
7759  else
7760    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7761$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7762  fi
7763fi
7764rm -f confcache
7765
7766test "x$prefix" = xNONE && prefix=$ac_default_prefix
7767# Let make expand exec_prefix.
7768test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7769
7770DEFS=-DHAVE_CONFIG_H
7771
7772ac_libobjs=
7773ac_ltlibobjs=
7774U=
7775for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7776  # 1. Remove the extension, and $U if already installed.
7777  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7778  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7779  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7780  #    will be set to the directory where LIBOBJS objects are built.
7781  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7782  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7783done
7784LIBOBJS=$ac_libobjs
7785
7786LTLIBOBJS=$ac_ltlibobjs
7787
7788
7789
7790
7791: "${CONFIG_STATUS=./config.status}"
7792ac_write_fail=0
7793ac_clean_files_save=$ac_clean_files
7794ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7796$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7797as_write_fail=0
7798cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7799#! $SHELL
7800# Generated by $as_me.
7801# Run this file to recreate the current configuration.
7802# Compiler output produced by configure, useful for debugging
7803# configure, is in config.log if it exists.
7804
7805debug=false
7806ac_cs_recheck=false
7807ac_cs_silent=false
7808
7809SHELL=\${CONFIG_SHELL-$SHELL}
7810export SHELL
7811_ASEOF
7812cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7813## -------------------- ##
7814## M4sh Initialization. ##
7815## -------------------- ##
7816
7817# Be more Bourne compatible
7818DUALCASE=1; export DUALCASE # for MKS sh
7819if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7820  emulate sh
7821  NULLCMD=:
7822  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7823  # is contrary to our usage.  Disable this feature.
7824  alias -g '${1+"$@"}'='"$@"'
7825  setopt NO_GLOB_SUBST
7826else
7827  case `(set -o) 2>/dev/null` in #(
7828  *posix*) :
7829    set -o posix ;; #(
7830  *) :
7831     ;;
7832esac
7833fi
7834
7835
7836as_nl='
7837'
7838export as_nl
7839# Printing a long string crashes Solaris 7 /usr/bin/printf.
7840as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7841as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7843# Prefer a ksh shell builtin over an external printf program on Solaris,
7844# but without wasting forks for bash or zsh.
7845if test -z "$BASH_VERSION$ZSH_VERSION" \
7846    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7847  as_echo='print -r --'
7848  as_echo_n='print -rn --'
7849elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7850  as_echo='printf %s\n'
7851  as_echo_n='printf %s'
7852else
7853  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7854    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7855    as_echo_n='/usr/ucb/echo -n'
7856  else
7857    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7858    as_echo_n_body='eval
7859      arg=$1;
7860      case $arg in #(
7861      *"$as_nl"*)
7862        expr "X$arg" : "X\\(.*\\)$as_nl";
7863        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7864      esac;
7865      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7866    '
7867    export as_echo_n_body
7868    as_echo_n='sh -c $as_echo_n_body as_echo'
7869  fi
7870  export as_echo_body
7871  as_echo='sh -c $as_echo_body as_echo'
7872fi
7873
7874# The user is always right.
7875if test "${PATH_SEPARATOR+set}" != set; then
7876  PATH_SEPARATOR=:
7877  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7878    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7879      PATH_SEPARATOR=';'
7880  }
7881fi
7882
7883
7884# IFS
7885# We need space, tab and new line, in precisely that order.  Quoting is
7886# there to prevent editors from complaining about space-tab.
7887# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7888# splitting by setting IFS to empty value.)
7889IFS=" ""        $as_nl"
7890
7891# Find who we are.  Look in the path if we contain no directory separator.
7892as_myself=
7893case $0 in #((
7894  *[\\/]* ) as_myself=$0 ;;
7895  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898  IFS=$as_save_IFS
7899  test -z "$as_dir" && as_dir=.
7900    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7901  done
7902IFS=$as_save_IFS
7903
7904     ;;
7905esac
7906# We did not find ourselves, most probably we were run as `sh COMMAND'
7907# in which case we are not to be found in the path.
7908if test "x$as_myself" = x; then
7909  as_myself=$0
7910fi
7911if test ! -f "$as_myself"; then
7912  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7913  exit 1
7914fi
7915
7916# Unset variables that we do not need and which cause bugs (e.g. in
7917# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7918# suppresses any "Segmentation fault" message there.  '((' could
7919# trigger a bug in pdksh 5.2.14.
7920for as_var in BASH_ENV ENV MAIL MAILPATH
7921do eval test x\${$as_var+set} = xset \
7922  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7923done
7924PS1='$ '
7925PS2='> '
7926PS4='+ '
7927
7928# NLS nuisances.
7929LC_ALL=C
7930export LC_ALL
7931LANGUAGE=C
7932export LANGUAGE
7933
7934# CDPATH.
7935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7936
7937
7938# as_fn_error STATUS ERROR [LINENO LOG_FD]
7939# ----------------------------------------
7940# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7941# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7942# script with STATUS, using 1 if that was 0.
7943as_fn_error ()
7944{
7945  as_status=$1; test $as_status -eq 0 && as_status=1
7946  if test "$4"; then
7947    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7948    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7949  fi
7950  $as_echo "$as_me: error: $2" >&2
7951  as_fn_exit $as_status
7952} # as_fn_error
7953
7954
7955# as_fn_set_status STATUS
7956# -----------------------
7957# Set $? to STATUS, without forking.
7958as_fn_set_status ()
7959{
7960  return $1
7961} # as_fn_set_status
7962
7963# as_fn_exit STATUS
7964# -----------------
7965# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7966as_fn_exit ()
7967{
7968  set +e
7969  as_fn_set_status $1
7970  exit $1
7971} # as_fn_exit
7972
7973# as_fn_unset VAR
7974# ---------------
7975# Portably unset VAR.
7976as_fn_unset ()
7977{
7978  { eval $1=; unset $1;}
7979}
7980as_unset=as_fn_unset
7981# as_fn_append VAR VALUE
7982# ----------------------
7983# Append the text in VALUE to the end of the definition contained in VAR. Take
7984# advantage of any shell optimizations that allow amortized linear growth over
7985# repeated appends, instead of the typical quadratic growth present in naive
7986# implementations.
7987if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7988  eval 'as_fn_append ()
7989  {
7990    eval $1+=\$2
7991  }'
7992else
7993  as_fn_append ()
7994  {
7995    eval $1=\$$1\$2
7996  }
7997fi # as_fn_append
7998
7999# as_fn_arith ARG...
8000# ------------------
8001# Perform arithmetic evaluation on the ARGs, and store the result in the
8002# global $as_val. Take advantage of shells that can avoid forks. The arguments
8003# must be portable across $(()) and expr.
8004if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8005  eval 'as_fn_arith ()
8006  {
8007    as_val=$(( $* ))
8008  }'
8009else
8010  as_fn_arith ()
8011  {
8012    as_val=`expr "$@" || test $? -eq 1`
8013  }
8014fi # as_fn_arith
8015
8016
8017if expr a : '\(a\)' >/dev/null 2>&1 &&
8018   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8019  as_expr=expr
8020else
8021  as_expr=false
8022fi
8023
8024if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8025  as_basename=basename
8026else
8027  as_basename=false
8028fi
8029
8030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8031  as_dirname=dirname
8032else
8033  as_dirname=false
8034fi
8035
8036as_me=`$as_basename -- "$0" ||
8037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8038         X"$0" : 'X\(//\)$' \| \
8039         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8040$as_echo X/"$0" |
8041    sed '/^.*\/\([^/][^/]*\)\/*$/{
8042            s//\1/
8043            q
8044          }
8045          /^X\/\(\/\/\)$/{
8046            s//\1/
8047            q
8048          }
8049          /^X\/\(\/\).*/{
8050            s//\1/
8051            q
8052          }
8053          s/.*/./; q'`
8054
8055# Avoid depending upon Character Ranges.
8056as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8058as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8059as_cr_digits='0123456789'
8060as_cr_alnum=$as_cr_Letters$as_cr_digits
8061
8062ECHO_C= ECHO_N= ECHO_T=
8063case `echo -n x` in #(((((
8064-n*)
8065  case `echo 'xy\c'` in
8066  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8067  xy)  ECHO_C='\c';;
8068  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8069       ECHO_T=' ';;
8070  esac;;
8071*)
8072  ECHO_N='-n';;
8073esac
8074
8075rm -f conf$$ conf$$.exe conf$$.file
8076if test -d conf$$.dir; then
8077  rm -f conf$$.dir/conf$$.file
8078else
8079  rm -f conf$$.dir
8080  mkdir conf$$.dir 2>/dev/null
8081fi
8082if (echo >conf$$.file) 2>/dev/null; then
8083  if ln -s conf$$.file conf$$ 2>/dev/null; then
8084    as_ln_s='ln -s'
8085    # ... but there are two gotchas:
8086    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8087    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8088    # In both cases, we have to default to `cp -pR'.
8089    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8090      as_ln_s='cp -pR'
8091  elif ln conf$$.file conf$$ 2>/dev/null; then
8092    as_ln_s=ln
8093  else
8094    as_ln_s='cp -pR'
8095  fi
8096else
8097  as_ln_s='cp -pR'
8098fi
8099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8100rmdir conf$$.dir 2>/dev/null
8101
8102
8103# as_fn_mkdir_p
8104# -------------
8105# Create "$as_dir" as a directory, including parents if necessary.
8106as_fn_mkdir_p ()
8107{
8108
8109  case $as_dir in #(
8110  -*) as_dir=./$as_dir;;
8111  esac
8112  test -d "$as_dir" || eval $as_mkdir_p || {
8113    as_dirs=
8114    while :; do
8115      case $as_dir in #(
8116      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8117      *) as_qdir=$as_dir;;
8118      esac
8119      as_dirs="'$as_qdir' $as_dirs"
8120      as_dir=`$as_dirname -- "$as_dir" ||
8121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8122         X"$as_dir" : 'X\(//\)[^/]' \| \
8123         X"$as_dir" : 'X\(//\)$' \| \
8124         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8125$as_echo X"$as_dir" |
8126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8127            s//\1/
8128            q
8129          }
8130          /^X\(\/\/\)[^/].*/{
8131            s//\1/
8132            q
8133          }
8134          /^X\(\/\/\)$/{
8135            s//\1/
8136            q
8137          }
8138          /^X\(\/\).*/{
8139            s//\1/
8140            q
8141          }
8142          s/.*/./; q'`
8143      test -d "$as_dir" && break
8144    done
8145    test -z "$as_dirs" || eval "mkdir $as_dirs"
8146  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8147
8148
8149} # as_fn_mkdir_p
8150if mkdir -p . 2>/dev/null; then
8151  as_mkdir_p='mkdir -p "$as_dir"'
8152else
8153  test -d ./-p && rmdir ./-p
8154  as_mkdir_p=false
8155fi
8156
8157
8158# as_fn_executable_p FILE
8159# -----------------------
8160# Test if FILE is an executable regular file.
8161as_fn_executable_p ()
8162{
8163  test -f "$1" && test -x "$1"
8164} # as_fn_executable_p
8165as_test_x='test -x'
8166as_executable_p=as_fn_executable_p
8167
8168# Sed expression to map a string onto a valid CPP name.
8169as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8170
8171# Sed expression to map a string onto a valid variable name.
8172as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8173
8174
8175exec 6>&1
8176## ----------------------------------- ##
8177## Main body of $CONFIG_STATUS script. ##
8178## ----------------------------------- ##
8179_ASEOF
8180test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8181
8182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8183# Save the log message, to keep $0 and so on meaningful, and to
8184# report actual input values of CONFIG_FILES etc. instead of their
8185# values after options handling.
8186ac_log="
8187This file was extended by nanoscale $as_me 0.1, which was
8188generated by GNU Autoconf 2.69.  Invocation command line was
8189
8190  CONFIG_FILES    = $CONFIG_FILES
8191  CONFIG_HEADERS  = $CONFIG_HEADERS
8192  CONFIG_LINKS    = $CONFIG_LINKS
8193  CONFIG_COMMANDS = $CONFIG_COMMANDS
8194  $ $0 $@
8195
8196on `(hostname || uname -n) 2>/dev/null | sed 1q`
8197"
8198
8199_ACEOF
8200
8201case $ac_config_files in *"
8202"*) set x $ac_config_files; shift; ac_config_files=$*;;
8203esac
8204
8205case $ac_config_headers in *"
8206"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8207esac
8208
8209
8210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8211# Files that config.status was made for.
8212config_files="$ac_config_files"
8213config_headers="$ac_config_headers"
8214
8215_ACEOF
8216
8217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8218ac_cs_usage="\
8219\`$as_me' instantiates files and other configuration actions
8220from templates according to the current configuration.  Unless the files
8221and actions are specified as TAGs, all are instantiated by default.
8222
8223Usage: $0 [OPTION]... [TAG]...
8224
8225  -h, --help       print this help, then exit
8226  -V, --version    print version number and configuration settings, then exit
8227      --config     print configuration, then exit
8228  -q, --quiet, --silent
8229                   do not print progress messages
8230  -d, --debug      don't remove temporary files
8231      --recheck    update $as_me by reconfiguring in the same conditions
8232      --file=FILE[:TEMPLATE]
8233                   instantiate the configuration file FILE
8234      --header=FILE[:TEMPLATE]
8235                   instantiate the configuration header FILE
8236
8237Configuration files:
8238$config_files
8239
8240Configuration headers:
8241$config_headers
8242
8243Report bugs to <rappture@nanohub.org>."
8244
8245_ACEOF
8246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8247ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8248ac_cs_version="\\
8249nanoscale config.status 0.1
8250configured by $0, generated by GNU Autoconf 2.69,
8251  with options \\"\$ac_cs_config\\"
8252
8253Copyright (C) 2012 Free Software Foundation, Inc.
8254This config.status script is free software; the Free Software Foundation
8255gives unlimited permission to copy, distribute and modify it."
8256
8257ac_pwd='$ac_pwd'
8258srcdir='$srcdir'
8259INSTALL='$INSTALL'
8260MKDIR_P='$MKDIR_P'
8261test -n "\$AWK" || AWK=awk
8262_ACEOF
8263
8264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8265# The default lists apply if the user does not specify any file.
8266ac_need_defaults=:
8267while test $# != 0
8268do
8269  case $1 in
8270  --*=?*)
8271    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8272    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8273    ac_shift=:
8274    ;;
8275  --*=)
8276    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8277    ac_optarg=
8278    ac_shift=:
8279    ;;
8280  *)
8281    ac_option=$1
8282    ac_optarg=$2
8283    ac_shift=shift
8284    ;;
8285  esac
8286
8287  case $ac_option in
8288  # Handling of the options.
8289  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8290    ac_cs_recheck=: ;;
8291  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8292    $as_echo "$ac_cs_version"; exit ;;
8293  --config | --confi | --conf | --con | --co | --c )
8294    $as_echo "$ac_cs_config"; exit ;;
8295  --debug | --debu | --deb | --de | --d | -d )
8296    debug=: ;;
8297  --file | --fil | --fi | --f )
8298    $ac_shift
8299    case $ac_optarg in
8300    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8301    '') as_fn_error $? "missing file argument" ;;
8302    esac
8303    as_fn_append CONFIG_FILES " '$ac_optarg'"
8304    ac_need_defaults=false;;
8305  --header | --heade | --head | --hea )
8306    $ac_shift
8307    case $ac_optarg in
8308    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8309    esac
8310    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8311    ac_need_defaults=false;;
8312  --he | --h)
8313    # Conflict between --help and --header
8314    as_fn_error $? "ambiguous option: \`$1'
8315Try \`$0 --help' for more information.";;
8316  --help | --hel | -h )
8317    $as_echo "$ac_cs_usage"; exit ;;
8318  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8319  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8320    ac_cs_silent=: ;;
8321
8322  # This is an error.
8323  -*) as_fn_error $? "unrecognized option: \`$1'
8324Try \`$0 --help' for more information." ;;
8325
8326  *) as_fn_append ac_config_targets " $1"
8327     ac_need_defaults=false ;;
8328
8329  esac
8330  shift
8331done
8332
8333ac_configure_extra_args=
8334
8335if $ac_cs_silent; then
8336  exec 6>/dev/null
8337  ac_configure_extra_args="$ac_configure_extra_args --silent"
8338fi
8339
8340_ACEOF
8341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8342if \$ac_cs_recheck; then
8343  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8344  shift
8345  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8346  CONFIG_SHELL='$SHELL'
8347  export CONFIG_SHELL
8348  exec "\$@"
8349fi
8350
8351_ACEOF
8352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8353exec 5>>config.log
8354{
8355  echo
8356  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8357## Running $as_me. ##
8358_ASBOX
8359  $as_echo "$ac_log"
8360} >&5
8361
8362_ACEOF
8363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8364_ACEOF
8365
8366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8367
8368# Handling of arguments.
8369for ac_config_target in $ac_config_targets
8370do
8371  case $ac_config_target in
8372    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8373    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8374    "renderservers.cfg") CONFIG_FILES="$CONFIG_FILES renderservers.cfg" ;;
8375    "renderservers.tcl") CONFIG_FILES="$CONFIG_FILES renderservers.tcl" ;;
8376    "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;;
8377
8378  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8379  esac
8380done
8381
8382
8383# If the user did not use the arguments to specify the items to instantiate,
8384# then the envvar interface is used.  Set only those that are not.
8385# We use the long form for the default assignment because of an extremely
8386# bizarre bug on SunOS 4.1.3.
8387if $ac_need_defaults; then
8388  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8389  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8390fi
8391
8392# Have a temporary directory for convenience.  Make it in the build tree
8393# simply because there is no reason against having it here, and in addition,
8394# creating and moving files from /tmp can sometimes cause problems.
8395# Hook for its removal unless debugging.
8396# Note that there is a small window in which the directory will not be cleaned:
8397# after its creation but before its name has been assigned to `$tmp'.
8398$debug ||
8399{
8400  tmp= ac_tmp=
8401  trap 'exit_status=$?
8402  : "${ac_tmp:=$tmp}"
8403  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8404' 0
8405  trap 'as_fn_exit 1' 1 2 13 15
8406}
8407# Create a (secure) tmp directory for tmp files.
8408
8409{
8410  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8411  test -d "$tmp"
8412}  ||
8413{
8414  tmp=./conf$$-$RANDOM
8415  (umask 077 && mkdir "$tmp")
8416} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8417ac_tmp=$tmp
8418
8419# Set up the scripts for CONFIG_FILES section.
8420# No need to generate them if there are no CONFIG_FILES.
8421# This happens for instance with `./config.status config.h'.
8422if test -n "$CONFIG_FILES"; then
8423
8424
8425ac_cr=`echo X | tr X '\015'`
8426# On cygwin, bash can eat \r inside `` if the user requested igncr.
8427# But we know of no other shell where ac_cr would be empty at this
8428# point, so we can use a bashism as a fallback.
8429if test "x$ac_cr" = x; then
8430  eval ac_cr=\$\'\\r\'
8431fi
8432ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8433if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8434  ac_cs_awk_cr='\\r'
8435else
8436  ac_cs_awk_cr=$ac_cr
8437fi
8438
8439echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8440_ACEOF
8441
8442
8443{
8444  echo "cat >conf$$subs.awk <<_ACEOF" &&
8445  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8446  echo "_ACEOF"
8447} >conf$$subs.sh ||
8448  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8449ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8450ac_delim='%!_!# '
8451for ac_last_try in false false false false false :; do
8452  . ./conf$$subs.sh ||
8453    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8454
8455  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8456  if test $ac_delim_n = $ac_delim_num; then
8457    break
8458  elif $ac_last_try; then
8459    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8460  else
8461    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8462  fi
8463done
8464rm -f conf$$subs.sh
8465
8466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8467cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8468_ACEOF
8469sed -n '
8470h
8471s/^/S["/; s/!.*/"]=/
8472p
8473g
8474s/^[^!]*!//
8475:repl
8476t repl
8477s/'"$ac_delim"'$//
8478t delim
8479:nl
8480h
8481s/\(.\{148\}\)..*/\1/
8482t more1
8483s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8484p
8485n
8486b repl
8487:more1
8488s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8489p
8490g
8491s/.\{148\}//
8492t nl
8493:delim
8494h
8495s/\(.\{148\}\)..*/\1/
8496t more2
8497s/["\\]/\\&/g; s/^/"/; s/$/"/
8498p
8499b
8500:more2
8501s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8502p
8503g
8504s/.\{148\}//
8505t delim
8506' <conf$$subs.awk | sed '
8507/^[^""]/{
8508  N
8509  s/\n//
8510}
8511' >>$CONFIG_STATUS || ac_write_fail=1
8512rm -f conf$$subs.awk
8513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8514_ACAWK
8515cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8516  for (key in S) S_is_set[key] = 1
8517  FS = ""
8518
8519}
8520{
8521  line = $ 0
8522  nfields = split(line, field, "@")
8523  substed = 0
8524  len = length(field[1])
8525  for (i = 2; i < nfields; i++) {
8526    key = field[i]
8527    keylen = length(key)
8528    if (S_is_set[key]) {
8529      value = S[key]
8530      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8531      len += length(value) + length(field[++i])
8532      substed = 1
8533    } else
8534      len += 1 + keylen
8535  }
8536
8537  print line
8538}
8539
8540_ACAWK
8541_ACEOF
8542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8543if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8544  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8545else
8546  cat
8547fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8548  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8549_ACEOF
8550
8551# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8552# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8553# trailing colons and then remove the whole line if VPATH becomes empty
8554# (actually we leave an empty line to preserve line numbers).
8555if test "x$srcdir" = x.; then
8556  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8557h
8558s///
8559s/^/:/
8560s/[      ]*$/:/
8561s/:\$(srcdir):/:/g
8562s/:\${srcdir}:/:/g
8563s/:@srcdir@:/:/g
8564s/^:*//
8565s/:*$//
8566x
8567s/\(=[   ]*\).*/\1/
8568G
8569s/\n//
8570s/^[^=]*=[       ]*$//
8571}'
8572fi
8573
8574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8575fi # test -n "$CONFIG_FILES"
8576
8577# Set up the scripts for CONFIG_HEADERS section.
8578# No need to generate them if there are no CONFIG_HEADERS.
8579# This happens for instance with `./config.status Makefile'.
8580if test -n "$CONFIG_HEADERS"; then
8581cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8582BEGIN {
8583_ACEOF
8584
8585# Transform confdefs.h into an awk script `defines.awk', embedded as
8586# here-document in config.status, that substitutes the proper values into
8587# config.h.in to produce config.h.
8588
8589# Create a delimiter string that does not exist in confdefs.h, to ease
8590# handling of long lines.
8591ac_delim='%!_!# '
8592for ac_last_try in false false :; do
8593  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8594  if test -z "$ac_tt"; then
8595    break
8596  elif $ac_last_try; then
8597    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8598  else
8599    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8600  fi
8601done
8602
8603# For the awk script, D is an array of macro values keyed by name,
8604# likewise P contains macro parameters if any.  Preserve backslash
8605# newline sequences.
8606
8607ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8608sed -n '
8609s/.\{148\}/&'"$ac_delim"'/g
8610t rset
8611:rset
8612s/^[     ]*#[    ]*define[       ][      ]*/ /
8613t def
8614d
8615:def
8616s/\\$//
8617t bsnl
8618s/["\\]/\\&/g
8619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8620D["\1"]=" \3"/p
8621s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8622d
8623:bsnl
8624s/["\\]/\\&/g
8625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8626D["\1"]=" \3\\\\\\n"\\/p
8627t cont
8628s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8629t cont
8630d
8631:cont
8632n
8633s/.\{148\}/&'"$ac_delim"'/g
8634t clear
8635:clear
8636s/\\$//
8637t bsnlc
8638s/["\\]/\\&/g; s/^/"/; s/$/"/p
8639d
8640:bsnlc
8641s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8642b cont
8643' <confdefs.h | sed '
8644s/'"$ac_delim"'/"\\\
8645"/g' >>$CONFIG_STATUS || ac_write_fail=1
8646
8647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8648  for (key in D) D_is_set[key] = 1
8649  FS = ""
8650}
8651/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8652  line = \$ 0
8653  split(line, arg, " ")
8654  if (arg[1] == "#") {
8655    defundef = arg[2]
8656    mac1 = arg[3]
8657  } else {
8658    defundef = substr(arg[1], 2)
8659    mac1 = arg[2]
8660  }
8661  split(mac1, mac2, "(") #)
8662  macro = mac2[1]
8663  prefix = substr(line, 1, index(line, defundef) - 1)
8664  if (D_is_set[macro]) {
8665    # Preserve the white space surrounding the "#".
8666    print prefix "define", macro P[macro] D[macro]
8667    next
8668  } else {
8669    # Replace #undef with comments.  This is necessary, for example,
8670    # in the case of _POSIX_SOURCE, which is predefined and required
8671    # on some systems where configure will not decide to define it.
8672    if (defundef == "undef") {
8673      print "/*", prefix defundef, macro, "*/"
8674      next
8675    }
8676  }
8677}
8678{ print }
8679_ACAWK
8680_ACEOF
8681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8682  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8683fi # test -n "$CONFIG_HEADERS"
8684
8685
8686eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8687shift
8688for ac_tag
8689do
8690  case $ac_tag in
8691  :[FHLC]) ac_mode=$ac_tag; continue;;
8692  esac
8693  case $ac_mode$ac_tag in
8694  :[FHL]*:*);;
8695  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8696  :[FH]-) ac_tag=-:-;;
8697  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8698  esac
8699  ac_save_IFS=$IFS
8700  IFS=:
8701  set x $ac_tag
8702  IFS=$ac_save_IFS
8703  shift
8704  ac_file=$1
8705  shift
8706
8707  case $ac_mode in
8708  :L) ac_source=$1;;
8709  :[FH])
8710    ac_file_inputs=
8711    for ac_f
8712    do
8713      case $ac_f in
8714      -) ac_f="$ac_tmp/stdin";;
8715      *) # Look for the file first in the build tree, then in the source tree
8716         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8717         # because $ac_f cannot contain `:'.
8718         test -f "$ac_f" ||
8719           case $ac_f in
8720           [\\/$]*) false;;
8721           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8722           esac ||
8723           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8724      esac
8725      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8726      as_fn_append ac_file_inputs " '$ac_f'"
8727    done
8728
8729    # Let's still pretend it is `configure' which instantiates (i.e., don't
8730    # use $as_me), people would be surprised to read:
8731    #    /* config.h.  Generated by config.status.  */
8732    configure_input='Generated from '`
8733          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8734        `' by configure.'
8735    if test x"$ac_file" != x-; then
8736      configure_input="$ac_file.  $configure_input"
8737      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8738$as_echo "$as_me: creating $ac_file" >&6;}
8739    fi
8740    # Neutralize special characters interpreted by sed in replacement strings.
8741    case $configure_input in #(
8742    *\&* | *\|* | *\\* )
8743       ac_sed_conf_input=`$as_echo "$configure_input" |
8744       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8745    *) ac_sed_conf_input=$configure_input;;
8746    esac
8747
8748    case $ac_tag in
8749    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8750      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8751    esac
8752    ;;
8753  esac
8754
8755  ac_dir=`$as_dirname -- "$ac_file" ||
8756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8757         X"$ac_file" : 'X\(//\)[^/]' \| \
8758         X"$ac_file" : 'X\(//\)$' \| \
8759         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8760$as_echo X"$ac_file" |
8761    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8762            s//\1/
8763            q
8764          }
8765          /^X\(\/\/\)[^/].*/{
8766            s//\1/
8767            q
8768          }
8769          /^X\(\/\/\)$/{
8770            s//\1/
8771            q
8772          }
8773          /^X\(\/\).*/{
8774            s//\1/
8775            q
8776          }
8777          s/.*/./; q'`
8778  as_dir="$ac_dir"; as_fn_mkdir_p
8779  ac_builddir=.
8780
8781case "$ac_dir" in
8782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8783*)
8784  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8785  # A ".." for each directory in $ac_dir_suffix.
8786  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8787  case $ac_top_builddir_sub in
8788  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8789  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8790  esac ;;
8791esac
8792ac_abs_top_builddir=$ac_pwd
8793ac_abs_builddir=$ac_pwd$ac_dir_suffix
8794# for backward compatibility:
8795ac_top_builddir=$ac_top_build_prefix
8796
8797case $srcdir in
8798  .)  # We are building in place.
8799    ac_srcdir=.
8800    ac_top_srcdir=$ac_top_builddir_sub
8801    ac_abs_top_srcdir=$ac_pwd ;;
8802  [\\/]* | ?:[\\/]* )  # Absolute name.
8803    ac_srcdir=$srcdir$ac_dir_suffix;
8804    ac_top_srcdir=$srcdir
8805    ac_abs_top_srcdir=$srcdir ;;
8806  *) # Relative name.
8807    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8808    ac_top_srcdir=$ac_top_build_prefix$srcdir
8809    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8810esac
8811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8812
8813
8814  case $ac_mode in
8815  :F)
8816  #
8817  # CONFIG_FILE
8818  #
8819
8820  case $INSTALL in
8821  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8822  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8823  esac
8824  ac_MKDIR_P=$MKDIR_P
8825  case $MKDIR_P in
8826  [\\/$]* | ?:[\\/]* ) ;;
8827  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8828  esac
8829_ACEOF
8830
8831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8832# If the template does not know about datarootdir, expand it.
8833# FIXME: This hack should be removed a few years after 2.60.
8834ac_datarootdir_hack=; ac_datarootdir_seen=
8835ac_sed_dataroot='
8836/datarootdir/ {
8837  p
8838  q
8839}
8840/@datadir@/p
8841/@docdir@/p
8842/@infodir@/p
8843/@localedir@/p
8844/@mandir@/p'
8845case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8846*datarootdir*) ac_datarootdir_seen=yes;;
8847*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8849$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8850_ACEOF
8851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8852  ac_datarootdir_hack='
8853  s&@datadir@&$datadir&g
8854  s&@docdir@&$docdir&g
8855  s&@infodir@&$infodir&g
8856  s&@localedir@&$localedir&g
8857  s&@mandir@&$mandir&g
8858  s&\\\${datarootdir}&$datarootdir&g' ;;
8859esac
8860_ACEOF
8861
8862# Neutralize VPATH when `$srcdir' = `.'.
8863# Shell code in configure.ac might set extrasub.
8864# FIXME: do we really want to maintain this feature?
8865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8866ac_sed_extra="$ac_vpsub
8867$extrasub
8868_ACEOF
8869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8870:t
8871/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8872s|@configure_input@|$ac_sed_conf_input|;t t
8873s&@top_builddir@&$ac_top_builddir_sub&;t t
8874s&@top_build_prefix@&$ac_top_build_prefix&;t t
8875s&@srcdir@&$ac_srcdir&;t t
8876s&@abs_srcdir@&$ac_abs_srcdir&;t t
8877s&@top_srcdir@&$ac_top_srcdir&;t t
8878s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8879s&@builddir@&$ac_builddir&;t t
8880s&@abs_builddir@&$ac_abs_builddir&;t t
8881s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8882s&@INSTALL@&$ac_INSTALL&;t t
8883s&@MKDIR_P@&$ac_MKDIR_P&;t t
8884$ac_datarootdir_hack
8885"
8886eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8887  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8888
8889test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8890  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8891  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8892      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8894which seems to be undefined.  Please make sure it is defined" >&5
8895$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8896which seems to be undefined.  Please make sure it is defined" >&2;}
8897
8898  rm -f "$ac_tmp/stdin"
8899  case $ac_file in
8900  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8901  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8902  esac \
8903  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8904 ;;
8905  :H)
8906  #
8907  # CONFIG_HEADER
8908  #
8909  if test x"$ac_file" != x-; then
8910    {
8911      $as_echo "/* $configure_input  */" \
8912      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8913    } >"$ac_tmp/config.h" \
8914      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8915    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8916      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8917$as_echo "$as_me: $ac_file is unchanged" >&6;}
8918    else
8919      rm -f "$ac_file"
8920      mv "$ac_tmp/config.h" "$ac_file" \
8921        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8922    fi
8923  else
8924    $as_echo "/* $configure_input  */" \
8925      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8926      || as_fn_error $? "could not create -" "$LINENO" 5
8927  fi
8928 ;;
8929
8930
8931  esac
8932
8933done # for ac_tag
8934
8935
8936as_fn_exit 0
8937_ACEOF
8938ac_clean_files=$ac_clean_files_save
8939
8940test $ac_write_fail = 0 ||
8941  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8942
8943
8944# configure is writing to config.log, and then calls config.status.
8945# config.status does its own redirection, appending to config.log.
8946# Unfortunately, on DOS this fails, as config.log is still kept open
8947# by configure, so config.status won't be able to write to it; its
8948# output is simply discarded.  So we exec the FD to /dev/null,
8949# effectively closing config.log, so it can be properly (re)opened and
8950# appended to by config.status.  When coming back to configure, we
8951# need to make the FD available again.
8952if test "$no_create" != yes; then
8953  ac_cs_success=:
8954  ac_config_status_args=
8955  test "$silent" = yes &&
8956    ac_config_status_args="$ac_config_status_args --quiet"
8957  exec 5>/dev/null
8958  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8959  exec 5>>config.log
8960  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8961  # would make configure fail if this is the last instruction.
8962  $ac_cs_success || as_fn_exit 1
8963fi
8964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8967fi
8968
Note: See TracBrowser for help on using the repository browser.