source: branches/r9/lib/configure @ 4860

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