source: branches/r9/packages/video/configure @ 4867

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