Changeset 3061 for branches/blt4


Ignore:
Timestamp:
Jun 27, 2012, 8:38:30 AM (12 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/packages/vizservers
Files:
6 deleted
39 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/configure

    r2936 r3061  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.63 for vizservers 0.1.
     3# Generated by GNU Autoconf 2.69 for vizservers 0.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
     7#
     8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
     9#
     10#
    911# This configure script is free software; the Free Software Foundation
    1012# gives unlimited permission to copy, distribute and modify it.
    11 ## --------------------- ##
    12 ## M4sh Initialization.  ##
    13 ## --------------------- ##
     13## -------------------- ##
     14## M4sh Initialization. ##
     15## -------------------- ##
    1416
    1517# Be more Bourne compatible
    1618DUALCASE=1; export DUALCASE # for MKS sh
    17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    1820  emulate sh
    1921  NULLCMD=:
     
    2325  setopt NO_GLOB_SUBST
    2426else
    25   case `(set -o) 2>/dev/null` in
    26   *posix*) set -o posix ;;
     27  case `(set -o) 2>/dev/null` in #(
     28  *posix*) :
     29    set -o posix ;; #(
     30  *) :
     31     ;;
    2732esac
    28 
    29 fi
    30 
    31 
    32 
    33 
    34 # PATH needs CR
    35 # Avoid depending upon Character Ranges.
    36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    39 as_cr_digits='0123456789'
    40 as_cr_alnum=$as_cr_Letters$as_cr_digits
     33fi
     34
    4135
    4236as_nl='
     
    4741as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    4842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     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
    5050  as_echo='printf %s\n'
    5151  as_echo_n='printf %s'
     
    5858    as_echo_n_body='eval
    5959      arg=$1;
    60       case $arg in
     60      case $arg in #(
    6161      *"$as_nl"*)
    6262        expr "X$arg" : "X\\(.*\\)$as_nl";
     
    8181fi
    8282
    83 # Support unset when possible.
    84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    85   as_unset=unset
    86 else
    87   as_unset=false
    88 fi
    89 
    9083
    9184# IFS
     
    9790
    9891# Find who we are.  Look in the path if we contain no directory separator.
    99 case $0 in
     92as_myself=
     93case $0 in #((
    10094  *[\\/]* ) as_myself=$0 ;;
    10195  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    10498  IFS=$as_save_IFS
    10599  test -z "$as_dir" && as_dir=.
    106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    107 done
     100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     101  done
    108102IFS=$as_save_IFS
    109103
     
    117111if test ! -f "$as_myself"; then
    118112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    119   { (exit 1); exit 1; }
    120 fi
    121 
    122 # Work around bugs in pre-3.0 UWIN ksh.
    123 for as_var in ENV MAIL MAILPATH
    124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     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 || :
    125123done
    126124PS1='$ '
     
    134132export LANGUAGE
    135133
    136 # Required to use basename.
     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
    137422if expr a : '\(a\)' >/dev/null 2>&1 &&
    138423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    148433fi
    149434
    150 
    151 # Name of the executable.
     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
    152441as_me=`$as_basename -- "$0" ||
    153442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     
    169458          s/.*/./; q'`
    170459
    171 # CDPATH.
    172 $as_unset CDPATH
    173 
    174 
    175 if test "x$CONFIG_SHELL" = x; then
    176   if (eval ":") 2>/dev/null; then
    177   as_have_required=yes
    178 else
    179   as_have_required=no
    180 fi
    181 
    182   if test $as_have_required = yes &&     (eval ":
    183 (as_func_return () {
    184   (exit \$1)
    185 }
    186 as_func_success () {
    187   as_func_return 0
    188 }
    189 as_func_failure () {
    190   as_func_return 1
    191 }
    192 as_func_ret_success () {
    193   return 0
    194 }
    195 as_func_ret_failure () {
    196   return 1
    197 }
    198 
    199 exitcode=0
    200 if as_func_success; then
    201   :
    202 else
    203   exitcode=1
    204   echo as_func_success failed.
    205 fi
    206 
    207 if as_func_failure; then
    208   exitcode=1
    209   echo as_func_failure succeeded.
    210 fi
    211 
    212 if as_func_ret_success; then
    213   :
    214 else
    215   exitcode=1
    216   echo as_func_ret_success failed.
    217 fi
    218 
    219 if as_func_ret_failure; then
    220   exitcode=1
    221   echo as_func_ret_failure succeeded.
    222 fi
    223 
    224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    225   :
    226 else
    227   exitcode=1
    228   echo positional parameters were not saved.
    229 fi
    230 
    231 test \$exitcode = 0) || { (exit 1); exit 1; }
    232 
    233 (
    234   as_lineno_1=\$LINENO
    235   as_lineno_2=\$LINENO
    236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    238 ") 2> /dev/null; then
    239   :
    240 else
    241   as_candidate_shells=
    242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    244 do
    245   IFS=$as_save_IFS
    246   test -z "$as_dir" && as_dir=.
    247   case $as_dir in
    248          /*)
    249            for as_base in sh bash ksh sh5; do
    250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    251            done;;
    252        esac
    253 done
    254 IFS=$as_save_IFS
    255 
    256 
    257       for as_shell in $as_candidate_shells $SHELL; do
    258          # Try only shells that exist, to save several forks.
    259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
    261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    262   emulate sh
    263   NULLCMD=:
    264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    265   # is contrary to our usage.  Disable this feature.
    266   alias -g '${1+"$@"}'='"$@"'
    267   setopt NO_GLOB_SUBST
    268 else
    269   case `(set -o) 2>/dev/null` in
    270   *posix*) set -o posix ;;
    271 esac
    272 
    273 fi
    274 
    275 
    276 :
    277 _ASEOF
    278 }; then
    279   CONFIG_SHELL=$as_shell
    280                as_have_required=yes
    281                if { "$as_shell" 2> /dev/null <<\_ASEOF
    282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    283   emulate sh
    284   NULLCMD=:
    285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    286   # is contrary to our usage.  Disable this feature.
    287   alias -g '${1+"$@"}'='"$@"'
    288   setopt NO_GLOB_SUBST
    289 else
    290   case `(set -o) 2>/dev/null` in
    291   *posix*) set -o posix ;;
    292 esac
    293 
    294 fi
    295 
    296 
    297 :
    298 (as_func_return () {
    299   (exit $1)
    300 }
    301 as_func_success () {
    302   as_func_return 0
    303 }
    304 as_func_failure () {
    305   as_func_return 1
    306 }
    307 as_func_ret_success () {
    308   return 0
    309 }
    310 as_func_ret_failure () {
    311   return 1
    312 }
    313 
    314 exitcode=0
    315 if as_func_success; then
    316   :
    317 else
    318   exitcode=1
    319   echo as_func_success failed.
    320 fi
    321 
    322 if as_func_failure; then
    323   exitcode=1
    324   echo as_func_failure succeeded.
    325 fi
    326 
    327 if as_func_ret_success; then
    328   :
    329 else
    330   exitcode=1
    331   echo as_func_ret_success failed.
    332 fi
    333 
    334 if as_func_ret_failure; then
    335   exitcode=1
    336   echo as_func_ret_failure succeeded.
    337 fi
    338 
    339 if ( set x; as_func_ret_success y && test x = "$1" ); then
    340   :
    341 else
    342   exitcode=1
    343   echo positional parameters were not saved.
    344 fi
    345 
    346 test $exitcode = 0) || { (exit 1); exit 1; }
    347 
    348 (
    349   as_lineno_1=$LINENO
    350   as_lineno_2=$LINENO
    351   test "x$as_lineno_1" != "x$as_lineno_2" &&
    352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    353 
    354 _ASEOF
    355 }; then
    356   break
    357 fi
    358 
    359 fi
    360 
    361       done
    362 
    363       if test "x$CONFIG_SHELL" != x; then
    364   for as_var in BASH_ENV ENV
    365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    366         done
    367         export CONFIG_SHELL
    368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    369 fi
    370 
    371 
    372     if test $as_have_required = no; then
    373   echo This script requires a shell more modern than all the
    374       echo shells that I found on your system.  Please install a
    375       echo modern shell, or manually run the script under such a
    376       echo shell if you do have one.
    377       { (exit 1); exit 1; }
    378 fi
    379 
    380 
    381 fi
    382 
    383 fi
    384 
    385 
    386 
    387 (eval "as_func_return () {
    388   (exit \$1)
    389 }
    390 as_func_success () {
    391   as_func_return 0
    392 }
    393 as_func_failure () {
    394   as_func_return 1
    395 }
    396 as_func_ret_success () {
    397   return 0
    398 }
    399 as_func_ret_failure () {
    400   return 1
    401 }
    402 
    403 exitcode=0
    404 if as_func_success; then
    405   :
    406 else
    407   exitcode=1
    408   echo as_func_success failed.
    409 fi
    410 
    411 if as_func_failure; then
    412   exitcode=1
    413   echo as_func_failure succeeded.
    414 fi
    415 
    416 if as_func_ret_success; then
    417   :
    418 else
    419   exitcode=1
    420   echo as_func_ret_success failed.
    421 fi
    422 
    423 if as_func_ret_failure; then
    424   exitcode=1
    425   echo as_func_ret_failure succeeded.
    426 fi
    427 
    428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    429   :
    430 else
    431   exitcode=1
    432   echo positional parameters were not saved.
    433 fi
    434 
    435 test \$exitcode = 0") || {
    436   echo No shell found that supports shell functions.
    437   echo Please tell bug-autoconf@gnu.org about your system,
    438   echo including any error possibly output before this message.
    439   echo This can help us improve future autoconf versions.
    440   echo Configuration will now proceed without shell functions.
    441 }
    442 
    443 
    444 
    445   as_lineno_1=$LINENO
    446   as_lineno_2=$LINENO
    447   test "x$as_lineno_1" != "x$as_lineno_2" &&
    448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    449 
    450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    451   # uniformly replaced by the line number.  The first 'sed' inserts a
    452   # line-number line after each line using $LINENO; the second 'sed'
    453   # does the real work.  The second script uses 'N' to pair each
    454   # line-number line with the line containing $LINENO, and appends
    455   # trailing '-' during substitution so that $LINENO is not a special
    456   # case at line end.
    457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    459   # E. McMahon (1931-1989) for sed's syntax.  :-)
     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.  :-)
    460473  sed -n '
    461474    p
     
    474487    ' >$as_me.lineno &&
    475488  chmod +x "$as_me.lineno" ||
    476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    477    { (exit 1); exit 1; }; }
    478 
     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
    479495  # Don't try to exec as it changes $[0], causing all sort of problems
    480496  # (the dirname of $[0] is not the place where we might find the
     
    485501}
    486502
    487 
    488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    489   as_dirname=dirname
    490 else
    491   as_dirname=false
    492 fi
    493 
    494503ECHO_C= ECHO_N= ECHO_T=
    495 case `echo -n x` in
     504case `echo -n x` in #(((((
    496505-n*)
    497   case `echo 'x\c'` in
     506  case `echo 'xy\c'` in
    498507  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    499   *)   ECHO_C='\c';;
     508  xy)  ECHO_C='\c';;
     509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     510       ECHO_T=' ';;
    500511  esac;;
    501512*)
    502513  ECHO_N='-n';;
    503514esac
    504 if expr a : '\(a\)' >/dev/null 2>&1 &&
    505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    506   as_expr=expr
    507 else
    508   as_expr=false
    509 fi
    510515
    511516rm -f conf$$ conf$$.exe conf$$.file
     
    522527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    523528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    524     # In both cases, we have to default to `cp -p'.
     529    # In both cases, we have to default to `cp -pR'.
    525530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    526       as_ln_s='cp -p'
     531      as_ln_s='cp -pR'
    527532  elif ln conf$$.file conf$$ 2>/dev/null; then
    528533    as_ln_s=ln
    529534  else
    530     as_ln_s='cp -p'
     535    as_ln_s='cp -pR'
    531536  fi
    532537else
    533   as_ln_s='cp -p'
     538  as_ln_s='cp -pR'
    534539fi
    535540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    537542
    538543if mkdir -p . 2>/dev/null; then
    539   as_mkdir_p=:
     544  as_mkdir_p='mkdir -p "$as_dir"'
    540545else
    541546  test -d ./-p && rmdir ./-p
     
    543548fi
    544549
    545 if test -x / >/dev/null 2>&1; then
    546   as_test_x='test -x'
    547 else
    548   if ls -dL / >/dev/null 2>&1; then
    549     as_ls_L_option=L
    550   else
    551     as_ls_L_option=
    552   fi
    553   as_test_x='
    554     eval sh -c '\''
    555       if test -d "$1"; then
    556         test -d "$1/.";
    557       else
    558         case $1 in
    559         -*)set "./$1";;
    560         esac;
    561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    562         ???[sx]*):;;*)false;;esac;fi
    563     '\'' sh
    564   '
    565 fi
    566 as_executable_p=$as_test_x
     550as_test_x='test -x'
     551as_executable_p=as_fn_executable_p
    567552
    568553# Sed expression to map a string onto a valid CPP name.
     
    573558
    574559
    575 
    576 exec 7<&0 </dev/null 6>&1
     560test -n "$DJDIR" || exec 7<&0 </dev/null
     561exec 6>&1
    577562
    578563# Name of the host.
    579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    580565# so uname gets run too.
    581566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    592577MFLAGS=
    593578MAKEFLAGS=
    594 SHELL=${CONFIG_SHELL-/bin/sh}
    595579
    596580# Identity of this package.
     
    600584PACKAGE_STRING='vizservers 0.1'
    601585PACKAGE_BUGREPORT='rappture@nanohub.org'
     586PACKAGE_URL=''
    602587
    603588# Factoring default headers for most tests.
     
    736721prefix
    737722exec_prefix
     723PACKAGE_URL
    738724PACKAGE_BUGREPORT
    739725PACKAGE_STRING
     
    834820
    835821  case $ac_option in
    836   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    837   *)    ac_optarg=yes ;;
     822  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     823  *=)   ac_optarg= ;;
     824  *)    ac_optarg=yes ;;
    838825  esac
    839826
     
    880867    # Reject names that are not valid shell variable names.
    881868    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    882       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
    883    { (exit 1); exit 1; }; }
     869      as_fn_error $? "invalid feature name: $ac_useropt"
    884870    ac_useropt_orig=$ac_useropt
    885871    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    907893    # Reject names that are not valid shell variable names.
    908894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    909       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
    910    { (exit 1); exit 1; }; }
     895      as_fn_error $? "invalid feature name: $ac_useropt"
    911896    ac_useropt_orig=$ac_useropt
    912897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11121097    # Reject names that are not valid shell variable names.
    11131098    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1114       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
    1115    { (exit 1); exit 1; }; }
     1099      as_fn_error $? "invalid package name: $ac_useropt"
    11161100    ac_useropt_orig=$ac_useropt
    11171101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11291113    # Reject names that are not valid shell variable names.
    11301114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1131       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
    1132    { (exit 1); exit 1; }; }
     1115      as_fn_error $? "invalid package name: $ac_useropt"
    11331116    ac_useropt_orig=$ac_useropt
    11341117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11601143    x_libraries=$ac_optarg ;;
    11611144
    1162   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
    1163 Try \`$0 --help' for more information." >&2
    1164    { (exit 1); exit 1; }; }
     1145  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1146Try \`$0 --help' for more information"
    11651147    ;;
    11661148
     
    11681150    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    11691151    # Reject names that are not valid shell variable names.
    1170     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    1171       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    1172    { (exit 1); exit 1; }; }
     1152    case $ac_envvar in #(
     1153      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1154      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1155    esac
    11731156    eval $ac_envvar=\$ac_optarg
    11741157    export $ac_envvar ;;
     
    11791162    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    11801163      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    1181     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     1164    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    11821165    ;;
    11831166
     
    11871170if test -n "$ac_prev"; then
    11881171  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1189   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
    1190    { (exit 1); exit 1; }; }
     1172  as_fn_error $? "missing argument to $ac_option"
    11911173fi
    11921174
     
    11941176  case $enable_option_checking in
    11951177    no) ;;
    1196     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
    1197    { (exit 1); exit 1; }; } ;;
     1178    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    11981179    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    11991180  esac
     
    12181199    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    12191200  esac
    1220   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    1221    { (exit 1); exit 1; }; }
     1201  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    12221202done
    12231203
     
    12331213  if test "x$build_alias" = x; then
    12341214    cross_compiling=maybe
    1235     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    1236     If a cross compiler is detected then cross compile mode will be used." >&2
    12371215  elif test "x$build_alias" != "x$host_alias"; then
    12381216    cross_compiling=yes
     
    12491227ac_ls_di=`ls -di .` &&
    12501228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1251   { $as_echo "$as_me: error: working directory cannot be determined" >&2
    1252    { (exit 1); exit 1; }; }
     1229  as_fn_error $? "working directory cannot be determined"
    12531230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1254   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
    1255    { (exit 1); exit 1; }; }
     1231  as_fn_error $? "pwd does not report name of working directory"
    12561232
    12571233
     
    12921268if test ! -r "$srcdir/$ac_unique_file"; then
    12931269  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1294   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    1295    { (exit 1); exit 1; }; }
     1270  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
    12961271fi
    12971272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    12981273ac_abs_confdir=`(
    1299         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
    1300    { (exit 1); exit 1; }; }
     1274        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
    13011275        pwd)`
    13021276# When building in place, set srcdir=.
     
    13381312      --help=recursive    display the short help of all the included packages
    13391313  -V, --version           display version information and exit
    1340   -q, --quiet, --silent   do not print \`checking...' messages
     1314  -q, --quiet, --silent   do not print \`checking ...' messages
    13411315      --cache-file=FILE   cache test results in FILE [disabled]
    13421316  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    14211395              nonstandard directory <lib dir>
    14221396  LIBS        libraries to pass to the linker, e.g. -l<library>
    1423   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
     1397  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    14241398              you have headers in a nonstandard directory <include dir>
    14251399  CPP         C preprocessor
     
    14961470  cat <<\_ACEOF
    14971471vizservers configure 0.1
    1498 generated by GNU Autoconf 2.63
    1499 
    1500 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    1501 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
     1472generated by GNU Autoconf 2.69
     1473
     1474Copyright (C) 2012 Free Software Foundation, Inc.
    15021475This configure script is free software; the Free Software Foundation
    15031476gives unlimited permission to copy, distribute and modify it.
     
    15051478  exit
    15061479fi
     1480
     1481## ------------------------ ##
     1482## Autoconf initialization. ##
     1483## ------------------------ ##
     1484
     1485# ac_fn_c_try_compile LINENO
     1486# --------------------------
     1487# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1488ac_fn_c_try_compile ()
     1489{
     1490  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1491  rm -f conftest.$ac_objext
     1492  if { { ac_try="$ac_compile"
     1493case "(($ac_try" in
     1494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1495  *) ac_try_echo=$ac_try;;
     1496esac
     1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1498$as_echo "$ac_try_echo"; } >&5
     1499  (eval "$ac_compile") 2>conftest.err
     1500  ac_status=$?
     1501  if test -s conftest.err; then
     1502    grep -v '^ *+' conftest.err >conftest.er1
     1503    cat conftest.er1 >&5
     1504    mv -f conftest.er1 conftest.err
     1505  fi
     1506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1507  test $ac_status = 0; } && {
     1508         test -z "$ac_c_werror_flag" ||
     1509         test ! -s conftest.err
     1510       } && test -s conftest.$ac_objext; then :
     1511  ac_retval=0
     1512else
     1513  $as_echo "$as_me: failed program was:" >&5
     1514sed 's/^/| /' conftest.$ac_ext >&5
     1515
     1516        ac_retval=1
     1517fi
     1518  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1519  as_fn_set_status $ac_retval
     1520
     1521} # ac_fn_c_try_compile
     1522
     1523# ac_fn_c_try_cpp LINENO
     1524# ----------------------
     1525# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1526ac_fn_c_try_cpp ()
     1527{
     1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1529  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1530case "(($ac_try" in
     1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1532  *) ac_try_echo=$ac_try;;
     1533esac
     1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1535$as_echo "$ac_try_echo"; } >&5
     1536  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1537  ac_status=$?
     1538  if test -s conftest.err; then
     1539    grep -v '^ *+' conftest.err >conftest.er1
     1540    cat conftest.er1 >&5
     1541    mv -f conftest.er1 conftest.err
     1542  fi
     1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1544  test $ac_status = 0; } > conftest.i && {
     1545         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1546         test ! -s conftest.err
     1547       }; then :
     1548  ac_retval=0
     1549else
     1550  $as_echo "$as_me: failed program was:" >&5
     1551sed 's/^/| /' conftest.$ac_ext >&5
     1552
     1553    ac_retval=1
     1554fi
     1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1556  as_fn_set_status $ac_retval
     1557
     1558} # ac_fn_c_try_cpp
     1559
     1560# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1561# -------------------------------------------------------
     1562# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1563# the include files in INCLUDES and setting the cache variable VAR
     1564# accordingly.
     1565ac_fn_c_check_header_mongrel ()
     1566{
     1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1568  if eval \${$3+:} false; then :
     1569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1570$as_echo_n "checking for $2... " >&6; }
     1571if eval \${$3+:} false; then :
     1572  $as_echo_n "(cached) " >&6
     1573fi
     1574eval ac_res=\$$3
     1575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1576$as_echo "$ac_res" >&6; }
     1577else
     1578  # Is the header compilable?
     1579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1580$as_echo_n "checking $2 usability... " >&6; }
     1581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1582/* end confdefs.h.  */
     1583$4
     1584#include <$2>
     1585_ACEOF
     1586if ac_fn_c_try_compile "$LINENO"; then :
     1587  ac_header_compiler=yes
     1588else
     1589  ac_header_compiler=no
     1590fi
     1591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1593$as_echo "$ac_header_compiler" >&6; }
     1594
     1595# Is the header present?
     1596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1597$as_echo_n "checking $2 presence... " >&6; }
     1598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1599/* end confdefs.h.  */
     1600#include <$2>
     1601_ACEOF
     1602if ac_fn_c_try_cpp "$LINENO"; then :
     1603  ac_header_preproc=yes
     1604else
     1605  ac_header_preproc=no
     1606fi
     1607rm -f conftest.err conftest.i conftest.$ac_ext
     1608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1609$as_echo "$ac_header_preproc" >&6; }
     1610
     1611# So?  What about this header?
     1612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1613  yes:no: )
     1614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1615$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1616    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1617$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1618    ;;
     1619  no:yes:* )
     1620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1621$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1622    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1623$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1625$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1627$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1629$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1630( $as_echo "## ----------------------------------- ##
     1631## Report this to rappture@nanohub.org ##
     1632## ----------------------------------- ##"
     1633     ) | sed "s/^/$as_me: WARNING:     /" >&2
     1634    ;;
     1635esac
     1636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1637$as_echo_n "checking for $2... " >&6; }
     1638if eval \${$3+:} false; then :
     1639  $as_echo_n "(cached) " >&6
     1640else
     1641  eval "$3=\$ac_header_compiler"
     1642fi
     1643eval ac_res=\$$3
     1644               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1645$as_echo "$ac_res" >&6; }
     1646fi
     1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1648
     1649} # ac_fn_c_check_header_mongrel
     1650
     1651# ac_fn_c_try_run LINENO
     1652# ----------------------
     1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1654# that executables *can* be run.
     1655ac_fn_c_try_run ()
     1656{
     1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1658  if { { ac_try="$ac_link"
     1659case "(($ac_try" in
     1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1661  *) ac_try_echo=$ac_try;;
     1662esac
     1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1664$as_echo "$ac_try_echo"; } >&5
     1665  (eval "$ac_link") 2>&5
     1666  ac_status=$?
     1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1668  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1669  { { case "(($ac_try" in
     1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1671  *) ac_try_echo=$ac_try;;
     1672esac
     1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1674$as_echo "$ac_try_echo"; } >&5
     1675  (eval "$ac_try") 2>&5
     1676  ac_status=$?
     1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1678  test $ac_status = 0; }; }; then :
     1679  ac_retval=0
     1680else
     1681  $as_echo "$as_me: program exited with status $ac_status" >&5
     1682       $as_echo "$as_me: failed program was:" >&5
     1683sed 's/^/| /' conftest.$ac_ext >&5
     1684
     1685       ac_retval=$ac_status
     1686fi
     1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1689  as_fn_set_status $ac_retval
     1690
     1691} # ac_fn_c_try_run
     1692
     1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1694# -------------------------------------------------------
     1695# Tests whether HEADER exists and can be compiled using the include files in
     1696# INCLUDES, setting the cache variable VAR accordingly.
     1697ac_fn_c_check_header_compile ()
     1698{
     1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1701$as_echo_n "checking for $2... " >&6; }
     1702if eval \${$3+:} false; then :
     1703  $as_echo_n "(cached) " >&6
     1704else
     1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1706/* end confdefs.h.  */
     1707$4
     1708#include <$2>
     1709_ACEOF
     1710if ac_fn_c_try_compile "$LINENO"; then :
     1711  eval "$3=yes"
     1712else
     1713  eval "$3=no"
     1714fi
     1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1716fi
     1717eval ac_res=\$$3
     1718               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1719$as_echo "$ac_res" >&6; }
     1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1721
     1722} # ac_fn_c_check_header_compile
     1723
     1724# ac_fn_c_try_link LINENO
     1725# -----------------------
     1726# Try to link conftest.$ac_ext, and return whether this succeeded.
     1727ac_fn_c_try_link ()
     1728{
     1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1730  rm -f conftest.$ac_objext conftest$ac_exeext
     1731  if { { ac_try="$ac_link"
     1732case "(($ac_try" in
     1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1734  *) ac_try_echo=$ac_try;;
     1735esac
     1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1737$as_echo "$ac_try_echo"; } >&5
     1738  (eval "$ac_link") 2>conftest.err
     1739  ac_status=$?
     1740  if test -s conftest.err; then
     1741    grep -v '^ *+' conftest.err >conftest.er1
     1742    cat conftest.er1 >&5
     1743    mv -f conftest.er1 conftest.err
     1744  fi
     1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1746  test $ac_status = 0; } && {
     1747         test -z "$ac_c_werror_flag" ||
     1748         test ! -s conftest.err
     1749       } && test -s conftest$ac_exeext && {
     1750         test "$cross_compiling" = yes ||
     1751         test -x conftest$ac_exeext
     1752       }; then :
     1753  ac_retval=0
     1754else
     1755  $as_echo "$as_me: failed program was:" >&5
     1756sed 's/^/| /' conftest.$ac_ext >&5
     1757
     1758        ac_retval=1
     1759fi
     1760  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1761  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1762  # interfere with the next link command; also delete a directory that is
     1763  # left behind by Apple's compiler.  We do this before executing the actions.
     1764  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1766  as_fn_set_status $ac_retval
     1767
     1768} # ac_fn_c_try_link
     1769
     1770# ac_fn_cxx_try_compile LINENO
     1771# ----------------------------
     1772# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1773ac_fn_cxx_try_compile ()
     1774{
     1775  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1776  rm -f conftest.$ac_objext
     1777  if { { ac_try="$ac_compile"
     1778case "(($ac_try" in
     1779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1780  *) ac_try_echo=$ac_try;;
     1781esac
     1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1783$as_echo "$ac_try_echo"; } >&5
     1784  (eval "$ac_compile") 2>conftest.err
     1785  ac_status=$?
     1786  if test -s conftest.err; then
     1787    grep -v '^ *+' conftest.err >conftest.er1
     1788    cat conftest.er1 >&5
     1789    mv -f conftest.er1 conftest.err
     1790  fi
     1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1792  test $ac_status = 0; } && {
     1793         test -z "$ac_cxx_werror_flag" ||
     1794         test ! -s conftest.err
     1795       } && test -s conftest.$ac_objext; then :
     1796  ac_retval=0
     1797else
     1798  $as_echo "$as_me: failed program was:" >&5
     1799sed 's/^/| /' conftest.$ac_ext >&5
     1800
     1801        ac_retval=1
     1802fi
     1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1804  as_fn_set_status $ac_retval
     1805
     1806} # ac_fn_cxx_try_compile
     1807
     1808# ac_fn_cxx_try_cpp LINENO
     1809# ------------------------
     1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1811ac_fn_cxx_try_cpp ()
     1812{
     1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1814  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1815case "(($ac_try" in
     1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1817  *) ac_try_echo=$ac_try;;
     1818esac
     1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1820$as_echo "$ac_try_echo"; } >&5
     1821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1822  ac_status=$?
     1823  if test -s conftest.err; then
     1824    grep -v '^ *+' conftest.err >conftest.er1
     1825    cat conftest.er1 >&5
     1826    mv -f conftest.er1 conftest.err
     1827  fi
     1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1829  test $ac_status = 0; } > conftest.i && {
     1830         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     1831         test ! -s conftest.err
     1832       }; then :
     1833  ac_retval=0
     1834else
     1835  $as_echo "$as_me: failed program was:" >&5
     1836sed 's/^/| /' conftest.$ac_ext >&5
     1837
     1838    ac_retval=1
     1839fi
     1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1841  as_fn_set_status $ac_retval
     1842
     1843} # ac_fn_cxx_try_cpp
     1844
     1845# ac_fn_cxx_try_run LINENO
     1846# ------------------------
     1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1848# that executables *can* be run.
     1849ac_fn_cxx_try_run ()
     1850{
     1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1852  if { { ac_try="$ac_link"
     1853case "(($ac_try" in
     1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1855  *) ac_try_echo=$ac_try;;
     1856esac
     1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1858$as_echo "$ac_try_echo"; } >&5
     1859  (eval "$ac_link") 2>&5
     1860  ac_status=$?
     1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1862  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1863  { { case "(($ac_try" in
     1864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1865  *) ac_try_echo=$ac_try;;
     1866esac
     1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1868$as_echo "$ac_try_echo"; } >&5
     1869  (eval "$ac_try") 2>&5
     1870  ac_status=$?
     1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1872  test $ac_status = 0; }; }; then :
     1873  ac_retval=0
     1874else
     1875  $as_echo "$as_me: program exited with status $ac_status" >&5
     1876       $as_echo "$as_me: failed program was:" >&5
     1877sed 's/^/| /' conftest.$ac_ext >&5
     1878
     1879       ac_retval=$ac_status
     1880fi
     1881  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1883  as_fn_set_status $ac_retval
     1884
     1885} # ac_fn_cxx_try_run
     1886
     1887# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
     1888# ----------------------------------------------
     1889# Tries to find the compile-time value of EXPR in a program that includes
     1890# INCLUDES, setting VAR accordingly. Returns whether the value could be
     1891# computed
     1892ac_fn_cxx_compute_int ()
     1893{
     1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1895  if test "$cross_compiling" = yes; then
     1896    # Depending upon the size, compute the lo and hi bounds.
     1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1898/* end confdefs.h.  */
     1899$4
     1900int
     1901main ()
     1902{
     1903static int test_array [1 - 2 * !(($2) >= 0)];
     1904test_array [0] = 0;
     1905return test_array [0];
     1906
     1907  ;
     1908  return 0;
     1909}
     1910_ACEOF
     1911if ac_fn_cxx_try_compile "$LINENO"; then :
     1912  ac_lo=0 ac_mid=0
     1913  while :; do
     1914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1915/* end confdefs.h.  */
     1916$4
     1917int
     1918main ()
     1919{
     1920static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     1921test_array [0] = 0;
     1922return test_array [0];
     1923
     1924  ;
     1925  return 0;
     1926}
     1927_ACEOF
     1928if ac_fn_cxx_try_compile "$LINENO"; then :
     1929  ac_hi=$ac_mid; break
     1930else
     1931  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
     1932                        if test $ac_lo -le $ac_mid; then
     1933                          ac_lo= ac_hi=
     1934                          break
     1935                        fi
     1936                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
     1937fi
     1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1939  done
     1940else
     1941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1942/* end confdefs.h.  */
     1943$4
     1944int
     1945main ()
     1946{
     1947static int test_array [1 - 2 * !(($2) < 0)];
     1948test_array [0] = 0;
     1949return test_array [0];
     1950
     1951  ;
     1952  return 0;
     1953}
     1954_ACEOF
     1955if ac_fn_cxx_try_compile "$LINENO"; then :
     1956  ac_hi=-1 ac_mid=-1
     1957  while :; do
     1958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1959/* end confdefs.h.  */
     1960$4
     1961int
     1962main ()
     1963{
     1964static int test_array [1 - 2 * !(($2) >= $ac_mid)];
     1965test_array [0] = 0;
     1966return test_array [0];
     1967
     1968  ;
     1969  return 0;
     1970}
     1971_ACEOF
     1972if ac_fn_cxx_try_compile "$LINENO"; then :
     1973  ac_lo=$ac_mid; break
     1974else
     1975  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
     1976                        if test $ac_mid -le $ac_hi; then
     1977                          ac_lo= ac_hi=
     1978                          break
     1979                        fi
     1980                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
     1981fi
     1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1983  done
     1984else
     1985  ac_lo= ac_hi=
     1986fi
     1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1988fi
     1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1990# Binary search between lo and hi bounds.
     1991while test "x$ac_lo" != "x$ac_hi"; do
     1992  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     1993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1994/* end confdefs.h.  */
     1995$4
     1996int
     1997main ()
     1998{
     1999static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     2000test_array [0] = 0;
     2001return test_array [0];
     2002
     2003  ;
     2004  return 0;
     2005}
     2006_ACEOF
     2007if ac_fn_cxx_try_compile "$LINENO"; then :
     2008  ac_hi=$ac_mid
     2009else
     2010  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
     2011fi
     2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2013done
     2014case $ac_lo in #((
     2015?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
     2016'') ac_retval=1 ;;
     2017esac
     2018  else
     2019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2020/* end confdefs.h.  */
     2021$4
     2022static long int longval () { return $2; }
     2023static unsigned long int ulongval () { return $2; }
     2024#include <stdio.h>
     2025#include <stdlib.h>
     2026int
     2027main ()
     2028{
     2029
     2030  FILE *f = fopen ("conftest.val", "w");
     2031  if (! f)
     2032    return 1;
     2033  if (($2) < 0)
     2034    {
     2035      long int i = longval ();
     2036      if (i != ($2))
     2037        return 1;
     2038      fprintf (f, "%ld", i);
     2039    }
     2040  else
     2041    {
     2042      unsigned long int i = ulongval ();
     2043      if (i != ($2))
     2044        return 1;
     2045      fprintf (f, "%lu", i);
     2046    }
     2047  /* Do not output a trailing newline, as this causes \r\n confusion
     2048     on some platforms.  */
     2049  return ferror (f) || fclose (f) != 0;
     2050
     2051  ;
     2052  return 0;
     2053}
     2054_ACEOF
     2055if ac_fn_cxx_try_run "$LINENO"; then :
     2056  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
     2057else
     2058  ac_retval=1
     2059fi
     2060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     2061  conftest.$ac_objext conftest.beam conftest.$ac_ext
     2062rm -f conftest.val
     2063
     2064  fi
     2065  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2066  as_fn_set_status $ac_retval
     2067
     2068} # ac_fn_cxx_compute_int
     2069
     2070# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
     2071# ---------------------------------------------------------
     2072# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     2073# the include files in INCLUDES and setting the cache variable VAR
     2074# accordingly.
     2075ac_fn_cxx_check_header_mongrel ()
     2076{
     2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2078  if eval \${$3+:} false; then :
     2079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2080$as_echo_n "checking for $2... " >&6; }
     2081if eval \${$3+:} false; then :
     2082  $as_echo_n "(cached) " >&6
     2083fi
     2084eval ac_res=\$$3
     2085               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2086$as_echo "$ac_res" >&6; }
     2087else
     2088  # Is the header compilable?
     2089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     2090$as_echo_n "checking $2 usability... " >&6; }
     2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2092/* end confdefs.h.  */
     2093$4
     2094#include <$2>
     2095_ACEOF
     2096if ac_fn_cxx_try_compile "$LINENO"; then :
     2097  ac_header_compiler=yes
     2098else
     2099  ac_header_compiler=no
     2100fi
     2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     2103$as_echo "$ac_header_compiler" >&6; }
     2104
     2105# Is the header present?
     2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     2107$as_echo_n "checking $2 presence... " >&6; }
     2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2109/* end confdefs.h.  */
     2110#include <$2>
     2111_ACEOF
     2112if ac_fn_cxx_try_cpp "$LINENO"; then :
     2113  ac_header_preproc=yes
     2114else
     2115  ac_header_preproc=no
     2116fi
     2117rm -f conftest.err conftest.i conftest.$ac_ext
     2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     2119$as_echo "$ac_header_preproc" >&6; }
     2120
     2121# So?  What about this header?
     2122case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
     2123  yes:no: )
     2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     2125$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2128    ;;
     2129  no:yes:* )
     2130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     2131$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     2132    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     2133$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     2134    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     2135$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     2136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     2137$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     2138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2139$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2140( $as_echo "## ----------------------------------- ##
     2141## Report this to rappture@nanohub.org ##
     2142## ----------------------------------- ##"
     2143     ) | sed "s/^/$as_me: WARNING:     /" >&2
     2144    ;;
     2145esac
     2146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2147$as_echo_n "checking for $2... " >&6; }
     2148if eval \${$3+:} false; then :
     2149  $as_echo_n "(cached) " >&6
     2150else
     2151  eval "$3=\$ac_header_compiler"
     2152fi
     2153eval ac_res=\$$3
     2154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2155$as_echo "$ac_res" >&6; }
     2156fi
     2157  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2158
     2159} # ac_fn_cxx_check_header_mongrel
     2160
     2161# ac_fn_cxx_try_link LINENO
     2162# -------------------------
     2163# Try to link conftest.$ac_ext, and return whether this succeeded.
     2164ac_fn_cxx_try_link ()
     2165{
     2166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2167  rm -f conftest.$ac_objext conftest$ac_exeext
     2168  if { { ac_try="$ac_link"
     2169case "(($ac_try" in
     2170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2171  *) ac_try_echo=$ac_try;;
     2172esac
     2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2174$as_echo "$ac_try_echo"; } >&5
     2175  (eval "$ac_link") 2>conftest.err
     2176  ac_status=$?
     2177  if test -s conftest.err; then
     2178    grep -v '^ *+' conftest.err >conftest.er1
     2179    cat conftest.er1 >&5
     2180    mv -f conftest.er1 conftest.err
     2181  fi
     2182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2183  test $ac_status = 0; } && {
     2184         test -z "$ac_cxx_werror_flag" ||
     2185         test ! -s conftest.err
     2186       } && test -s conftest$ac_exeext && {
     2187         test "$cross_compiling" = yes ||
     2188         test -x conftest$ac_exeext
     2189       }; then :
     2190  ac_retval=0
     2191else
     2192  $as_echo "$as_me: failed program was:" >&5
     2193sed 's/^/| /' conftest.$ac_ext >&5
     2194
     2195        ac_retval=1
     2196fi
     2197  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     2198  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     2199  # interfere with the next link command; also delete a directory that is
     2200  # left behind by Apple's compiler.  We do this before executing the actions.
     2201  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     2202  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2203  as_fn_set_status $ac_retval
     2204
     2205} # ac_fn_cxx_try_link
     2206
     2207# ac_fn_cxx_check_func LINENO FUNC VAR
     2208# ------------------------------------
     2209# Tests whether FUNC exists, setting the cache variable VAR accordingly
     2210ac_fn_cxx_check_func ()
     2211{
     2212  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2214$as_echo_n "checking for $2... " >&6; }
     2215if eval \${$3+:} false; then :
     2216  $as_echo_n "(cached) " >&6
     2217else
     2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2219/* end confdefs.h.  */
     2220/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     2221   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     2222#define $2 innocuous_$2
     2223
     2224/* System header to define __stub macros and hopefully few prototypes,
     2225    which can conflict with char $2 (); below.
     2226    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2227    <limits.h> exists even on freestanding compilers.  */
     2228
     2229#ifdef __STDC__
     2230# include <limits.h>
     2231#else
     2232# include <assert.h>
     2233#endif
     2234
     2235#undef $2
     2236
     2237/* Override any GCC internal prototype to avoid an error.
     2238   Use char because int might match the return type of a GCC
     2239   builtin and then its argument prototype would still apply.  */
     2240#ifdef __cplusplus
     2241extern "C"
     2242#endif
     2243char $2 ();
     2244/* The GNU C library defines this for functions which it implements
     2245    to always fail with ENOSYS.  Some functions are actually named
     2246    something starting with __ and the normal name is an alias.  */
     2247#if defined __stub_$2 || defined __stub___$2
     2248choke me
     2249#endif
     2250
     2251int
     2252main ()
     2253{
     2254return $2 ();
     2255  ;
     2256  return 0;
     2257}
     2258_ACEOF
     2259if ac_fn_cxx_try_link "$LINENO"; then :
     2260  eval "$3=yes"
     2261else
     2262  eval "$3=no"
     2263fi
     2264rm -f core conftest.err conftest.$ac_objext \
     2265    conftest$ac_exeext conftest.$ac_ext
     2266fi
     2267eval ac_res=\$$3
     2268               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2269$as_echo "$ac_res" >&6; }
     2270  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2271
     2272} # ac_fn_cxx_check_func
     2273
     2274# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
     2275# ---------------------------------------------------------
     2276# Tests whether HEADER exists and can be compiled using the include files in
     2277# INCLUDES, setting the cache variable VAR accordingly.
     2278ac_fn_cxx_check_header_compile ()
     2279{
     2280  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2282$as_echo_n "checking for $2... " >&6; }
     2283if eval \${$3+:} false; then :
     2284  $as_echo_n "(cached) " >&6
     2285else
     2286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2287/* end confdefs.h.  */
     2288$4
     2289#include <$2>
     2290_ACEOF
     2291if ac_fn_cxx_try_compile "$LINENO"; then :
     2292  eval "$3=yes"
     2293else
     2294  eval "$3=no"
     2295fi
     2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2297fi
     2298eval ac_res=\$$3
     2299               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2300$as_echo "$ac_res" >&6; }
     2301  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2302
     2303} # ac_fn_cxx_check_header_compile
    15072304cat >config.log <<_ACEOF
    15082305This file contains any messages produced by compilers while
     
    15102307
    15112308It was created by vizservers $as_me 0.1, which was
    1512 generated by GNU Autoconf 2.63.  Invocation command line was
     2309generated by GNU Autoconf 2.69.  Invocation command line was
    15132310
    15142311  $ $0 $@
     
    15462343  IFS=$as_save_IFS
    15472344  test -z "$as_dir" && as_dir=.
    1548   $as_echo "PATH: $as_dir"
    1549 done
     2345    $as_echo "PATH: $as_dir"
     2346  done
    15502347IFS=$as_save_IFS
    15512348
     
    15842381    esac
    15852382    case $ac_pass in
    1586     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2383    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    15872384    2)
    1588       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2385      as_fn_append ac_configure_args1 " '$ac_arg'"
    15892386      if test $ac_must_keep_next = true; then
    15902387        ac_must_keep_next=false # Got value, back to normal.
     
    16022399        esac
    16032400      fi
    1604       ac_configure_args="$ac_configure_args '$ac_arg'"
     2401      as_fn_append ac_configure_args " '$ac_arg'"
    16052402      ;;
    16062403    esac
    16072404  done
    16082405done
    1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2406{ ac_configure_args0=; unset ac_configure_args0;}
     2407{ ac_configure_args1=; unset ac_configure_args1;}
    16112408
    16122409# When interrupted or exit'd, cleanup temporary files, and complete
     
    16202417    echo
    16212418
    1622     cat <<\_ASBOX
    1623 ## ---------------- ##
     2419    $as_echo "## ---------------- ##
    16242420## Cache variables. ##
    1625 ## ---------------- ##
    1626 _ASBOX
     2421## ---------------- ##"
    16272422    echo
    16282423    # The following way of writing the cache mishandles newlines in values,
     
    16332428    *${as_nl}*)
    16342429      case $ac_var in #(
    1635       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
     2430      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
    16362431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
    16372432      esac
     
    16392434      _ | IFS | as_nl) ;; #(
    16402435      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    1641       *) $as_unset $ac_var ;;
     2436      *) { eval $ac_var=; unset $ac_var;} ;;
    16422437      esac ;;
    16432438    esac
     
    16582453    echo
    16592454
    1660     cat <<\_ASBOX
    1661 ## ----------------- ##
     2455    $as_echo "## ----------------- ##
    16622456## Output variables. ##
    1663 ## ----------------- ##
    1664 _ASBOX
     2457## ----------------- ##"
    16652458    echo
    16662459    for ac_var in $ac_subst_vars
     
    16752468
    16762469    if test -n "$ac_subst_files"; then
    1677       cat <<\_ASBOX
    1678 ## ------------------- ##
     2470      $as_echo "## ------------------- ##
    16792471## File substitutions. ##
    1680 ## ------------------- ##
    1681 _ASBOX
     2472## ------------------- ##"
    16822473      echo
    16832474      for ac_var in $ac_subst_files
     
    16932484
    16942485    if test -s confdefs.h; then
    1695       cat <<\_ASBOX
    1696 ## ----------- ##
     2486      $as_echo "## ----------- ##
    16972487## confdefs.h. ##
    1698 ## ----------- ##
    1699 _ASBOX
     2488## ----------- ##"
    17002489      echo
    17012490      cat confdefs.h
     
    17112500' 0
    17122501for ac_signal in 1 2 13 15; do
    1713   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2502  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    17142503done
    17152504ac_signal=0
     
    17182507rm -f -r conftest* confdefs.h
    17192508
     2509$as_echo "/* confdefs.h */" > confdefs.h
     2510
    17202511# Predefined preprocessor variables.
    17212512
     
    17242515_ACEOF
    17252516
    1726 
    17272517cat >>confdefs.h <<_ACEOF
    17282518#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    17292519_ACEOF
    17302520
    1731 
    17322521cat >>confdefs.h <<_ACEOF
    17332522#define PACKAGE_VERSION "$PACKAGE_VERSION"
    17342523_ACEOF
    17352524
    1736 
    17372525cat >>confdefs.h <<_ACEOF
    17382526#define PACKAGE_STRING "$PACKAGE_STRING"
    17392527_ACEOF
    17402528
    1741 
    17422529cat >>confdefs.h <<_ACEOF
    17432530#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     2531_ACEOF
     2532
     2533cat >>confdefs.h <<_ACEOF
     2534#define PACKAGE_URL "$PACKAGE_URL"
    17442535_ACEOF
    17452536
     
    17502541ac_site_file2=NONE
    17512542if test -n "$CONFIG_SITE"; then
    1752   ac_site_file1=$CONFIG_SITE
     2543  # We do not want a PATH search for config.site.
     2544  case $CONFIG_SITE in #((
     2545    -*)  ac_site_file1=./$CONFIG_SITE;;
     2546    */*) ac_site_file1=$CONFIG_SITE;;
     2547    *)   ac_site_file1=./$CONFIG_SITE;;
     2548  esac
    17532549elif test "x$prefix" != xNONE; then
    17542550  ac_site_file1=$prefix/share/config.site
     
    17612557do
    17622558  test "x$ac_site_file" = xNONE && continue
    1763   if test -r "$ac_site_file"; then
    1764     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     2559  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2560    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
    17652561$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    17662562    sed 's/^/| /' "$ac_site_file" >&5
    1767     . "$ac_site_file"
     2563    . "$ac_site_file" \
     2564      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2566as_fn_error $? "failed to load site script $ac_site_file
     2567See \`config.log' for more details" "$LINENO" 5; }
    17682568  fi
    17692569done
    17702570
    17712571if test -r "$cache_file"; then
    1772   # Some versions of bash will fail to source /dev/null (special
    1773   # files actually), so we avoid doing that.
    1774   if test -f "$cache_file"; then
    1775     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
     2572  # Some versions of bash will fail to source /dev/null (special files
     2573  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
     2574  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     2575    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
    17762576$as_echo "$as_me: loading cache $cache_file" >&6;}
    17772577    case $cache_file in
     
    17812581  fi
    17822582else
    1783   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
     2583  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
    17842584$as_echo "$as_me: creating cache $cache_file" >&6;}
    17852585  >$cache_file
     
    17962596  case $ac_old_set,$ac_new_set in
    17972597    set,)
    1798       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2598      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    17992599$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    18002600      ac_cache_corrupted=: ;;
    18012601    ,set)
    1802       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     2602      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
    18032603$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    18042604      ac_cache_corrupted=: ;;
     
    18102610        ac_new_val_w=`echo x $ac_new_val`
    18112611        if test "$ac_old_val_w" != "$ac_new_val_w"; then
    1812           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     2612          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
    18132613$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    18142614          ac_cache_corrupted=:
    18152615        else
    1816           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2616          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
    18172617$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
    18182618          eval $ac_var=\$ac_old_val
    18192619        fi
    1820         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
     2620        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
    18212621$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
    1822         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
     2622        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
    18232623$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    18242624      fi;;
     
    18322632    case " $ac_configure_args " in
    18332633      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1834       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2634      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    18352635    esac
    18362636  fi
    18372637done
    18382638if $ac_cache_corrupted; then
    1839   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2639  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    18402640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    1841   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     2641  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    18422642$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1843   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1844 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1845    { (exit 1); exit 1; }; }
    1846 fi
    1847 
    1848 
    1849 
    1850 
    1851 
    1852 
    1853 
    1854 
    1855 
    1856 
    1857 
    1858 
    1859 
    1860 
    1861 
    1862 
    1863 
    1864 
    1865 
    1866 
    1867 
    1868 
    1869 
    1870 
     2643  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2644fi
     2645## -------------------- ##
     2646## Main body of script. ##
     2647## -------------------- ##
    18712648
    18722649ac_ext=c
     
    18942671done
    18952672if test -z "$ac_aux_dir"; then
    1896   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&5
    1897 $as_echo "$as_me: error: cannot find install-sh or install.sh in cf \"$srcdir\"/cf" >&2;}
    1898    { (exit 1); exit 1; }; }
     2673  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
    18992674fi
    19002675
     
    19132688
    19142689# Check whether --with-tcllib was given.
    1915 if test "${with_tcllib+set}" = set; then
     2690if test "${with_tcllib+set}" = set; then :
    19162691  withval=$with_tcllib; with_tcllib=$withval
    19172692else
     
    19222697
    19232698# Check whether --with-rappture was given.
    1924 if test "${with_rappture+set}" = set; then
     2699if test "${with_rappture+set}" = set; then :
    19252700  withval=$with_rappture; with_rappture=$withval
    19262701else
     
    19312706
    19322707# Check whether --with-vtk-includes was given.
    1933 if test "${with_vtk_includes+set}" = set; then
     2708if test "${with_vtk_includes+set}" = set; then :
    19342709  withval=$with_vtk_includes; with_vtk_includes=$withval
    19352710else
     
    19402715
    19412716# Check whether --with-vtk-libs was given.
    1942 if test "${with_vtk_libs+set}" = set; then
     2717if test "${with_vtk_libs+set}" = set; then :
    19432718  withval=$with_vtk_libs; with_vtk_libs=$withval
    19442719else
     
    19492724
    19502725# Check whether --with-vtk was given.
    1951 if test "${with_vtk+set}" = set; then
     2726if test "${with_vtk+set}" = set; then :
    19522727  withval=$with_vtk; with_vtk=$withval
    19532728else
     
    19642739  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    19652740set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1966 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    19672742$as_echo_n "checking for $ac_word... " >&6; }
    1968 if test "${ac_cv_prog_CC+set}" = set; then
     2743if ${ac_cv_prog_CC+:} false; then :
    19692744  $as_echo_n "(cached) " >&6
    19702745else
     
    19772752  IFS=$as_save_IFS
    19782753  test -z "$as_dir" && as_dir=.
    1979   for ac_exec_ext in '' $ac_executable_extensions; do
    1980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2754    for ac_exec_ext in '' $ac_executable_extensions; do
     2755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19812756    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1982     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    19832758    break 2
    19842759  fi
    19852760done
    1986 done
     2761  done
    19872762IFS=$as_save_IFS
    19882763
     
    19912766CC=$ac_cv_prog_CC
    19922767if test -n "$CC"; then
    1993   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    19942769$as_echo "$CC" >&6; }
    19952770else
    1996   { $as_echo "$as_me:$LINENO: result: no" >&5
     2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    19972772$as_echo "no" >&6; }
    19982773fi
     
    20042779  # Extract the first word of "gcc", so it can be a program name with args.
    20052780set dummy gcc; ac_word=$2
    2006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    20072782$as_echo_n "checking for $ac_word... " >&6; }
    2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2783if ${ac_cv_prog_ac_ct_CC+:} false; then :
    20092784  $as_echo_n "(cached) " >&6
    20102785else
     
    20172792  IFS=$as_save_IFS
    20182793  test -z "$as_dir" && as_dir=.
    2019   for ac_exec_ext in '' $ac_executable_extensions; do
    2020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2794    for ac_exec_ext in '' $ac_executable_extensions; do
     2795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    20212796    ac_cv_prog_ac_ct_CC="gcc"
    2022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    20232798    break 2
    20242799  fi
    20252800done
    2026 done
     2801  done
    20272802IFS=$as_save_IFS
    20282803
     
    20312806ac_ct_CC=$ac_cv_prog_ac_ct_CC
    20322807if test -n "$ac_ct_CC"; then
    2033   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    20342809$as_echo "$ac_ct_CC" >&6; }
    20352810else
    2036   { $as_echo "$as_me:$LINENO: result: no" >&5
     2811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    20372812$as_echo "no" >&6; }
    20382813fi
     
    20432818    case $cross_compiling:$ac_tool_warned in
    20442819yes:)
    2045 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     2820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    20462821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    20472822ac_tool_warned=yes ;;
     
    20572832    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    20582833set dummy ${ac_tool_prefix}cc; ac_word=$2
    2059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    20602835$as_echo_n "checking for $ac_word... " >&6; }
    2061 if test "${ac_cv_prog_CC+set}" = set; then
     2836if ${ac_cv_prog_CC+:} false; then :
    20622837  $as_echo_n "(cached) " >&6
    20632838else
     
    20702845  IFS=$as_save_IFS
    20712846  test -z "$as_dir" && as_dir=.
    2072   for ac_exec_ext in '' $ac_executable_extensions; do
    2073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2847    for ac_exec_ext in '' $ac_executable_extensions; do
     2848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    20742849    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2075     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    20762851    break 2
    20772852  fi
    20782853done
    2079 done
     2854  done
    20802855IFS=$as_save_IFS
    20812856
     
    20842859CC=$ac_cv_prog_CC
    20852860if test -n "$CC"; then
    2086   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    20872862$as_echo "$CC" >&6; }
    20882863else
    2089   { $as_echo "$as_me:$LINENO: result: no" >&5
     2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    20902865$as_echo "no" >&6; }
    20912866fi
     
    20972872  # Extract the first word of "cc", so it can be a program name with args.
    20982873set dummy cc; ac_word=$2
    2099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    21002875$as_echo_n "checking for $ac_word... " >&6; }
    2101 if test "${ac_cv_prog_CC+set}" = set; then
     2876if ${ac_cv_prog_CC+:} false; then :
    21022877  $as_echo_n "(cached) " >&6
    21032878else
     
    21112886  IFS=$as_save_IFS
    21122887  test -z "$as_dir" && as_dir=.
    2113   for ac_exec_ext in '' $ac_executable_extensions; do
    2114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2888    for ac_exec_ext in '' $ac_executable_extensions; do
     2889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    21152890    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    21162891       ac_prog_rejected=yes
     
    21182893     fi
    21192894    ac_cv_prog_CC="cc"
    2120     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21212896    break 2
    21222897  fi
    21232898done
    2124 done
     2899  done
    21252900IFS=$as_save_IFS
    21262901
     
    21412916CC=$ac_cv_prog_CC
    21422917if test -n "$CC"; then
    2143   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    21442919$as_echo "$CC" >&6; }
    21452920else
    2146   { $as_echo "$as_me:$LINENO: result: no" >&5
     2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    21472922$as_echo "no" >&6; }
    21482923fi
     
    21562931    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    21572932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    21592934$as_echo_n "checking for $ac_word... " >&6; }
    2160 if test "${ac_cv_prog_CC+set}" = set; then
     2935if ${ac_cv_prog_CC+:} false; then :
    21612936  $as_echo_n "(cached) " >&6
    21622937else
     
    21692944  IFS=$as_save_IFS
    21702945  test -z "$as_dir" && as_dir=.
    2171   for ac_exec_ext in '' $ac_executable_extensions; do
    2172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2946    for ac_exec_ext in '' $ac_executable_extensions; do
     2947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    21732948    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2174     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    21752950    break 2
    21762951  fi
    21772952done
    2178 done
     2953  done
    21792954IFS=$as_save_IFS
    21802955
     
    21832958CC=$ac_cv_prog_CC
    21842959if test -n "$CC"; then
    2185   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    21862961$as_echo "$CC" >&6; }
    21872962else
    2188   { $as_echo "$as_me:$LINENO: result: no" >&5
     2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    21892964$as_echo "no" >&6; }
    21902965fi
     
    22002975  # Extract the first word of "$ac_prog", so it can be a program name with args.
    22012976set dummy $ac_prog; ac_word=$2
    2202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    22032978$as_echo_n "checking for $ac_word... " >&6; }
    2204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2979if ${ac_cv_prog_ac_ct_CC+:} false; then :
    22052980  $as_echo_n "(cached) " >&6
    22062981else
     
    22132988  IFS=$as_save_IFS
    22142989  test -z "$as_dir" && as_dir=.
    2215   for ac_exec_ext in '' $ac_executable_extensions; do
    2216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2990    for ac_exec_ext in '' $ac_executable_extensions; do
     2991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    22172992    ac_cv_prog_ac_ct_CC="$ac_prog"
    2218     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    22192994    break 2
    22202995  fi
    22212996done
    2222 done
     2997  done
    22232998IFS=$as_save_IFS
    22242999
     
    22273002ac_ct_CC=$ac_cv_prog_ac_ct_CC
    22283003if test -n "$ac_ct_CC"; then
    2229   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    22303005$as_echo "$ac_ct_CC" >&6; }
    22313006else
    2232   { $as_echo "$as_me:$LINENO: result: no" >&5
     3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    22333008$as_echo "no" >&6; }
    22343009fi
     
    22433018    case $cross_compiling:$ac_tool_warned in
    22443019yes:)
    2245 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    22463021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    22473022ac_tool_warned=yes ;;
     
    22543029
    22553030
    2256 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     3031test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    22573032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2258 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2259 See \`config.log' for more details." >&5
    2260 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
    2261 See \`config.log' for more details." >&2;}
    2262    { (exit 1); exit 1; }; }; }
     3033as_fn_error $? "no acceptable C compiler found in \$PATH
     3034See \`config.log' for more details" "$LINENO" 5; }
    22633035
    22643036# Provide some information about the compiler.
    2265 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
     3037$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    22663038set X $ac_compile
    22673039ac_compiler=$2
    2268 { (ac_try="$ac_compiler --version >&5"
     3040for ac_option in --version -v -V -qversion; do
     3041  { { ac_try="$ac_compiler $ac_option >&5"
    22693042case "(($ac_try" in
    22703043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    22713044  *) ac_try_echo=$ac_try;;
    22723045esac
    2273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2274 $as_echo "$ac_try_echo") >&5
    2275   (eval "$ac_compiler --version >&5") 2>&5
     3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3047$as_echo "$ac_try_echo"; } >&5
     3048  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    22763049  ac_status=$?
    2277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2278   (exit $ac_status); }
    2279 { (ac_try="$ac_compiler -v >&5"
    2280 case "(($ac_try" in
    2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2282   *) ac_try_echo=$ac_try;;
    2283 esac
    2284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2285 $as_echo "$ac_try_echo") >&5
    2286   (eval "$ac_compiler -v >&5") 2>&5
    2287   ac_status=$?
    2288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2289   (exit $ac_status); }
    2290 { (ac_try="$ac_compiler -V >&5"
    2291 case "(($ac_try" in
    2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2293   *) ac_try_echo=$ac_try;;
    2294 esac
    2295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2296 $as_echo "$ac_try_echo") >&5
    2297   (eval "$ac_compiler -V >&5") 2>&5
    2298   ac_status=$?
    2299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2300   (exit $ac_status); }
    2301 
    2302 cat >conftest.$ac_ext <<_ACEOF
    2303 /* confdefs.h.  */
    2304 _ACEOF
    2305 cat confdefs.h >>conftest.$ac_ext
    2306 cat >>conftest.$ac_ext <<_ACEOF
     3050  if test -s conftest.err; then
     3051    sed '10a\
     3052... rest of stderr output deleted ...
     3053         10q' conftest.err >conftest.er1
     3054    cat conftest.er1 >&5
     3055  fi
     3056  rm -f conftest.er1 conftest.err
     3057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3058  test $ac_status = 0; }
     3059done
     3060
     3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    23073062/* end confdefs.h.  */
    23083063
     
    23203075# It will help us diagnose broken compilers, and finding out an intuition
    23213076# of exeext.
    2322 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2323 $as_echo_n "checking for C compiler default output file name... " >&6; }
     3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     3078$as_echo_n "checking whether the C compiler works... " >&6; }
    23243079ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    23253080
     
    23373092rm -f $ac_rmfiles
    23383093
    2339 if { (ac_try="$ac_link_default"
     3094if { { ac_try="$ac_link_default"
    23403095case "(($ac_try" in
    23413096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    23423097  *) ac_try_echo=$ac_try;;
    23433098esac
    2344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2345 $as_echo "$ac_try_echo") >&5
     3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3100$as_echo "$ac_try_echo"; } >&5
    23463101  (eval "$ac_link_default") 2>&5
    23473102  ac_status=$?
    2348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2349   (exit $ac_status); }; then
     3103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3104  test $ac_status = 0; }; then :
    23503105  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    23513106# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     
    23643119        break;;
    23653120    *.* )
    2366         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     3121        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    23673122        then :; else
    23683123           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     
    23833138  ac_file=''
    23843139fi
    2385 
    2386 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
     3140if test -z "$ac_file"; then :
     3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3142$as_echo "no" >&6; }
     3143$as_echo "$as_me: failed program was:" >&5
     3144sed 's/^/| /' conftest.$ac_ext >&5
     3145
     3146{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3148as_fn_error 77 "C compiler cannot create executables
     3149See \`config.log' for more details" "$LINENO" 5; }
     3150else
     3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3152$as_echo "yes" >&6; }
     3153fi
     3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     3155$as_echo_n "checking for C compiler default output file name... " >&6; }
     3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    23873157$as_echo "$ac_file" >&6; }
    2388 if test -z "$ac_file"; then
    2389   $as_echo "$as_me: failed program was:" >&5
    2390 sed 's/^/| /' conftest.$ac_ext >&5
    2391 
    2392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2394 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
    2395 See \`config.log' for more details." >&5
    2396 $as_echo "$as_me: error: C compiler cannot create executables
    2397 See \`config.log' for more details." >&2;}
    2398    { (exit 77); exit 77; }; }; }
    2399 fi
    2400 
    24013158ac_exeext=$ac_cv_exeext
    2402 
    2403 # Check that the compiler produces executables we can run.  If not, either
    2404 # the compiler is broken, or we cross compile.
    2405 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2406 $as_echo_n "checking whether the C compiler works... " >&6; }
    2407 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2408 # If not cross compiling, check that we can run a simple program.
    2409 if test "$cross_compiling" != yes; then
    2410   if { ac_try='./$ac_file'
    2411   { (case "(($ac_try" in
    2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2413   *) ac_try_echo=$ac_try;;
    2414 esac
    2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2416 $as_echo "$ac_try_echo") >&5
    2417   (eval "$ac_try") 2>&5
    2418   ac_status=$?
    2419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2420   (exit $ac_status); }; }; then
    2421     cross_compiling=no
    2422   else
    2423     if test "$cross_compiling" = maybe; then
    2424         cross_compiling=yes
    2425     else
    2426         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2428 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2429 If you meant to cross compile, use \`--host'.
    2430 See \`config.log' for more details." >&5
    2431 $as_echo "$as_me: error: cannot run C compiled programs.
    2432 If you meant to cross compile, use \`--host'.
    2433 See \`config.log' for more details." >&2;}
    2434    { (exit 1); exit 1; }; }; }
    2435     fi
    2436   fi
    2437 fi
    2438 { $as_echo "$as_me:$LINENO: result: yes" >&5
    2439 $as_echo "yes" >&6; }
    24403159
    24413160rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    24423161ac_clean_files=$ac_clean_files_save
    2443 # Check that the compiler produces executables we can run.  If not, either
    2444 # the compiler is broken, or we cross compile.
    2445 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2446 $as_echo_n "checking whether we are cross compiling... " >&6; }
    2447 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2448 $as_echo "$cross_compiling" >&6; }
    2449 
    2450 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
     3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    24513163$as_echo_n "checking for suffix of executables... " >&6; }
    2452 if { (ac_try="$ac_link"
     3164if { { ac_try="$ac_link"
    24533165case "(($ac_try" in
    24543166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    24553167  *) ac_try_echo=$ac_try;;
    24563168esac
    2457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2458 $as_echo "$ac_try_echo") >&5
     3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3170$as_echo "$ac_try_echo"; } >&5
    24593171  (eval "$ac_link") 2>&5
    24603172  ac_status=$?
    2461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2462   (exit $ac_status); }; then
     3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3174  test $ac_status = 0; }; then :
    24633175  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    24643176# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    24753187done
    24763188else
    2477   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     3189  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    24783190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2479 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2480 See \`config.log' for more details." >&5
    2481 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2482 See \`config.log' for more details." >&2;}
    2483    { (exit 1); exit 1; }; }; }
    2484 fi
    2485 
    2486 rm -f conftest$ac_cv_exeext
    2487 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     3191as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     3192See \`config.log' for more details" "$LINENO" 5; }
     3193fi
     3194rm -f conftest conftest$ac_cv_exeext
     3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
    24883196$as_echo "$ac_cv_exeext" >&6; }
    24893197
     
    24913199EXEEXT=$ac_cv_exeext
    24923200ac_exeext=$EXEEXT
    2493 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2494 $as_echo_n "checking for suffix of object files... " >&6; }
    2495 if test "${ac_cv_objext+set}" = set; then
    2496   $as_echo_n "(cached) " >&6
    2497 else
    2498   cat >conftest.$ac_ext <<_ACEOF
    2499 /* confdefs.h.  */
    2500 _ACEOF
    2501 cat confdefs.h >>conftest.$ac_ext
    2502 cat >>conftest.$ac_ext <<_ACEOF
     3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25033202/* end confdefs.h.  */
    2504 
     3203#include <stdio.h>
    25053204int
    25063205main ()
    25073206{
     3207FILE *f = fopen ("conftest.out", "w");
     3208 return ferror (f) || fclose (f) != 0;
    25083209
    25093210  ;
     
    25113212}
    25123213_ACEOF
    2513 rm -f conftest.o conftest.obj
    2514 if { (ac_try="$ac_compile"
     3214ac_clean_files="$ac_clean_files conftest.out"
     3215# Check that the compiler produces executables we can run.  If not, either
     3216# the compiler is broken, or we cross compile.
     3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     3218$as_echo_n "checking whether we are cross compiling... " >&6; }
     3219if test "$cross_compiling" != yes; then
     3220  { { ac_try="$ac_link"
    25153221case "(($ac_try" in
    25163222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    25173223  *) ac_try_echo=$ac_try;;
    25183224esac
    2519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2520 $as_echo "$ac_try_echo") >&5
     3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3226$as_echo "$ac_try_echo"; } >&5
     3227  (eval "$ac_link") 2>&5
     3228  ac_status=$?
     3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3230  test $ac_status = 0; }
     3231  if { ac_try='./conftest$ac_cv_exeext'
     3232  { { case "(($ac_try" in
     3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3234  *) ac_try_echo=$ac_try;;
     3235esac
     3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3237$as_echo "$ac_try_echo"; } >&5
     3238  (eval "$ac_try") 2>&5
     3239  ac_status=$?
     3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3241  test $ac_status = 0; }; }; then
     3242    cross_compiling=no
     3243  else
     3244    if test "$cross_compiling" = maybe; then
     3245        cross_compiling=yes
     3246    else
     3247        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3249as_fn_error $? "cannot run C compiled programs.
     3250If you meant to cross compile, use \`--host'.
     3251See \`config.log' for more details" "$LINENO" 5; }
     3252    fi
     3253  fi
     3254fi
     3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     3256$as_echo "$cross_compiling" >&6; }
     3257
     3258rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     3259ac_clean_files=$ac_clean_files_save
     3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     3261$as_echo_n "checking for suffix of object files... " >&6; }
     3262if ${ac_cv_objext+:} false; then :
     3263  $as_echo_n "(cached) " >&6
     3264else
     3265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3266/* end confdefs.h.  */
     3267
     3268int
     3269main ()
     3270{
     3271
     3272  ;
     3273  return 0;
     3274}
     3275_ACEOF
     3276rm -f conftest.o conftest.obj
     3277if { { ac_try="$ac_compile"
     3278case "(($ac_try" in
     3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3280  *) ac_try_echo=$ac_try;;
     3281esac
     3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3283$as_echo "$ac_try_echo"; } >&5
    25213284  (eval "$ac_compile") 2>&5
    25223285  ac_status=$?
    2523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2524   (exit $ac_status); }; then
     3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3287  test $ac_status = 0; }; then :
    25253288  for ac_file in conftest.o conftest.obj conftest.*; do
    25263289  test -f "$ac_file" || continue;
     
    25353298sed 's/^/| /' conftest.$ac_ext >&5
    25363299
    2537 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     3300{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    25383301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2540 See \`config.log' for more details." >&5
    2541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2542 See \`config.log' for more details." >&2;}
    2543    { (exit 1); exit 1; }; }; }
    2544 fi
    2545 
     3302as_fn_error $? "cannot compute suffix of object files: cannot compile
     3303See \`config.log' for more details" "$LINENO" 5; }
     3304fi
    25463305rm -f conftest.$ac_cv_objext conftest.$ac_ext
    25473306fi
    2548 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
    25493308$as_echo "$ac_cv_objext" >&6; }
    25503309OBJEXT=$ac_cv_objext
    25513310ac_objext=$OBJEXT
    2552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    25533312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    2554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
     3313if ${ac_cv_c_compiler_gnu+:} false; then :
    25553314  $as_echo_n "(cached) " >&6
    25563315else
    2557   cat >conftest.$ac_ext <<_ACEOF
    2558 /* confdefs.h.  */
    2559 _ACEOF
    2560 cat confdefs.h >>conftest.$ac_ext
    2561 cat >>conftest.$ac_ext <<_ACEOF
     3316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    25623317/* end confdefs.h.  */
    25633318
     
    25733328}
    25743329_ACEOF
    2575 rm -f conftest.$ac_objext
    2576 if { (ac_try="$ac_compile"
    2577 case "(($ac_try" in
    2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2579   *) ac_try_echo=$ac_try;;
    2580 esac
    2581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2582 $as_echo "$ac_try_echo") >&5
    2583   (eval "$ac_compile") 2>conftest.er1
    2584   ac_status=$?
    2585   grep -v '^ *+' conftest.er1 >conftest.err
    2586   rm -f conftest.er1
    2587   cat conftest.err >&5
    2588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2589   (exit $ac_status); } && {
    2590          test -z "$ac_c_werror_flag" ||
    2591          test ! -s conftest.err
    2592        } && test -s conftest.$ac_objext; then
     3330if ac_fn_c_try_compile "$LINENO"; then :
    25933331  ac_compiler_gnu=yes
    25943332else
    2595   $as_echo "$as_me: failed program was:" >&5
    2596 sed 's/^/| /' conftest.$ac_ext >&5
    2597 
    2598         ac_compiler_gnu=no
    2599 fi
    2600 
     3333  ac_compiler_gnu=no
     3334fi
    26013335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    26023336ac_cv_c_compiler_gnu=$ac_compiler_gnu
    26033337
    26043338fi
    2605 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    26063340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
    26073341if test $ac_compiler_gnu = yes; then
     
    26123346ac_test_CFLAGS=${CFLAGS+set}
    26133347ac_save_CFLAGS=$CFLAGS
    2614 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    26153349$as_echo_n "checking whether $CC accepts -g... " >&6; }
    2616 if test "${ac_cv_prog_cc_g+set}" = set; then
     3350if ${ac_cv_prog_cc_g+:} false; then :
    26173351  $as_echo_n "(cached) " >&6
    26183352else
     
    26213355   ac_cv_prog_cc_g=no
    26223356   CFLAGS="-g"
    2623    cat >conftest.$ac_ext <<_ACEOF
    2624 /* confdefs.h.  */
    2625 _ACEOF
    2626 cat confdefs.h >>conftest.$ac_ext
    2627 cat >>conftest.$ac_ext <<_ACEOF
     3357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26283358/* end confdefs.h.  */
    26293359
     
    26363366}
    26373367_ACEOF
    2638 rm -f conftest.$ac_objext
    2639 if { (ac_try="$ac_compile"
    2640 case "(($ac_try" in
    2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2642   *) ac_try_echo=$ac_try;;
    2643 esac
    2644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2645 $as_echo "$ac_try_echo") >&5
    2646   (eval "$ac_compile") 2>conftest.er1
    2647   ac_status=$?
    2648   grep -v '^ *+' conftest.er1 >conftest.err
    2649   rm -f conftest.er1
    2650   cat conftest.err >&5
    2651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2652   (exit $ac_status); } && {
    2653          test -z "$ac_c_werror_flag" ||
    2654          test ! -s conftest.err
    2655        } && test -s conftest.$ac_objext; then
     3368if ac_fn_c_try_compile "$LINENO"; then :
    26563369  ac_cv_prog_cc_g=yes
    26573370else
    2658   $as_echo "$as_me: failed program was:" >&5
    2659 sed 's/^/| /' conftest.$ac_ext >&5
    2660 
    2661         CFLAGS=""
    2662       cat >conftest.$ac_ext <<_ACEOF
    2663 /* confdefs.h.  */
    2664 _ACEOF
    2665 cat confdefs.h >>conftest.$ac_ext
    2666 cat >>conftest.$ac_ext <<_ACEOF
     3371  CFLAGS=""
     3372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    26673373/* end confdefs.h.  */
    26683374
     
    26753381}
    26763382_ACEOF
    2677 rm -f conftest.$ac_objext
    2678 if { (ac_try="$ac_compile"
    2679 case "(($ac_try" in
    2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2681   *) ac_try_echo=$ac_try;;
    2682 esac
    2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2684 $as_echo "$ac_try_echo") >&5
    2685   (eval "$ac_compile") 2>conftest.er1
    2686   ac_status=$?
    2687   grep -v '^ *+' conftest.er1 >conftest.err
    2688   rm -f conftest.er1
    2689   cat conftest.err >&5
    2690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2691   (exit $ac_status); } && {
    2692          test -z "$ac_c_werror_flag" ||
    2693          test ! -s conftest.err
    2694        } && test -s conftest.$ac_objext; then
    2695   :
    2696 else
    2697   $as_echo "$as_me: failed program was:" >&5
    2698 sed 's/^/| /' conftest.$ac_ext >&5
    2699 
    2700         ac_c_werror_flag=$ac_save_c_werror_flag
     3383if ac_fn_c_try_compile "$LINENO"; then :
     3384
     3385else
     3386  ac_c_werror_flag=$ac_save_c_werror_flag
    27013387         CFLAGS="-g"
    2702          cat >conftest.$ac_ext <<_ACEOF
    2703 /* confdefs.h.  */
    2704 _ACEOF
    2705 cat confdefs.h >>conftest.$ac_ext
    2706 cat >>conftest.$ac_ext <<_ACEOF
     3388         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    27073389/* end confdefs.h.  */
    27083390
     
    27153397}
    27163398_ACEOF
    2717 rm -f conftest.$ac_objext
    2718 if { (ac_try="$ac_compile"
    2719 case "(($ac_try" in
    2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2721   *) ac_try_echo=$ac_try;;
    2722 esac
    2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2724 $as_echo "$ac_try_echo") >&5
    2725   (eval "$ac_compile") 2>conftest.er1
    2726   ac_status=$?
    2727   grep -v '^ *+' conftest.er1 >conftest.err
    2728   rm -f conftest.er1
    2729   cat conftest.err >&5
    2730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2731   (exit $ac_status); } && {
    2732          test -z "$ac_c_werror_flag" ||
    2733          test ! -s conftest.err
    2734        } && test -s conftest.$ac_objext; then
     3399if ac_fn_c_try_compile "$LINENO"; then :
    27353400  ac_cv_prog_cc_g=yes
    2736 else
    2737   $as_echo "$as_me: failed program was:" >&5
    2738 sed 's/^/| /' conftest.$ac_ext >&5
    2739 
    2740 
    2741 fi
    2742 
     3401fi
    27433402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    27443403fi
    2745 
    27463404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    27473405fi
    2748 
    27493406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    27503407   ac_c_werror_flag=$ac_save_c_werror_flag
    27513408fi
    2752 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
    27533410$as_echo "$ac_cv_prog_cc_g" >&6; }
    27543411if test "$ac_test_CFLAGS" = set; then
     
    27673424  fi
    27683425fi
    2769 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    27703427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    2771 if test "${ac_cv_prog_cc_c89+set}" = set; then
     3428if ${ac_cv_prog_cc_c89+:} false; then :
    27723429  $as_echo_n "(cached) " >&6
    27733430else
    27743431  ac_cv_prog_cc_c89=no
    27753432ac_save_CC=$CC
    2776 cat >conftest.$ac_ext <<_ACEOF
    2777 /* confdefs.h.  */
    2778 _ACEOF
    2779 cat confdefs.h >>conftest.$ac_ext
    2780 cat >>conftest.$ac_ext <<_ACEOF
     3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    27813434/* end confdefs.h.  */
    27823435#include <stdarg.h>
    27833436#include <stdio.h>
    2784 #include <sys/types.h>
    2785 #include <sys/stat.h>
     3437struct stat;
    27863438/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    27873439struct buf { int x; };
     
    28353487do
    28363488  CC="$ac_save_CC $ac_arg"
    2837   rm -f conftest.$ac_objext
    2838 if { (ac_try="$ac_compile"
    2839 case "(($ac_try" in
    2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2841   *) ac_try_echo=$ac_try;;
    2842 esac
    2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2844 $as_echo "$ac_try_echo") >&5
    2845   (eval "$ac_compile") 2>conftest.er1
    2846   ac_status=$?
    2847   grep -v '^ *+' conftest.er1 >conftest.err
    2848   rm -f conftest.er1
    2849   cat conftest.err >&5
    2850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2851   (exit $ac_status); } && {
    2852          test -z "$ac_c_werror_flag" ||
    2853          test ! -s conftest.err
    2854        } && test -s conftest.$ac_objext; then
     3489  if ac_fn_c_try_compile "$LINENO"; then :
    28553490  ac_cv_prog_cc_c89=$ac_arg
    2856 else
    2857   $as_echo "$as_me: failed program was:" >&5
    2858 sed 's/^/| /' conftest.$ac_ext >&5
    2859 
    2860 
    2861 fi
    2862 
     3491fi
    28633492rm -f core conftest.err conftest.$ac_objext
    28643493  test "x$ac_cv_prog_cc_c89" != "xno" && break
     
    28713500case "x$ac_cv_prog_cc_c89" in
    28723501  x)
    2873     { $as_echo "$as_me:$LINENO: result: none needed" >&5
     3502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
    28743503$as_echo "none needed" >&6; } ;;
    28753504  xno)
    2876     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
     3505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
    28773506$as_echo "unsupported" >&6; } ;;
    28783507  *)
    28793508    CC="$CC $ac_cv_prog_cc_c89"
    2880     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     3509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
    28813510$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    28823511esac
    2883 
     3512if test "x$ac_cv_prog_cc_c89" != xno; then :
     3513
     3514fi
    28843515
    28853516ac_ext=c
     
    28953526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    28963527ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2897 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    28983529$as_echo_n "checking how to run the C preprocessor... " >&6; }
    28993530# On Suns, sometimes $CPP names a directory.
     
    29023533fi
    29033534if test -z "$CPP"; then
    2904   if test "${ac_cv_prog_CPP+set}" = set; then
     3535  if ${ac_cv_prog_CPP+:} false; then :
    29053536  $as_echo_n "(cached) " >&6
    29063537else
     
    29173548  # On the NeXT, cc -E runs the code through the compiler's parser,
    29183549  # not just through cpp. "Syntax error" is here to catch this case.
    2919   cat >conftest.$ac_ext <<_ACEOF
    2920 /* confdefs.h.  */
    2921 _ACEOF
    2922 cat confdefs.h >>conftest.$ac_ext
    2923 cat >>conftest.$ac_ext <<_ACEOF
     3550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    29243551/* end confdefs.h.  */
    29253552#ifdef __STDC__
     
    29303557                     Syntax error
    29313558_ACEOF
    2932 if { (ac_try="$ac_cpp conftest.$ac_ext"
    2933 case "(($ac_try" in
    2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2935   *) ac_try_echo=$ac_try;;
    2936 esac
    2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2938 $as_echo "$ac_try_echo") >&5
    2939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    2940   ac_status=$?
    2941   grep -v '^ *+' conftest.er1 >conftest.err
    2942   rm -f conftest.er1
    2943   cat conftest.err >&5
    2944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2945   (exit $ac_status); } >/dev/null && {
    2946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    2947          test ! -s conftest.err
    2948        }; then
    2949   :
    2950 else
    2951   $as_echo "$as_me: failed program was:" >&5
    2952 sed 's/^/| /' conftest.$ac_ext >&5
    2953 
     3559if ac_fn_c_try_cpp "$LINENO"; then :
     3560
     3561else
    29543562  # Broken: fails on valid input.
    29553563continue
    29563564fi
    2957 
    2958 rm -f conftest.err conftest.$ac_ext
     3565rm -f conftest.err conftest.i conftest.$ac_ext
    29593566
    29603567  # OK, works on sane cases.  Now check whether nonexistent headers
    29613568  # can be detected and how.
    2962   cat >conftest.$ac_ext <<_ACEOF
    2963 /* confdefs.h.  */
    2964 _ACEOF
    2965 cat confdefs.h >>conftest.$ac_ext
    2966 cat >>conftest.$ac_ext <<_ACEOF
     3569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    29673570/* end confdefs.h.  */
    29683571#include <ac_nonexistent.h>
    29693572_ACEOF
    2970 if { (ac_try="$ac_cpp conftest.$ac_ext"
    2971 case "(($ac_try" in
    2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2973   *) ac_try_echo=$ac_try;;
    2974 esac
    2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2976 $as_echo "$ac_try_echo") >&5
    2977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    2978   ac_status=$?
    2979   grep -v '^ *+' conftest.er1 >conftest.err
    2980   rm -f conftest.er1
    2981   cat conftest.err >&5
    2982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2983   (exit $ac_status); } >/dev/null && {
    2984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    2985          test ! -s conftest.err
    2986        }; then
     3573if ac_fn_c_try_cpp "$LINENO"; then :
    29873574  # Broken: success on invalid input.
    29883575continue
    29893576else
    2990   $as_echo "$as_me: failed program was:" >&5
    2991 sed 's/^/| /' conftest.$ac_ext >&5
    2992 
    29933577  # Passes both tests.
    29943578ac_preproc_ok=:
    29953579break
    29963580fi
    2997 
    2998 rm -f conftest.err conftest.$ac_ext
     3581rm -f conftest.err conftest.i conftest.$ac_ext
    29993582
    30003583done
    30013584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3002 rm -f conftest.err conftest.$ac_ext
    3003 if $ac_preproc_ok; then
     3585rm -f conftest.i conftest.err conftest.$ac_ext
     3586if $ac_preproc_ok; then :
    30043587  break
    30053588fi
     
    30133596  ac_cv_prog_CPP=$CPP
    30143597fi
    3015 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
     3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    30163599$as_echo "$CPP" >&6; }
    30173600ac_preproc_ok=false
     
    30243607  # On the NeXT, cc -E runs the code through the compiler's parser,
    30253608  # not just through cpp. "Syntax error" is here to catch this case.
    3026   cat >conftest.$ac_ext <<_ACEOF
    3027 /* confdefs.h.  */
    3028 _ACEOF
    3029 cat confdefs.h >>conftest.$ac_ext
    3030 cat >>conftest.$ac_ext <<_ACEOF
     3609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    30313610/* end confdefs.h.  */
    30323611#ifdef __STDC__
     
    30373616                     Syntax error
    30383617_ACEOF
    3039 if { (ac_try="$ac_cpp conftest.$ac_ext"
    3040 case "(($ac_try" in
    3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3042   *) ac_try_echo=$ac_try;;
    3043 esac
    3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3045 $as_echo "$ac_try_echo") >&5
    3046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    3047   ac_status=$?
    3048   grep -v '^ *+' conftest.er1 >conftest.err
    3049   rm -f conftest.er1
    3050   cat conftest.err >&5
    3051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3052   (exit $ac_status); } >/dev/null && {
    3053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    3054          test ! -s conftest.err
    3055        }; then
    3056   :
    3057 else
    3058   $as_echo "$as_me: failed program was:" >&5
    3059 sed 's/^/| /' conftest.$ac_ext >&5
    3060 
     3618if ac_fn_c_try_cpp "$LINENO"; then :
     3619
     3620else
    30613621  # Broken: fails on valid input.
    30623622continue
    30633623fi
    3064 
    3065 rm -f conftest.err conftest.$ac_ext
     3624rm -f conftest.err conftest.i conftest.$ac_ext
    30663625
    30673626  # OK, works on sane cases.  Now check whether nonexistent headers
    30683627  # can be detected and how.
    3069   cat >conftest.$ac_ext <<_ACEOF
    3070 /* confdefs.h.  */
    3071 _ACEOF
    3072 cat confdefs.h >>conftest.$ac_ext
    3073 cat >>conftest.$ac_ext <<_ACEOF
     3628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    30743629/* end confdefs.h.  */
    30753630#include <ac_nonexistent.h>
    30763631_ACEOF
    3077 if { (ac_try="$ac_cpp conftest.$ac_ext"
    3078 case "(($ac_try" in
    3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3080   *) ac_try_echo=$ac_try;;
    3081 esac
    3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3083 $as_echo "$ac_try_echo") >&5
    3084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    3085   ac_status=$?
    3086   grep -v '^ *+' conftest.er1 >conftest.err
    3087   rm -f conftest.er1
    3088   cat conftest.err >&5
    3089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3090   (exit $ac_status); } >/dev/null && {
    3091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    3092          test ! -s conftest.err
    3093        }; then
     3632if ac_fn_c_try_cpp "$LINENO"; then :
    30943633  # Broken: success on invalid input.
    30953634continue
    30963635else
    3097   $as_echo "$as_me: failed program was:" >&5
    3098 sed 's/^/| /' conftest.$ac_ext >&5
    3099 
    31003636  # Passes both tests.
    31013637ac_preproc_ok=:
    31023638break
    31033639fi
    3104 
    3105 rm -f conftest.err conftest.$ac_ext
     3640rm -f conftest.err conftest.i conftest.$ac_ext
    31063641
    31073642done
    31083643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3109 rm -f conftest.err conftest.$ac_ext
    3110 if $ac_preproc_ok; then
    3111   :
    3112 else
    3113   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     3644rm -f conftest.i conftest.err conftest.$ac_ext
     3645if $ac_preproc_ok; then :
     3646
     3647else
     3648  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    31143649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3115 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3116 See \`config.log' for more details." >&5
    3117 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3118 See \`config.log' for more details." >&2;}
    3119    { (exit 1); exit 1; }; }; }
     3650as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     3651See \`config.log' for more details" "$LINENO" 5; }
    31203652fi
    31213653
     
    31273659
    31283660
    3129 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
     3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
    31303662$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    3131 if test "${ac_cv_path_GREP+set}" = set; then
     3663if ${ac_cv_path_GREP+:} false; then :
    31323664  $as_echo_n "(cached) " >&6
    31333665else
     
    31403672  IFS=$as_save_IFS
    31413673  test -z "$as_dir" && as_dir=.
    3142   for ac_prog in grep ggrep; do
     3674    for ac_prog in grep ggrep; do
    31433675    for ac_exec_ext in '' $ac_executable_extensions; do
    31443676      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    3145       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     3677      as_fn_executable_p "$ac_path_GREP" || continue
    31463678# Check for GNU ac_path_GREP and select it if it is found.
    31473679  # Check for GNU $ac_path_GREP
     
    31603692    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    31613693    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3162     ac_count=`expr $ac_count + 1`
     3694    as_fn_arith $ac_count + 1 && ac_count=$as_val
    31633695    if test $ac_count -gt ${ac_path_GREP_max-0}; then
    31643696      # Best one so far, save it but keep looking for a better one
     
    31753707    done
    31763708  done
    3177 done
     3709  done
    31783710IFS=$as_save_IFS
    31793711  if test -z "$ac_cv_path_GREP"; then
    3180     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    3181 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    3182    { (exit 1); exit 1; }; }
     3712    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    31833713  fi
    31843714else
     
    31873717
    31883718fi
    3189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
     3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
    31903720$as_echo "$ac_cv_path_GREP" >&6; }
    31913721 GREP="$ac_cv_path_GREP"
    31923722
    31933723
    3194 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
     3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    31953725$as_echo_n "checking for egrep... " >&6; }
    3196 if test "${ac_cv_path_EGREP+set}" = set; then
     3726if ${ac_cv_path_EGREP+:} false; then :
    31973727  $as_echo_n "(cached) " >&6
    31983728else
     
    32083738  IFS=$as_save_IFS
    32093739  test -z "$as_dir" && as_dir=.
    3210   for ac_prog in egrep; do
     3740    for ac_prog in egrep; do
    32113741    for ac_exec_ext in '' $ac_executable_extensions; do
    32123742      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    3213       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     3743      as_fn_executable_p "$ac_path_EGREP" || continue
    32143744# Check for GNU ac_path_EGREP and select it if it is found.
    32153745  # Check for GNU $ac_path_EGREP
     
    32283758    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    32293759    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3230     ac_count=`expr $ac_count + 1`
     3760    as_fn_arith $ac_count + 1 && ac_count=$as_val
    32313761    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
    32323762      # Best one so far, save it but keep looking for a better one
     
    32433773    done
    32443774  done
    3245 done
     3775  done
    32463776IFS=$as_save_IFS
    32473777  if test -z "$ac_cv_path_EGREP"; then
    3248     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    3249 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    3250    { (exit 1); exit 1; }; }
     3778    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    32513779  fi
    32523780else
     
    32563784   fi
    32573785fi
    3258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
     3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
    32593787$as_echo "$ac_cv_path_EGREP" >&6; }
    32603788 EGREP="$ac_cv_path_EGREP"
    32613789
    32623790
    3263 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
    32643792$as_echo_n "checking for ANSI C header files... " >&6; }
    3265 if test "${ac_cv_header_stdc+set}" = set; then
     3793if ${ac_cv_header_stdc+:} false; then :
    32663794  $as_echo_n "(cached) " >&6
    32673795else
    3268   cat >conftest.$ac_ext <<_ACEOF
    3269 /* confdefs.h.  */
    3270 _ACEOF
    3271 cat confdefs.h >>conftest.$ac_ext
    3272 cat >>conftest.$ac_ext <<_ACEOF
     3796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32733797/* end confdefs.h.  */
    32743798#include <stdlib.h>
     
    32853809}
    32863810_ACEOF
    3287 rm -f conftest.$ac_objext
    3288 if { (ac_try="$ac_compile"
    3289 case "(($ac_try" in
    3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3291   *) ac_try_echo=$ac_try;;
    3292 esac
    3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3294 $as_echo "$ac_try_echo") >&5
    3295   (eval "$ac_compile") 2>conftest.er1
    3296   ac_status=$?
    3297   grep -v '^ *+' conftest.er1 >conftest.err
    3298   rm -f conftest.er1
    3299   cat conftest.err >&5
    3300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3301   (exit $ac_status); } && {
    3302          test -z "$ac_c_werror_flag" ||
    3303          test ! -s conftest.err
    3304        } && test -s conftest.$ac_objext; then
     3811if ac_fn_c_try_compile "$LINENO"; then :
    33053812  ac_cv_header_stdc=yes
    33063813else
    3307   $as_echo "$as_me: failed program was:" >&5
    3308 sed 's/^/| /' conftest.$ac_ext >&5
    3309 
    3310         ac_cv_header_stdc=no
    3311 fi
    3312 
     3814  ac_cv_header_stdc=no
     3815fi
    33133816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    33143817
    33153818if test $ac_cv_header_stdc = yes; then
    33163819  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3317   cat >conftest.$ac_ext <<_ACEOF
    3318 /* confdefs.h.  */
    3319 _ACEOF
    3320 cat confdefs.h >>conftest.$ac_ext
    3321 cat >>conftest.$ac_ext <<_ACEOF
     3820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33223821/* end confdefs.h.  */
    33233822#include <string.h>
     
    33253824_ACEOF
    33263825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3327   $EGREP "memchr" >/dev/null 2>&1; then
    3328   :
     3826  $EGREP "memchr" >/dev/null 2>&1; then :
     3827
    33293828else
    33303829  ac_cv_header_stdc=no
     
    33363835if test $ac_cv_header_stdc = yes; then
    33373836  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3338   cat >conftest.$ac_ext <<_ACEOF
    3339 /* confdefs.h.  */
    3340 _ACEOF
    3341 cat confdefs.h >>conftest.$ac_ext
    3342 cat >>conftest.$ac_ext <<_ACEOF
     3837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33433838/* end confdefs.h.  */
    33443839#include <stdlib.h>
     
    33463841_ACEOF
    33473842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3348   $EGREP "free" >/dev/null 2>&1; then
    3349   :
     3843  $EGREP "free" >/dev/null 2>&1; then :
     3844
    33503845else
    33513846  ac_cv_header_stdc=no
     
    33573852if test $ac_cv_header_stdc = yes; then
    33583853  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3359   if test "$cross_compiling" = yes; then
     3854  if test "$cross_compiling" = yes; then :
    33603855  :
    33613856else
    3362   cat >conftest.$ac_ext <<_ACEOF
    3363 /* confdefs.h.  */
    3364 _ACEOF
    3365 cat confdefs.h >>conftest.$ac_ext
    3366 cat >>conftest.$ac_ext <<_ACEOF
     3857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    33673858/* end confdefs.h.  */
    33683859#include <ctype.h>
     
    33913882}
    33923883_ACEOF
    3393 rm -f conftest$ac_exeext
    3394 if { (ac_try="$ac_link"
    3395 case "(($ac_try" in
    3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3397   *) ac_try_echo=$ac_try;;
    3398 esac
    3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3400 $as_echo "$ac_try_echo") >&5
    3401   (eval "$ac_link") 2>&5
    3402   ac_status=$?
    3403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3405   { (case "(($ac_try" in
    3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3407   *) ac_try_echo=$ac_try;;
    3408 esac
    3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3410 $as_echo "$ac_try_echo") >&5
    3411   (eval "$ac_try") 2>&5
    3412   ac_status=$?
    3413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3414   (exit $ac_status); }; }; then
    3415   :
    3416 else
    3417   $as_echo "$as_me: program exited with status $ac_status" >&5
    3418 $as_echo "$as_me: failed program was:" >&5
    3419 sed 's/^/| /' conftest.$ac_ext >&5
    3420 
    3421 ( exit $ac_status )
    3422 ac_cv_header_stdc=no
    3423 fi
    3424 rm -rf conftest.dSYM
    3425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3426 fi
    3427 
    3428 
    3429 fi
    3430 fi
    3431 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3884if ac_fn_c_try_run "$LINENO"; then :
     3885
     3886else
     3887  ac_cv_header_stdc=no
     3888fi
     3889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     3890  conftest.$ac_objext conftest.beam conftest.$ac_ext
     3891fi
     3892
     3893fi
     3894fi
     3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
    34323896$as_echo "$ac_cv_header_stdc" >&6; }
    34333897if test $ac_cv_header_stdc = yes; then
    34343898
    3435 cat >>confdefs.h <<\_ACEOF
    3436 #define STDC_HEADERS 1
    3437 _ACEOF
     3899$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    34383900
    34393901fi
    34403902
    34413903# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3442 
    3443 
    3444 
    3445 
    3446 
    3447 
    3448 
    3449 
    3450 
    34513904for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    34523905                  inttypes.h stdint.h unistd.h
    3453 do
    3454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    3456 $as_echo_n "checking for $ac_header... " >&6; }
    3457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    3458   $as_echo_n "(cached) " >&6
    3459 else
    3460   cat >conftest.$ac_ext <<_ACEOF
    3461 /* confdefs.h.  */
    3462 _ACEOF
    3463 cat confdefs.h >>conftest.$ac_ext
    3464 cat >>conftest.$ac_ext <<_ACEOF
    3465 /* end confdefs.h.  */
    3466 $ac_includes_default
    3467 
    3468 #include <$ac_header>
    3469 _ACEOF
    3470 rm -f conftest.$ac_objext
    3471 if { (ac_try="$ac_compile"
    3472 case "(($ac_try" in
    3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3474   *) ac_try_echo=$ac_try;;
    3475 esac
    3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3477 $as_echo "$ac_try_echo") >&5
    3478   (eval "$ac_compile") 2>conftest.er1
    3479   ac_status=$?
    3480   grep -v '^ *+' conftest.er1 >conftest.err
    3481   rm -f conftest.er1
    3482   cat conftest.err >&5
    3483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3484   (exit $ac_status); } && {
    3485          test -z "$ac_c_werror_flag" ||
    3486          test ! -s conftest.err
    3487        } && test -s conftest.$ac_objext; then
    3488   eval "$as_ac_Header=yes"
    3489 else
    3490   $as_echo "$as_me: failed program was:" >&5
    3491 sed 's/^/| /' conftest.$ac_ext >&5
    3492 
    3493         eval "$as_ac_Header=no"
    3494 fi
    3495 
    3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3497 fi
    3498 ac_res=`eval 'as_val=${'$as_ac_Header'}
    3499                  $as_echo "$as_val"'`
    3500                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    3501 $as_echo "$ac_res" >&6; }
    3502 as_val=`eval 'as_val=${'$as_ac_Header'}
    3503                  $as_echo "$as_val"'`
    3504    if test "x$as_val" = x""yes; then
     3906do :
     3907  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3908ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     3909"
     3910if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    35053911  cat >>confdefs.h <<_ACEOF
    35063912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    35273933
    35283934# Check whether --with-python was given.
    3529 if test "${with_python+set}" = set; then
     3935if test "${with_python+set}" = set; then :
    35303936  withval=$with_python;
    35313937else
     
    35383944    # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
    35393945set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    3540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    35413947$as_echo_n "checking for $ac_word... " >&6; }
    3542 if test "${ac_cv_path_PYTHON+set}" = set; then
     3948if ${ac_cv_path_PYTHON+:} false; then :
    35433949  $as_echo_n "(cached) " >&6
    35443950else
     
    35533959  IFS=$as_save_IFS
    35543960  test -z "$as_dir" && as_dir=.
    3555   for ac_exec_ext in '' $ac_executable_extensions; do
    3556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3961    for ac_exec_ext in '' $ac_executable_extensions; do
     3962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35573963    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3558     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    35593965    break 2
    35603966  fi
    35613967done
    3562 done
     3968  done
    35633969IFS=$as_save_IFS
    35643970
     
    35683974PYTHON=$ac_cv_path_PYTHON
    35693975if test -n "$PYTHON"; then
    3570   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
     3976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    35713977$as_echo "$PYTHON" >&6; }
    35723978else
    3573   { $as_echo "$as_me:$LINENO: result: no" >&5
     3979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    35743980$as_echo "no" >&6; }
    35753981fi
     
    35793985    # Extract the first word of "python", so it can be a program name with args.
    35803986set dummy python; ac_word=$2
    3581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    35823988$as_echo_n "checking for $ac_word... " >&6; }
    3583 if test "${ac_cv_path_PYTHON+set}" = set; then
     3989if ${ac_cv_path_PYTHON+:} false; then :
    35843990  $as_echo_n "(cached) " >&6
    35853991else
     
    35954001  IFS=$as_save_IFS
    35964002  test -z "$as_dir" && as_dir=.
    3597   for ac_exec_ext in '' $ac_executable_extensions; do
    3598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4003    for ac_exec_ext in '' $ac_executable_extensions; do
     4004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35994005    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3600     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    36014007    break 2
    36024008  fi
    36034009done
    3604 done
     4010  done
    36054011IFS=$as_save_IFS
    36064012
     
    36104016PYTHON=$ac_cv_path_PYTHON
    36114017if test -n "$PYTHON"; then
    3612   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
     4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    36134019$as_echo "$PYTHON" >&6; }
    36144020else
    3615   { $as_echo "$as_me:$LINENO: result: no" >&5
     4021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    36164022$as_echo "no" >&6; }
    36174023fi
     
    36194025
    36204026  fi
    3621   { $as_echo "$as_me:$LINENO: checking for Python version" >&5
     4027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
    36224028$as_echo_n "checking for Python version... " >&6; }
    36234029  if test "x${PYTHON}" != "x"; then
    36244030    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
    36254031  fi
    3626   { $as_echo "$as_me:$LINENO: result: $PYTHON_VERSION" >&5
     4032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
    36274033$as_echo "$PYTHON_VERSION" >&6; }
    36284034fi
     
    36304036if test "x${PYTHON_VERSION}" != "x"; then
    36314037  PYTHON_INCLUDES=$incdir
    3632   { $as_echo "$as_me:$LINENO: checking for Python distutils" >&5
     4038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
    36334039$as_echo_n "checking for Python distutils... " >&6; }
    36344040  PYTHON_DISTUTILS=""
     
    36384044    PYTHON_DISTUTILS="yes"
    36394045  fi
    3640   { $as_echo "$as_me:$LINENO: result: $PYTHON_DISTUTILS" >&5
     4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
    36414047$as_echo "$PYTHON_DISTUTILS" >&6; }
    36424048  if test "${PYTHON_DISTUTILS}" = "yes" ; then
     
    36454051    # Check for Python include path
    36464052    #
    3647     { $as_echo "$as_me:$LINENO: checking path to Python headers" >&5
     4053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
    36484054$as_echo_n "checking path to Python headers... " >&6; }
    36494055    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
    36504056     print distutils.sysconfig.get_python_inc();"`
    3651     { $as_echo "$as_me:$LINENO: result: $PYTHON_INCDIR" >&5
     4057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
    36524058$as_echo "$PYTHON_INCDIR" >&6; }
    36534059    #
     
    36624068    save_CPPFLAGS=$CPPFLAGS
    36634069    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
    3664 
    3665 for ac_header in Python.h
    3666 do
    3667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    3669   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    3670 $as_echo_n "checking for $ac_header... " >&6; }
    3671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    3672   $as_echo_n "(cached) " >&6
    3673 fi
    3674 ac_res=`eval 'as_val=${'$as_ac_Header'}
    3675                  $as_echo "$as_val"'`
    3676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    3677 $as_echo "$ac_res" >&6; }
    3678 else
    3679   # Is the header compilable?
    3680 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    3681 $as_echo_n "checking $ac_header usability... " >&6; }
    3682 cat >conftest.$ac_ext <<_ACEOF
    3683 /* confdefs.h.  */
    3684 _ACEOF
    3685 cat confdefs.h >>conftest.$ac_ext
    3686 cat >>conftest.$ac_ext <<_ACEOF
    3687 /* end confdefs.h.  */
    3688 $ac_includes_default
    3689 #include <$ac_header>
    3690 _ACEOF
    3691 rm -f conftest.$ac_objext
    3692 if { (ac_try="$ac_compile"
    3693 case "(($ac_try" in
    3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3695   *) ac_try_echo=$ac_try;;
    3696 esac
    3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3698 $as_echo "$ac_try_echo") >&5
    3699   (eval "$ac_compile") 2>conftest.er1
    3700   ac_status=$?
    3701   grep -v '^ *+' conftest.er1 >conftest.err
    3702   rm -f conftest.er1
    3703   cat conftest.err >&5
    3704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3705   (exit $ac_status); } && {
    3706          test -z "$ac_c_werror_flag" ||
    3707          test ! -s conftest.err
    3708        } && test -s conftest.$ac_objext; then
    3709   ac_header_compiler=yes
    3710 else
    3711   $as_echo "$as_me: failed program was:" >&5
    3712 sed 's/^/| /' conftest.$ac_ext >&5
    3713 
    3714         ac_header_compiler=no
    3715 fi
    3716 
    3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3718 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    3719 $as_echo "$ac_header_compiler" >&6; }
    3720 
    3721 # Is the header present?
    3722 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    3723 $as_echo_n "checking $ac_header presence... " >&6; }
    3724 cat >conftest.$ac_ext <<_ACEOF
    3725 /* confdefs.h.  */
    3726 _ACEOF
    3727 cat confdefs.h >>conftest.$ac_ext
    3728 cat >>conftest.$ac_ext <<_ACEOF
    3729 /* end confdefs.h.  */
    3730 #include <$ac_header>
    3731 _ACEOF
    3732 if { (ac_try="$ac_cpp conftest.$ac_ext"
    3733 case "(($ac_try" in
    3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3735   *) ac_try_echo=$ac_try;;
    3736 esac
    3737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    3738 $as_echo "$ac_try_echo") >&5
    3739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    3740   ac_status=$?
    3741   grep -v '^ *+' conftest.er1 >conftest.err
    3742   rm -f conftest.er1
    3743   cat conftest.err >&5
    3744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3745   (exit $ac_status); } >/dev/null && {
    3746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    3747          test ! -s conftest.err
    3748        }; then
    3749   ac_header_preproc=yes
    3750 else
    3751   $as_echo "$as_me: failed program was:" >&5
    3752 sed 's/^/| /' conftest.$ac_ext >&5
    3753 
    3754   ac_header_preproc=no
    3755 fi
    3756 
    3757 rm -f conftest.err conftest.$ac_ext
    3758 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    3759 $as_echo "$ac_header_preproc" >&6; }
    3760 
    3761 # So?  What about this header?
    3762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3763   yes:no: )
    3764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    3765 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    3767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    3768     ac_header_preproc=yes
    3769     ;;
    3770   no:yes:* )
    3771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    3772 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    3773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    3774 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    3775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    3776 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    3777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    3778 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    3779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    3780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    3781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    3782 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    3783     ( cat <<\_ASBOX
    3784 ## ----------------------------------- ##
    3785 ## Report this to rappture@nanohub.org ##
    3786 ## ----------------------------------- ##
    3787 _ASBOX
    3788      ) | sed "s/^/$as_me: WARNING:     /" >&2
    3789     ;;
    3790 esac
    3791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    3792 $as_echo_n "checking for $ac_header... " >&6; }
    3793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    3794   $as_echo_n "(cached) " >&6
    3795 else
    3796   eval "$as_ac_Header=\$ac_header_preproc"
    3797 fi
    3798 ac_res=`eval 'as_val=${'$as_ac_Header'}
    3799                  $as_echo "$as_val"'`
    3800                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    3801 $as_echo "$ac_res" >&6; }
    3802 
    3803 fi
    3804 as_val=`eval 'as_val=${'$as_ac_Header'}
    3805                  $as_echo "$as_val"'`
    3806    if test "x$as_val" = x""yes; then
     4070    for ac_header in Python.h
     4071do :
     4072  ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
     4073if test "x$ac_cv_header_Python_h" = xyes; then :
    38074074  cat >>confdefs.h <<_ACEOF
    3808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4075#define HAVE_PYTHON_H 1
    38094076_ACEOF
    38104077 found=yes
     
    38504117  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    38514118set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    3852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    38534120$as_echo_n "checking for $ac_word... " >&6; }
    3854 if test "${ac_cv_prog_RANLIB+set}" = set; then
     4121if ${ac_cv_prog_RANLIB+:} false; then :
    38554122  $as_echo_n "(cached) " >&6
    38564123else
     
    38634130  IFS=$as_save_IFS
    38644131  test -z "$as_dir" && as_dir=.
    3865   for ac_exec_ext in '' $ac_executable_extensions; do
    3866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4132    for ac_exec_ext in '' $ac_executable_extensions; do
     4133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    38674134    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    3868     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    38694136    break 2
    38704137  fi
    38714138done
    3872 done
     4139  done
    38734140IFS=$as_save_IFS
    38744141
     
    38774144RANLIB=$ac_cv_prog_RANLIB
    38784145if test -n "$RANLIB"; then
    3879   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
     4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    38804147$as_echo "$RANLIB" >&6; }
    38814148else
    3882   { $as_echo "$as_me:$LINENO: result: no" >&5
     4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    38834150$as_echo "no" >&6; }
    38844151fi
     
    38904157  # Extract the first word of "ranlib", so it can be a program name with args.
    38914158set dummy ranlib; ac_word=$2
    3892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    38934160$as_echo_n "checking for $ac_word... " >&6; }
    3894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     4161if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    38954162  $as_echo_n "(cached) " >&6
    38964163else
     
    39034170  IFS=$as_save_IFS
    39044171  test -z "$as_dir" && as_dir=.
    3905   for ac_exec_ext in '' $ac_executable_extensions; do
    3906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4172    for ac_exec_ext in '' $ac_executable_extensions; do
     4173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39074174    ac_cv_prog_ac_ct_RANLIB="ranlib"
    3908     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    39094176    break 2
    39104177  fi
    39114178done
    3912 done
     4179  done
    39134180IFS=$as_save_IFS
    39144181
     
    39174184ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    39184185if test -n "$ac_ct_RANLIB"; then
    3919   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    39204187$as_echo "$ac_ct_RANLIB" >&6; }
    39214188else
    3922   { $as_echo "$as_me:$LINENO: result: no" >&5
     4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    39234190$as_echo "no" >&6; }
    39244191fi
     
    39294196    case $cross_compiling:$ac_tool_warned in
    39304197yes:)
    3931 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     4198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    39324199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    39334200ac_tool_warned=yes ;;
     
    39434210    # Step 0.a: Enable 64 bit support?
    39444211
    3945     { $as_echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
     4212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
    39464213$as_echo_n "checking if 64bit support is requested... " >&6; }
    39474214    # Check whether --enable-64bit was given.
    3948 if test "${enable_64bit+set}" = set; then
     4215if test "${enable_64bit+set}" = set; then :
    39494216  enableval=$enable_64bit; do64bit=$enableval
    39504217else
     
    39524219fi
    39534220
    3954     { $as_echo "$as_me:$LINENO: result: $do64bit" >&5
     4221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
    39554222$as_echo "$do64bit" >&6; }
    39564223
    39574224    # Step 0.b: Enable Solaris 64 bit VIS support?
    39584225
    3959     { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
     4226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
    39604227$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
    39614228    # Check whether --enable-64bit-vis was given.
    3962 if test "${enable_64bit_vis+set}" = set; then
     4229if test "${enable_64bit_vis+set}" = set; then :
    39634230  enableval=$enable_64bit_vis; do64bitVIS=$enableval
    39644231else
     
    39664233fi
    39674234
    3968     { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5
     4235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
    39694236$as_echo "$do64bitVIS" >&6; }
    39704237
     
    39784245
    39794246
    3980     { $as_echo "$as_me:$LINENO: checking system version" >&5
     4247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
    39814248$as_echo_n "checking system version... " >&6; }
    3982 if test "${tcl_cv_sys_version+set}" = set; then
     4249if ${tcl_cv_sys_version+:} false; then :
    39834250  $as_echo_n "(cached) " >&6
    39844251else
     
    39894256            tcl_cv_sys_version=`uname -s`-`uname -r`
    39904257            if test "$?" -ne 0 ; then
    3991                 { $as_echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
     4258                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
    39924259$as_echo "$as_me: WARNING: can't find uname command" >&2;}
    39934260                tcl_cv_sys_version=unknown
     
    40064273
    40074274fi
    4008 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
     4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
    40094276$as_echo "$tcl_cv_sys_version" >&6; }
    40104277    system=$tcl_cv_sys_version
     
    40144281    # Linux can use either -ldl or -ldld for dynamic loading.
    40154282
    4016     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    40174284$as_echo_n "checking for dlopen in -ldl... " >&6; }
    4018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     4285if ${ac_cv_lib_dl_dlopen+:} false; then :
    40194286  $as_echo_n "(cached) " >&6
    40204287else
    40214288  ac_check_lib_save_LIBS=$LIBS
    40224289LIBS="-ldl  $LIBS"
    4023 cat >conftest.$ac_ext <<_ACEOF
    4024 /* confdefs.h.  */
    4025 _ACEOF
    4026 cat confdefs.h >>conftest.$ac_ext
    4027 cat >>conftest.$ac_ext <<_ACEOF
     4290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    40284291/* end confdefs.h.  */
    40294292
     
    40434306}
    40444307_ACEOF
    4045 rm -f conftest.$ac_objext conftest$ac_exeext
    4046 if { (ac_try="$ac_link"
    4047 case "(($ac_try" in
    4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4049   *) ac_try_echo=$ac_try;;
    4050 esac
    4051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4052 $as_echo "$ac_try_echo") >&5
    4053   (eval "$ac_link") 2>conftest.er1
    4054   ac_status=$?
    4055   grep -v '^ *+' conftest.er1 >conftest.err
    4056   rm -f conftest.er1
    4057   cat conftest.err >&5
    4058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4059   (exit $ac_status); } && {
    4060          test -z "$ac_c_werror_flag" ||
    4061          test ! -s conftest.err
    4062        } && test -s conftest$ac_exeext && {
    4063          test "$cross_compiling" = yes ||
    4064          $as_test_x conftest$ac_exeext
    4065        }; then
     4308if ac_fn_c_try_link "$LINENO"; then :
    40664309  ac_cv_lib_dl_dlopen=yes
    40674310else
    4068   $as_echo "$as_me: failed program was:" >&5
    4069 sed 's/^/| /' conftest.$ac_ext >&5
    4070 
    4071         ac_cv_lib_dl_dlopen=no
    4072 fi
    4073 
    4074 rm -rf conftest.dSYM
    4075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4076       conftest$ac_exeext conftest.$ac_ext
     4311  ac_cv_lib_dl_dlopen=no
     4312fi
     4313rm -f core conftest.err conftest.$ac_objext \
     4314    conftest$ac_exeext conftest.$ac_ext
    40774315LIBS=$ac_check_lib_save_LIBS
    40784316fi
    4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    40804318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    4081 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
     4319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    40824320  have_dl=yes
    40834321else
     
    41114349    # Extract the first word of "ar", so it can be a program name with args.
    41124350set dummy ar; ac_word=$2
    4113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    41144352$as_echo_n "checking for $ac_word... " >&6; }
    4115 if test "${ac_cv_prog_AR+set}" = set; then
     4353if ${ac_cv_prog_AR+:} false; then :
    41164354  $as_echo_n "(cached) " >&6
    41174355else
     
    41244362  IFS=$as_save_IFS
    41254363  test -z "$as_dir" && as_dir=.
    4126   for ac_exec_ext in '' $ac_executable_extensions; do
    4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4364    for ac_exec_ext in '' $ac_executable_extensions; do
     4365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    41284366    ac_cv_prog_AR="ar"
    4129     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    41304368    break 2
    41314369  fi
    41324370done
    4133 done
     4371  done
    41344372IFS=$as_save_IFS
    41354373
     
    41384376AR=$ac_cv_prog_AR
    41394377if test -n "$AR"; then
    4140   { $as_echo "$as_me:$LINENO: result: $AR" >&5
     4378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
    41414379$as_echo "$AR" >&6; }
    41424380else
    4143   { $as_echo "$as_me:$LINENO: result: no" >&5
     4381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    41444382$as_echo "no" >&6; }
    41454383fi
     
    41474385
    41484386    if test "${AR}" = "" ; then
    4149         { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5
    4150 $as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;}
    4151    { (exit 1); exit 1; }; }
     4387        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
    41524388    fi
    41534389    STLIB_LD='${AR} cr'
     
    41674403                        ;;
    41684404                esac
    4169                 { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
     4405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
    41704406$as_echo "Using $CC for compiling with threads" >&6; }
    41714407            fi
     
    41834419            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
    41844420                if test "$GCC" = "yes" ; then
    4185                     { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     4421                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    41864422$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    41874423                else
     
    42384474            # known GMT value.
    42394475
    4240             { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
     4476            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
    42414477$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    4242 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
     4478if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
    42434479  $as_echo_n "(cached) " >&6
    42444480else
    42454481  ac_check_lib_save_LIBS=$LIBS
    42464482LIBS="-lbsd  $LIBS"
    4247 cat >conftest.$ac_ext <<_ACEOF
    4248 /* confdefs.h.  */
    4249 _ACEOF
    4250 cat confdefs.h >>conftest.$ac_ext
    4251 cat >>conftest.$ac_ext <<_ACEOF
     4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    42524484/* end confdefs.h.  */
    42534485
     
    42674499}
    42684500_ACEOF
    4269 rm -f conftest.$ac_objext conftest$ac_exeext
    4270 if { (ac_try="$ac_link"
    4271 case "(($ac_try" in
    4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4273   *) ac_try_echo=$ac_try;;
    4274 esac
    4275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4276 $as_echo "$ac_try_echo") >&5
    4277   (eval "$ac_link") 2>conftest.er1
    4278   ac_status=$?
    4279   grep -v '^ *+' conftest.er1 >conftest.err
    4280   rm -f conftest.er1
    4281   cat conftest.err >&5
    4282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4283   (exit $ac_status); } && {
    4284          test -z "$ac_c_werror_flag" ||
    4285          test ! -s conftest.err
    4286        } && test -s conftest$ac_exeext && {
    4287          test "$cross_compiling" = yes ||
    4288          $as_test_x conftest$ac_exeext
    4289        }; then
     4501if ac_fn_c_try_link "$LINENO"; then :
    42904502  ac_cv_lib_bsd_gettimeofday=yes
    42914503else
    4292   $as_echo "$as_me: failed program was:" >&5
    4293 sed 's/^/| /' conftest.$ac_ext >&5
    4294 
    4295         ac_cv_lib_bsd_gettimeofday=no
    4296 fi
    4297 
    4298 rm -rf conftest.dSYM
    4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4300       conftest$ac_exeext conftest.$ac_ext
     4504  ac_cv_lib_bsd_gettimeofday=no
     4505fi
     4506rm -f core conftest.err conftest.$ac_objext \
     4507    conftest$ac_exeext conftest.$ac_ext
    43014508LIBS=$ac_check_lib_save_LIBS
    43024509fi
    4303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
     4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
    43044511$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    4305 if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then
     4512if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
    43064513  libbsd=yes
    43074514else
     
    43114518            if test $libbsd = yes; then
    43124519                MATH_LIBS="$MATH_LIBS -lbsd"
    4313                 cat >>confdefs.h <<\_ACEOF
    4314 #define USE_DELTA_FOR_TZ 1
    4315 _ACEOF
     4520                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
    43164521
    43174522            fi
     
    43304535            # is always linked to, for compatibility.
    43314536            #-----------------------------------------------------------
    4332             { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
     4537            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
    43334538$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    4334 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
     4539if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
    43354540  $as_echo_n "(cached) " >&6
    43364541else
    43374542  ac_check_lib_save_LIBS=$LIBS
    43384543LIBS="-lbind  $LIBS"
    4339 cat >conftest.$ac_ext <<_ACEOF
    4340 /* confdefs.h.  */
    4341 _ACEOF
    4342 cat confdefs.h >>conftest.$ac_ext
    4343 cat >>conftest.$ac_ext <<_ACEOF
     4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    43444545/* end confdefs.h.  */
    43454546
     
    43594560}
    43604561_ACEOF
    4361 rm -f conftest.$ac_objext conftest$ac_exeext
    4362 if { (ac_try="$ac_link"
    4363 case "(($ac_try" in
    4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4365   *) ac_try_echo=$ac_try;;
    4366 esac
    4367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4368 $as_echo "$ac_try_echo") >&5
    4369   (eval "$ac_link") 2>conftest.er1
    4370   ac_status=$?
    4371   grep -v '^ *+' conftest.er1 >conftest.err
    4372   rm -f conftest.er1
    4373   cat conftest.err >&5
    4374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4375   (exit $ac_status); } && {
    4376          test -z "$ac_c_werror_flag" ||
    4377          test ! -s conftest.err
    4378        } && test -s conftest$ac_exeext && {
    4379          test "$cross_compiling" = yes ||
    4380          $as_test_x conftest$ac_exeext
    4381        }; then
     4562if ac_fn_c_try_link "$LINENO"; then :
    43824563  ac_cv_lib_bind_inet_ntoa=yes
    43834564else
    4384   $as_echo "$as_me: failed program was:" >&5
    4385 sed 's/^/| /' conftest.$ac_ext >&5
    4386 
    4387         ac_cv_lib_bind_inet_ntoa=no
    4388 fi
    4389 
    4390 rm -rf conftest.dSYM
    4391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4392       conftest$ac_exeext conftest.$ac_ext
     4565  ac_cv_lib_bind_inet_ntoa=no
     4566fi
     4567rm -f core conftest.err conftest.$ac_objext \
     4568    conftest$ac_exeext conftest.$ac_ext
    43934569LIBS=$ac_check_lib_save_LIBS
    43944570fi
    4395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
     4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
    43964572$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    4397 if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then
     4573if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
    43984574  LIBS="$LIBS -lbind -lsocket"
    43994575fi
     
    44334609        HP-UX-*.11.*)
    44344610            # Use updated header definitions where possible
    4435             cat >>confdefs.h <<\_ACEOF
    4436 #define _XOPEN_SOURCE 1
    4437 _ACEOF
     4611            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
    44384612          # Use the XOPEN network library
    4439             cat >>confdefs.h <<\_ACEOF
    4440 #define _XOPEN_SOURCE_EXTENDED 1
    4441 _ACEOF
     4613            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
    44424614 # Use the XOPEN network library
    44434615            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     
    44484620                SHLIB_SUFFIX=".sl"
    44494621            fi
    4450             { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     4622            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    44514623$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4452 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     4624if ${ac_cv_lib_dld_shl_load+:} false; then :
    44534625  $as_echo_n "(cached) " >&6
    44544626else
    44554627  ac_check_lib_save_LIBS=$LIBS
    44564628LIBS="-ldld  $LIBS"
    4457 cat >conftest.$ac_ext <<_ACEOF
    4458 /* confdefs.h.  */
    4459 _ACEOF
    4460 cat confdefs.h >>conftest.$ac_ext
    4461 cat >>conftest.$ac_ext <<_ACEOF
     4629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44624630/* end confdefs.h.  */
    44634631
     
    44774645}
    44784646_ACEOF
    4479 rm -f conftest.$ac_objext conftest$ac_exeext
    4480 if { (ac_try="$ac_link"
    4481 case "(($ac_try" in
    4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4483   *) ac_try_echo=$ac_try;;
    4484 esac
    4485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4486 $as_echo "$ac_try_echo") >&5
    4487   (eval "$ac_link") 2>conftest.er1
    4488   ac_status=$?
    4489   grep -v '^ *+' conftest.er1 >conftest.err
    4490   rm -f conftest.er1
    4491   cat conftest.err >&5
    4492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4493   (exit $ac_status); } && {
    4494          test -z "$ac_c_werror_flag" ||
    4495          test ! -s conftest.err
    4496        } && test -s conftest$ac_exeext && {
    4497          test "$cross_compiling" = yes ||
    4498          $as_test_x conftest$ac_exeext
    4499        }; then
     4647if ac_fn_c_try_link "$LINENO"; then :
    45004648  ac_cv_lib_dld_shl_load=yes
    45014649else
    4502   $as_echo "$as_me: failed program was:" >&5
    4503 sed 's/^/| /' conftest.$ac_ext >&5
    4504 
    4505         ac_cv_lib_dld_shl_load=no
    4506 fi
    4507 
    4508 rm -rf conftest.dSYM
    4509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4510       conftest$ac_exeext conftest.$ac_ext
     4650  ac_cv_lib_dld_shl_load=no
     4651fi
     4652rm -f core conftest.err conftest.$ac_objext \
     4653    conftest$ac_exeext conftest.$ac_ext
    45114654LIBS=$ac_check_lib_save_LIBS
    45124655fi
    4513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    45144657$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4515 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
     4658if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    45164659  tcl_ok=yes
    45174660else
     
    45534696                            ;;
    45544697                        *)
    4555                             { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     4698                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    45564699$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    45574700                            ;;
     
    45664709        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
    45674710            SHLIB_SUFFIX=".sl"
    4568             { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     4711            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    45694712$as_echo_n "checking for shl_load in -ldld... " >&6; }
    4570 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     4713if ${ac_cv_lib_dld_shl_load+:} false; then :
    45714714  $as_echo_n "(cached) " >&6
    45724715else
    45734716  ac_check_lib_save_LIBS=$LIBS
    45744717LIBS="-ldld  $LIBS"
    4575 cat >conftest.$ac_ext <<_ACEOF
    4576 /* confdefs.h.  */
    4577 _ACEOF
    4578 cat confdefs.h >>conftest.$ac_ext
    4579 cat >>conftest.$ac_ext <<_ACEOF
     4718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45804719/* end confdefs.h.  */
    45814720
     
    45954734}
    45964735_ACEOF
    4597 rm -f conftest.$ac_objext conftest$ac_exeext
    4598 if { (ac_try="$ac_link"
    4599 case "(($ac_try" in
    4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4601   *) ac_try_echo=$ac_try;;
    4602 esac
    4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4604 $as_echo "$ac_try_echo") >&5
    4605   (eval "$ac_link") 2>conftest.er1
    4606   ac_status=$?
    4607   grep -v '^ *+' conftest.er1 >conftest.err
    4608   rm -f conftest.er1
    4609   cat conftest.err >&5
    4610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4611   (exit $ac_status); } && {
    4612          test -z "$ac_c_werror_flag" ||
    4613          test ! -s conftest.err
    4614        } && test -s conftest$ac_exeext && {
    4615          test "$cross_compiling" = yes ||
    4616          $as_test_x conftest$ac_exeext
    4617        }; then
     4736if ac_fn_c_try_link "$LINENO"; then :
    46184737  ac_cv_lib_dld_shl_load=yes
    46194738else
    4620   $as_echo "$as_me: failed program was:" >&5
    4621 sed 's/^/| /' conftest.$ac_ext >&5
    4622 
    4623         ac_cv_lib_dld_shl_load=no
    4624 fi
    4625 
    4626 rm -rf conftest.dSYM
    4627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4628       conftest$ac_exeext conftest.$ac_ext
     4739  ac_cv_lib_dld_shl_load=no
     4740fi
     4741rm -f core conftest.err conftest.$ac_objext \
     4742    conftest$ac_exeext conftest.$ac_ext
    46294743LIBS=$ac_check_lib_save_LIBS
    46304744fi
    4631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    46324746$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4633 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
     4747if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    46344748  tcl_ok=yes
    46354749else
     
    47104824            if test "$do64bit" = "yes" ; then
    47114825                if test "$GCC" = "yes" ; then
    4712                     { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
     4826                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
    47134827$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
    47144828                else
     
    47394853                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    47404854            else
    4741                 if test "${ac_cv_header_dld_h+set}" = set; then
    4742   { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
    4743 $as_echo_n "checking for dld.h... " >&6; }
    4744 if test "${ac_cv_header_dld_h+set}" = set; then
    4745   $as_echo_n "(cached) " >&6
    4746 fi
    4747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
    4748 $as_echo "$ac_cv_header_dld_h" >&6; }
    4749 else
    4750   # Is the header compilable?
    4751 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
    4752 $as_echo_n "checking dld.h usability... " >&6; }
    4753 cat >conftest.$ac_ext <<_ACEOF
    4754 /* confdefs.h.  */
    4755 _ACEOF
    4756 cat confdefs.h >>conftest.$ac_ext
    4757 cat >>conftest.$ac_ext <<_ACEOF
    4758 /* end confdefs.h.  */
    4759 $ac_includes_default
    4760 #include <dld.h>
    4761 _ACEOF
    4762 rm -f conftest.$ac_objext
    4763 if { (ac_try="$ac_compile"
    4764 case "(($ac_try" in
    4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4766   *) ac_try_echo=$ac_try;;
    4767 esac
    4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4769 $as_echo "$ac_try_echo") >&5
    4770   (eval "$ac_compile") 2>conftest.er1
    4771   ac_status=$?
    4772   grep -v '^ *+' conftest.er1 >conftest.err
    4773   rm -f conftest.er1
    4774   cat conftest.err >&5
    4775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4776   (exit $ac_status); } && {
    4777          test -z "$ac_c_werror_flag" ||
    4778          test ! -s conftest.err
    4779        } && test -s conftest.$ac_objext; then
    4780   ac_header_compiler=yes
    4781 else
    4782   $as_echo "$as_me: failed program was:" >&5
    4783 sed 's/^/| /' conftest.$ac_ext >&5
    4784 
    4785         ac_header_compiler=no
    4786 fi
    4787 
    4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4790 $as_echo "$ac_header_compiler" >&6; }
    4791 
    4792 # Is the header present?
    4793 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
    4794 $as_echo_n "checking dld.h presence... " >&6; }
    4795 cat >conftest.$ac_ext <<_ACEOF
    4796 /* confdefs.h.  */
    4797 _ACEOF
    4798 cat confdefs.h >>conftest.$ac_ext
    4799 cat >>conftest.$ac_ext <<_ACEOF
    4800 /* end confdefs.h.  */
    4801 #include <dld.h>
    4802 _ACEOF
    4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
    4804 case "(($ac_try" in
    4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4806   *) ac_try_echo=$ac_try;;
    4807 esac
    4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4809 $as_echo "$ac_try_echo") >&5
    4810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    4811   ac_status=$?
    4812   grep -v '^ *+' conftest.er1 >conftest.err
    4813   rm -f conftest.er1
    4814   cat conftest.err >&5
    4815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4816   (exit $ac_status); } >/dev/null && {
    4817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    4818          test ! -s conftest.err
    4819        }; then
    4820   ac_header_preproc=yes
    4821 else
    4822   $as_echo "$as_me: failed program was:" >&5
    4823 sed 's/^/| /' conftest.$ac_ext >&5
    4824 
    4825   ac_header_preproc=no
    4826 fi
    4827 
    4828 rm -f conftest.err conftest.$ac_ext
    4829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4830 $as_echo "$ac_header_preproc" >&6; }
    4831 
    4832 # So?  What about this header?
    4833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4834   yes:no: )
    4835     { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
    4836 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4837     { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
    4838 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
    4839     ac_header_preproc=yes
    4840     ;;
    4841   no:yes:* )
    4842     { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
    4843 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
    4844     { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
    4845 $as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
    4846     { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
    4847 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
    4848     { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
    4849 $as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    4850     { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
    4851 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
    4852     { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
    4853 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
    4854     ( cat <<\_ASBOX
    4855 ## ----------------------------------- ##
    4856 ## Report this to rappture@nanohub.org ##
    4857 ## ----------------------------------- ##
    4858 _ASBOX
    4859      ) | sed "s/^/$as_me: WARNING:     /" >&2
    4860     ;;
    4861 esac
    4862 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
    4863 $as_echo_n "checking for dld.h... " >&6; }
    4864 if test "${ac_cv_header_dld_h+set}" = set; then
    4865   $as_echo_n "(cached) " >&6
    4866 else
    4867   ac_cv_header_dld_h=$ac_header_preproc
    4868 fi
    4869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
    4870 $as_echo "$ac_cv_header_dld_h" >&6; }
    4871 
    4872 fi
    4873 if test "x$ac_cv_header_dld_h" = x""yes; then
     4855                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     4856if test "x$ac_cv_header_dld_h" = xyes; then :
    48744857
    48754858                    SHLIB_LD="ld -shared"
     
    48864869            fi
    48874870            if test $do64bit = yes; then
    4888                 { $as_echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
     4871                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
    48894872$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    4890 if test "${tcl_cv_cc_m64+set}" = set; then
     4873if ${tcl_cv_cc_m64+:} false; then :
    48914874  $as_echo_n "(cached) " >&6
    48924875else
     
    48944877                    hold_cflags=$CFLAGS
    48954878                    CFLAGS="$CFLAGS -m64"
    4896                     cat >conftest.$ac_ext <<_ACEOF
    4897 /* confdefs.h.  */
    4898 _ACEOF
    4899 cat confdefs.h >>conftest.$ac_ext
    4900 cat >>conftest.$ac_ext <<_ACEOF
     4879                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    49014880/* end confdefs.h.  */
    49024881
     
    49094888}
    49104889_ACEOF
    4911 rm -f conftest.$ac_objext conftest$ac_exeext
    4912 if { (ac_try="$ac_link"
    4913 case "(($ac_try" in
    4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4915   *) ac_try_echo=$ac_try;;
    4916 esac
    4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4918 $as_echo "$ac_try_echo") >&5
    4919   (eval "$ac_link") 2>conftest.er1
    4920   ac_status=$?
    4921   grep -v '^ *+' conftest.er1 >conftest.err
    4922   rm -f conftest.er1
    4923   cat conftest.err >&5
    4924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4925   (exit $ac_status); } && {
    4926          test -z "$ac_c_werror_flag" ||
    4927          test ! -s conftest.err
    4928        } && test -s conftest$ac_exeext && {
    4929          test "$cross_compiling" = yes ||
    4930          $as_test_x conftest$ac_exeext
    4931        }; then
     4890if ac_fn_c_try_link "$LINENO"; then :
    49324891  tcl_cv_cc_m64=yes
    49334892else
    4934   $as_echo "$as_me: failed program was:" >&5
    4935 sed 's/^/| /' conftest.$ac_ext >&5
    4936 
    4937         tcl_cv_cc_m64=no
    4938 fi
    4939 
    4940 rm -rf conftest.dSYM
    4941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    4942       conftest$ac_exeext conftest.$ac_ext
     4893  tcl_cv_cc_m64=no
     4894fi
     4895rm -f core conftest.err conftest.$ac_objext \
     4896    conftest$ac_exeext conftest.$ac_ext
    49434897                    CFLAGS=$hold_cflags
    49444898fi
    4945 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
     4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
    49464900$as_echo "$tcl_cv_cc_m64" >&6; }
    49474901                if test $tcl_cv_cc_m64 = yes; then
     
    49634917
    49644918            # XIM peeking works under XFree86.
    4965             cat >>confdefs.h <<\_ACEOF
    4966 #define PEEK_XCLOSEIM 1
    4967 _ACEOF
     4919            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
    49684920
    49694921
     
    49824934                LD_SEARCH_FLAGS=""
    49834935            else
    4984                 if test "${ac_cv_header_dld_h+set}" = set; then
    4985   { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
    4986 $as_echo_n "checking for dld.h... " >&6; }
    4987 if test "${ac_cv_header_dld_h+set}" = set; then
    4988   $as_echo_n "(cached) " >&6
    4989 fi
    4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
    4991 $as_echo "$ac_cv_header_dld_h" >&6; }
    4992 else
    4993   # Is the header compilable?
    4994 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
    4995 $as_echo_n "checking dld.h usability... " >&6; }
    4996 cat >conftest.$ac_ext <<_ACEOF
    4997 /* confdefs.h.  */
    4998 _ACEOF
    4999 cat confdefs.h >>conftest.$ac_ext
    5000 cat >>conftest.$ac_ext <<_ACEOF
    5001 /* end confdefs.h.  */
    5002 $ac_includes_default
    5003 #include <dld.h>
    5004 _ACEOF
    5005 rm -f conftest.$ac_objext
    5006 if { (ac_try="$ac_compile"
    5007 case "(($ac_try" in
    5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5009   *) ac_try_echo=$ac_try;;
    5010 esac
    5011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5012 $as_echo "$ac_try_echo") >&5
    5013   (eval "$ac_compile") 2>conftest.er1
    5014   ac_status=$?
    5015   grep -v '^ *+' conftest.er1 >conftest.err
    5016   rm -f conftest.er1
    5017   cat conftest.err >&5
    5018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5019   (exit $ac_status); } && {
    5020          test -z "$ac_c_werror_flag" ||
    5021          test ! -s conftest.err
    5022        } && test -s conftest.$ac_objext; then
    5023   ac_header_compiler=yes
    5024 else
    5025   $as_echo "$as_me: failed program was:" >&5
    5026 sed 's/^/| /' conftest.$ac_ext >&5
    5027 
    5028         ac_header_compiler=no
    5029 fi
    5030 
    5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5033 $as_echo "$ac_header_compiler" >&6; }
    5034 
    5035 # Is the header present?
    5036 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
    5037 $as_echo_n "checking dld.h presence... " >&6; }
    5038 cat >conftest.$ac_ext <<_ACEOF
    5039 /* confdefs.h.  */
    5040 _ACEOF
    5041 cat confdefs.h >>conftest.$ac_ext
    5042 cat >>conftest.$ac_ext <<_ACEOF
    5043 /* end confdefs.h.  */
    5044 #include <dld.h>
    5045 _ACEOF
    5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
    5047 case "(($ac_try" in
    5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5049   *) ac_try_echo=$ac_try;;
    5050 esac
    5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5052 $as_echo "$ac_try_echo") >&5
    5053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    5054   ac_status=$?
    5055   grep -v '^ *+' conftest.er1 >conftest.err
    5056   rm -f conftest.er1
    5057   cat conftest.err >&5
    5058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5059   (exit $ac_status); } >/dev/null && {
    5060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    5061          test ! -s conftest.err
    5062        }; then
    5063   ac_header_preproc=yes
    5064 else
    5065   $as_echo "$as_me: failed program was:" >&5
    5066 sed 's/^/| /' conftest.$ac_ext >&5
    5067 
    5068   ac_header_preproc=no
    5069 fi
    5070 
    5071 rm -f conftest.err conftest.$ac_ext
    5072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5073 $as_echo "$ac_header_preproc" >&6; }
    5074 
    5075 # So?  What about this header?
    5076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5077   yes:no: )
    5078     { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
    5079 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5080     { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
    5081 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
    5082     ac_header_preproc=yes
    5083     ;;
    5084   no:yes:* )
    5085     { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
    5086 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
    5087     { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
    5088 $as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
    5089     { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
    5090 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
    5091     { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
    5092 $as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    5093     { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
    5094 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
    5095     { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
    5096 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
    5097     ( cat <<\_ASBOX
    5098 ## ----------------------------------- ##
    5099 ## Report this to rappture@nanohub.org ##
    5100 ## ----------------------------------- ##
    5101 _ASBOX
    5102      ) | sed "s/^/$as_me: WARNING:     /" >&2
    5103     ;;
    5104 esac
    5105 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
    5106 $as_echo_n "checking for dld.h... " >&6; }
    5107 if test "${ac_cv_header_dld_h+set}" = set; then
    5108   $as_echo_n "(cached) " >&6
    5109 else
    5110   ac_cv_header_dld_h=$ac_header_preproc
    5111 fi
    5112 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
    5113 $as_echo "$ac_cv_header_dld_h" >&6; }
    5114 
    5115 fi
    5116 if test "x$ac_cv_header_dld_h" = x""yes; then
     4936                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     4937if test "x$ac_cv_header_dld_h" = xyes; then :
    51174938
    51184939                    SHLIB_LD="ld -shared"
     
    51644985        NetBSD-*|FreeBSD-[1-2].*)
    51654986            # Not available on all versions:  check for include file.
    5166             if test "${ac_cv_header_dlfcn_h+set}" = set; then
    5167   { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
    5168 $as_echo_n "checking for dlfcn.h... " >&6; }
    5169 if test "${ac_cv_header_dlfcn_h+set}" = set; then
    5170   $as_echo_n "(cached) " >&6
    5171 fi
    5172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
    5173 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
    5174 else
    5175   # Is the header compilable?
    5176 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
    5177 $as_echo_n "checking dlfcn.h usability... " >&6; }
    5178 cat >conftest.$ac_ext <<_ACEOF
    5179 /* confdefs.h.  */
    5180 _ACEOF
    5181 cat confdefs.h >>conftest.$ac_ext
    5182 cat >>conftest.$ac_ext <<_ACEOF
    5183 /* end confdefs.h.  */
    5184 $ac_includes_default
    5185 #include <dlfcn.h>
    5186 _ACEOF
    5187 rm -f conftest.$ac_objext
    5188 if { (ac_try="$ac_compile"
    5189 case "(($ac_try" in
    5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5191   *) ac_try_echo=$ac_try;;
    5192 esac
    5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5194 $as_echo "$ac_try_echo") >&5
    5195   (eval "$ac_compile") 2>conftest.er1
    5196   ac_status=$?
    5197   grep -v '^ *+' conftest.er1 >conftest.err
    5198   rm -f conftest.er1
    5199   cat conftest.err >&5
    5200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5201   (exit $ac_status); } && {
    5202          test -z "$ac_c_werror_flag" ||
    5203          test ! -s conftest.err
    5204        } && test -s conftest.$ac_objext; then
    5205   ac_header_compiler=yes
    5206 else
    5207   $as_echo "$as_me: failed program was:" >&5
    5208 sed 's/^/| /' conftest.$ac_ext >&5
    5209 
    5210         ac_header_compiler=no
    5211 fi
    5212 
    5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5215 $as_echo "$ac_header_compiler" >&6; }
    5216 
    5217 # Is the header present?
    5218 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
    5219 $as_echo_n "checking dlfcn.h presence... " >&6; }
    5220 cat >conftest.$ac_ext <<_ACEOF
    5221 /* confdefs.h.  */
    5222 _ACEOF
    5223 cat confdefs.h >>conftest.$ac_ext
    5224 cat >>conftest.$ac_ext <<_ACEOF
    5225 /* end confdefs.h.  */
    5226 #include <dlfcn.h>
    5227 _ACEOF
    5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
    5229 case "(($ac_try" in
    5230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5231   *) ac_try_echo=$ac_try;;
    5232 esac
    5233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5234 $as_echo "$ac_try_echo") >&5
    5235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    5236   ac_status=$?
    5237   grep -v '^ *+' conftest.er1 >conftest.err
    5238   rm -f conftest.er1
    5239   cat conftest.err >&5
    5240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5241   (exit $ac_status); } >/dev/null && {
    5242          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    5243          test ! -s conftest.err
    5244        }; then
    5245   ac_header_preproc=yes
    5246 else
    5247   $as_echo "$as_me: failed program was:" >&5
    5248 sed 's/^/| /' conftest.$ac_ext >&5
    5249 
    5250   ac_header_preproc=no
    5251 fi
    5252 
    5253 rm -f conftest.err conftest.$ac_ext
    5254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5255 $as_echo "$ac_header_preproc" >&6; }
    5256 
    5257 # So?  What about this header?
    5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5259   yes:no: )
    5260     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
    5261 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5262     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
    5263 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
    5264     ac_header_preproc=yes
    5265     ;;
    5266   no:yes:* )
    5267     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
    5268 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
    5269     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
    5270 $as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
    5271     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
    5272 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
    5273     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
    5274 $as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    5275     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
    5276 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
    5277     { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
    5278 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
    5279     ( cat <<\_ASBOX
    5280 ## ----------------------------------- ##
    5281 ## Report this to rappture@nanohub.org ##
    5282 ## ----------------------------------- ##
    5283 _ASBOX
    5284      ) | sed "s/^/$as_me: WARNING:     /" >&2
    5285     ;;
    5286 esac
    5287 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
    5288 $as_echo_n "checking for dlfcn.h... " >&6; }
    5289 if test "${ac_cv_header_dlfcn_h+set}" = set; then
    5290   $as_echo_n "(cached) " >&6
    5291 else
    5292   ac_cv_header_dlfcn_h=$ac_header_preproc
    5293 fi
    5294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
    5295 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
    5296 
    5297 fi
    5298 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
     4987            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
     4988if test "x$ac_cv_header_dlfcn_h" = xyes; then :
    52994989
    53004990                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     
    53074997                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    53084998                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    5309                 { $as_echo "$as_me:$LINENO: checking for ELF" >&5
     4999                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    53105000$as_echo_n "checking for ELF... " >&6; }
    5311 if test "${tcl_cv_ld_elf+set}" = set; then
     5001if ${tcl_cv_ld_elf+:} false; then :
    53125002  $as_echo_n "(cached) " >&6
    53135003else
    53145004
    5315                     cat >conftest.$ac_ext <<_ACEOF
    5316 /* confdefs.h.  */
    5317 _ACEOF
    5318 cat confdefs.h >>conftest.$ac_ext
    5319 cat >>conftest.$ac_ext <<_ACEOF
     5005                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    53205006/* end confdefs.h.  */
    53215007
     
    53265012_ACEOF
    53275013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5328   $EGREP "yes" >/dev/null 2>&1; then
     5014  $EGREP "yes" >/dev/null 2>&1; then :
    53295015  tcl_cv_ld_elf=yes
    53305016else
     
    53345020
    53355021fi
    5336 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
     5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    53375023$as_echo "$tcl_cv_ld_elf" >&6; }
    53385024                if test $tcl_cv_ld_elf = yes; then
     
    53935079                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    53945080                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    5395                 { $as_echo "$as_me:$LINENO: checking for ELF" >&5
     5081                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    53965082$as_echo_n "checking for ELF... " >&6; }
    5397 if test "${tcl_cv_ld_elf+set}" = set; then
     5083if ${tcl_cv_ld_elf+:} false; then :
    53985084  $as_echo_n "(cached) " >&6
    53995085else
    54005086
    5401                     cat >conftest.$ac_ext <<_ACEOF
    5402 /* confdefs.h.  */
    5403 _ACEOF
    5404 cat confdefs.h >>conftest.$ac_ext
    5405 cat >>conftest.$ac_ext <<_ACEOF
     5087                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54065088/* end confdefs.h.  */
    54075089
     
    54125094_ACEOF
    54135095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5414   $EGREP "yes" >/dev/null 2>&1; then
     5096  $EGREP "yes" >/dev/null 2>&1; then :
    54155097  tcl_cv_ld_elf=yes
    54165098else
     
    54205102
    54215103fi
    5422 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
     5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    54235105$as_echo "$tcl_cv_ld_elf" >&6; }
    54245106                if test $tcl_cv_ld_elf = yes; then
     
    54755157                case `arch` in
    54765158                    ppc)
    5477                         { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
     5159                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
    54785160$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
    5479 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
     5161if ${tcl_cv_cc_arch_ppc64+:} false; then :
    54805162  $as_echo_n "(cached) " >&6
    54815163else
     
    54835165                            hold_cflags=$CFLAGS
    54845166                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    5485                             cat >conftest.$ac_ext <<_ACEOF
    5486 /* confdefs.h.  */
    5487 _ACEOF
    5488 cat confdefs.h >>conftest.$ac_ext
    5489 cat >>conftest.$ac_ext <<_ACEOF
     5167                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54905168/* end confdefs.h.  */
    54915169
     
    54985176}
    54995177_ACEOF
    5500 rm -f conftest.$ac_objext conftest$ac_exeext
    5501 if { (ac_try="$ac_link"
    5502 case "(($ac_try" in
    5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5504   *) ac_try_echo=$ac_try;;
    5505 esac
    5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5507 $as_echo "$ac_try_echo") >&5
    5508   (eval "$ac_link") 2>conftest.er1
    5509   ac_status=$?
    5510   grep -v '^ *+' conftest.er1 >conftest.err
    5511   rm -f conftest.er1
    5512   cat conftest.err >&5
    5513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5514   (exit $ac_status); } && {
    5515          test -z "$ac_c_werror_flag" ||
    5516          test ! -s conftest.err
    5517        } && test -s conftest$ac_exeext && {
    5518          test "$cross_compiling" = yes ||
    5519          $as_test_x conftest$ac_exeext
    5520        }; then
     5178if ac_fn_c_try_link "$LINENO"; then :
    55215179  tcl_cv_cc_arch_ppc64=yes
    55225180else
    5523   $as_echo "$as_me: failed program was:" >&5
    5524 sed 's/^/| /' conftest.$ac_ext >&5
    5525 
    5526         tcl_cv_cc_arch_ppc64=no
    5527 fi
    5528 
    5529 rm -rf conftest.dSYM
    5530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5531       conftest$ac_exeext conftest.$ac_ext
     5181  tcl_cv_cc_arch_ppc64=no
     5182fi
     5183rm -f core conftest.err conftest.$ac_objext \
     5184    conftest$ac_exeext conftest.$ac_ext
    55325185                            CFLAGS=$hold_cflags
    55335186fi
    5534 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
     5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
    55355188$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
    55365189                        if test $tcl_cv_cc_arch_ppc64 = yes; then
     
    55395192                        fi;;
    55405193                    i386)
    5541                         { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
     5194                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
    55425195$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
    5543 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
     5196if ${tcl_cv_cc_arch_x86_64+:} false; then :
    55445197  $as_echo_n "(cached) " >&6
    55455198else
     
    55475200                            hold_cflags=$CFLAGS
    55485201                            CFLAGS="$CFLAGS -arch x86_64"
    5549                             cat >conftest.$ac_ext <<_ACEOF
    5550 /* confdefs.h.  */
    5551 _ACEOF
    5552 cat confdefs.h >>conftest.$ac_ext
    5553 cat >>conftest.$ac_ext <<_ACEOF
     5202                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55545203/* end confdefs.h.  */
    55555204
     
    55625211}
    55635212_ACEOF
    5564 rm -f conftest.$ac_objext conftest$ac_exeext
    5565 if { (ac_try="$ac_link"
    5566 case "(($ac_try" in
    5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5568   *) ac_try_echo=$ac_try;;
    5569 esac
    5570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5571 $as_echo "$ac_try_echo") >&5
    5572   (eval "$ac_link") 2>conftest.er1
    5573   ac_status=$?
    5574   grep -v '^ *+' conftest.er1 >conftest.err
    5575   rm -f conftest.er1
    5576   cat conftest.err >&5
    5577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5578   (exit $ac_status); } && {
    5579          test -z "$ac_c_werror_flag" ||
    5580          test ! -s conftest.err
    5581        } && test -s conftest$ac_exeext && {
    5582          test "$cross_compiling" = yes ||
    5583          $as_test_x conftest$ac_exeext
    5584        }; then
     5213if ac_fn_c_try_link "$LINENO"; then :
    55855214  tcl_cv_cc_arch_x86_64=yes
    55865215else
    5587   $as_echo "$as_me: failed program was:" >&5
    5588 sed 's/^/| /' conftest.$ac_ext >&5
    5589 
    5590         tcl_cv_cc_arch_x86_64=no
    5591 fi
    5592 
    5593 rm -rf conftest.dSYM
    5594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5595       conftest$ac_exeext conftest.$ac_ext
     5216  tcl_cv_cc_arch_x86_64=no
     5217fi
     5218rm -f core conftest.err conftest.$ac_objext \
     5219    conftest$ac_exeext conftest.$ac_ext
    55965220                            CFLAGS=$hold_cflags
    55975221fi
    5598 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
     5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
    55995223$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
    56005224                        if test $tcl_cv_cc_arch_x86_64 = yes; then
     
    56035227                        fi;;
    56045228                    *)
    5605                         { $as_echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
     5229                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
    56065230$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
    56075231                esac
     
    56135237            fi
    56145238            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
    5615             { $as_echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
     5239            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
    56165240$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
    5617 if test "${tcl_cv_ld_single_module+set}" = set; then
     5241if ${tcl_cv_ld_single_module+:} false; then :
    56185242  $as_echo_n "(cached) " >&6
    56195243else
     
    56215245                hold_ldflags=$LDFLAGS
    56225246                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
    5623                 cat >conftest.$ac_ext <<_ACEOF
    5624 /* confdefs.h.  */
    5625 _ACEOF
    5626 cat confdefs.h >>conftest.$ac_ext
    5627 cat >>conftest.$ac_ext <<_ACEOF
     5247                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56285248/* end confdefs.h.  */
    56295249
     
    56365256}
    56375257_ACEOF
    5638 rm -f conftest.$ac_objext conftest$ac_exeext
    5639 if { (ac_try="$ac_link"
    5640 case "(($ac_try" in
    5641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5642   *) ac_try_echo=$ac_try;;
    5643 esac
    5644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5645 $as_echo "$ac_try_echo") >&5
    5646   (eval "$ac_link") 2>conftest.er1
    5647   ac_status=$?
    5648   grep -v '^ *+' conftest.er1 >conftest.err
    5649   rm -f conftest.er1
    5650   cat conftest.err >&5
    5651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5652   (exit $ac_status); } && {
    5653          test -z "$ac_c_werror_flag" ||
    5654          test ! -s conftest.err
    5655        } && test -s conftest$ac_exeext && {
    5656          test "$cross_compiling" = yes ||
    5657          $as_test_x conftest$ac_exeext
    5658        }; then
     5258if ac_fn_c_try_link "$LINENO"; then :
    56595259  tcl_cv_ld_single_module=yes
    56605260else
    5661   $as_echo "$as_me: failed program was:" >&5
    5662 sed 's/^/| /' conftest.$ac_ext >&5
    5663 
    5664         tcl_cv_ld_single_module=no
    5665 fi
    5666 
    5667 rm -rf conftest.dSYM
    5668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5669       conftest$ac_exeext conftest.$ac_ext
     5261  tcl_cv_ld_single_module=no
     5262fi
     5263rm -f core conftest.err conftest.$ac_objext \
     5264    conftest$ac_exeext conftest.$ac_ext
    56705265                LDFLAGS=$hold_ldflags
    56715266fi
    5672 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
     5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
    56735268$as_echo "$tcl_cv_ld_single_module" >&6; }
    56745269            if test $tcl_cv_ld_single_module = yes; then
     
    56845279                LDFLAGS="$LDFLAGS -prebind"
    56855280            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
    5686             { $as_echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
     5281            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
    56875282$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
    5688 if test "${tcl_cv_ld_search_paths_first+set}" = set; then
     5283if ${tcl_cv_ld_search_paths_first+:} false; then :
    56895284  $as_echo_n "(cached) " >&6
    56905285else
     
    56925287                hold_ldflags=$LDFLAGS
    56935288                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    5694                 cat >conftest.$ac_ext <<_ACEOF
    5695 /* confdefs.h.  */
    5696 _ACEOF
    5697 cat confdefs.h >>conftest.$ac_ext
    5698 cat >>conftest.$ac_ext <<_ACEOF
     5289                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56995290/* end confdefs.h.  */
    57005291
     
    57075298}
    57085299_ACEOF
    5709 rm -f conftest.$ac_objext conftest$ac_exeext
    5710 if { (ac_try="$ac_link"
    5711 case "(($ac_try" in
    5712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5713   *) ac_try_echo=$ac_try;;
    5714 esac
    5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5716 $as_echo "$ac_try_echo") >&5
    5717   (eval "$ac_link") 2>conftest.er1
    5718   ac_status=$?
    5719   grep -v '^ *+' conftest.er1 >conftest.err
    5720   rm -f conftest.er1
    5721   cat conftest.err >&5
    5722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5723   (exit $ac_status); } && {
    5724          test -z "$ac_c_werror_flag" ||
    5725          test ! -s conftest.err
    5726        } && test -s conftest$ac_exeext && {
    5727          test "$cross_compiling" = yes ||
    5728          $as_test_x conftest$ac_exeext
    5729        }; then
     5300if ac_fn_c_try_link "$LINENO"; then :
    57305301  tcl_cv_ld_search_paths_first=yes
    57315302else
    5732   $as_echo "$as_me: failed program was:" >&5
    5733 sed 's/^/| /' conftest.$ac_ext >&5
    5734 
    5735         tcl_cv_ld_search_paths_first=no
    5736 fi
    5737 
    5738 rm -rf conftest.dSYM
    5739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5740       conftest$ac_exeext conftest.$ac_ext
     5303  tcl_cv_ld_search_paths_first=no
     5304fi
     5305rm -f core conftest.err conftest.$ac_objext \
     5306    conftest$ac_exeext conftest.$ac_ext
    57415307                LDFLAGS=$hold_ldflags
    57425308fi
    5743 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
     5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
    57445310$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
    57455311            if test $tcl_cv_ld_search_paths_first = yes; then
     
    57515317            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
    57525318            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
    5753             { $as_echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5
     5319            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
    57545320$as_echo_n "checking whether to use CoreFoundation... " >&6; }
    57555321            # Check whether --enable-corefoundation was given.
    5756 if test "${enable_corefoundation+set}" = set; then
     5322if test "${enable_corefoundation+set}" = set; then :
    57575323  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
    57585324else
     
    57605326fi
    57615327
    5762             { $as_echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5
     5328            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
    57635329$as_echo "$tcl_corefoundation" >&6; }
    57645330            if test $tcl_corefoundation = yes; then
    5765                 { $as_echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5
     5331                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
    57665332$as_echo_n "checking for CoreFoundation.framework... " >&6; }
    5767 if test "${tcl_cv_lib_corefoundation+set}" = set; then
     5333if ${tcl_cv_lib_corefoundation+:} false; then :
    57685334  $as_echo_n "(cached) " >&6
    57695335else
     
    57775343                    done; fi
    57785344                    LIBS="$LIBS -framework CoreFoundation"
    5779                     cat >conftest.$ac_ext <<_ACEOF
    5780 /* confdefs.h.  */
    5781 _ACEOF
    5782 cat confdefs.h >>conftest.$ac_ext
    5783 cat >>conftest.$ac_ext <<_ACEOF
     5345                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57845346/* end confdefs.h.  */
    57855347#include <CoreFoundation/CoreFoundation.h>
     
    57925354}
    57935355_ACEOF
    5794 rm -f conftest.$ac_objext conftest$ac_exeext
    5795 if { (ac_try="$ac_link"
    5796 case "(($ac_try" in
    5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5798   *) ac_try_echo=$ac_try;;
    5799 esac
    5800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5801 $as_echo "$ac_try_echo") >&5
    5802   (eval "$ac_link") 2>conftest.er1
    5803   ac_status=$?
    5804   grep -v '^ *+' conftest.er1 >conftest.err
    5805   rm -f conftest.er1
    5806   cat conftest.err >&5
    5807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5808   (exit $ac_status); } && {
    5809          test -z "$ac_c_werror_flag" ||
    5810          test ! -s conftest.err
    5811        } && test -s conftest$ac_exeext && {
    5812          test "$cross_compiling" = yes ||
    5813          $as_test_x conftest$ac_exeext
    5814        }; then
     5356if ac_fn_c_try_link "$LINENO"; then :
    58155357  tcl_cv_lib_corefoundation=yes
    58165358else
    5817   $as_echo "$as_me: failed program was:" >&5
    5818 sed 's/^/| /' conftest.$ac_ext >&5
    5819 
    5820         tcl_cv_lib_corefoundation=no
    5821 fi
    5822 
    5823 rm -rf conftest.dSYM
    5824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5825       conftest$ac_exeext conftest.$ac_ext
     5359  tcl_cv_lib_corefoundation=no
     5360fi
     5361rm -f core conftest.err conftest.$ac_objext \
     5362    conftest$ac_exeext conftest.$ac_ext
    58265363                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    58275364                        eval $v'="$hold_'$v'"'
    58285365                    done; fi; LIBS=$hold_libs
    58295366fi
    5830 { $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5
     5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
    58315368$as_echo "$tcl_cv_lib_corefoundation" >&6; }
    58325369                if test $tcl_cv_lib_corefoundation = yes; then
    58335370                    LIBS="$LIBS -framework CoreFoundation"
    5834                     cat >>confdefs.h <<\_ACEOF
    5835 #define HAVE_COREFOUNDATION 1
    5836 _ACEOF
     5371                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
    58375372
    58385373                else
     
    58405375                fi
    58415376                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
    5842                     { $as_echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5
     5377                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
    58435378$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
    5844 if test "${tcl_cv_lib_corefoundation_64+set}" = set; then
     5379if ${tcl_cv_lib_corefoundation_64+:} false; then :
    58455380  $as_echo_n "(cached) " >&6
    58465381else
     
    58495384                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
    58505385                        done
    5851                         cat >conftest.$ac_ext <<_ACEOF
    5852 /* confdefs.h.  */
    5853 _ACEOF
    5854 cat confdefs.h >>conftest.$ac_ext
    5855 cat >>conftest.$ac_ext <<_ACEOF
     5386                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    58565387/* end confdefs.h.  */
    58575388#include <CoreFoundation/CoreFoundation.h>
     
    58645395}
    58655396_ACEOF
    5866 rm -f conftest.$ac_objext conftest$ac_exeext
    5867 if { (ac_try="$ac_link"
    5868 case "(($ac_try" in
    5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    5870   *) ac_try_echo=$ac_try;;
    5871 esac
    5872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    5873 $as_echo "$ac_try_echo") >&5
    5874   (eval "$ac_link") 2>conftest.er1
    5875   ac_status=$?
    5876   grep -v '^ *+' conftest.er1 >conftest.err
    5877   rm -f conftest.er1
    5878   cat conftest.err >&5
    5879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5880   (exit $ac_status); } && {
    5881          test -z "$ac_c_werror_flag" ||
    5882          test ! -s conftest.err
    5883        } && test -s conftest$ac_exeext && {
    5884          test "$cross_compiling" = yes ||
    5885          $as_test_x conftest$ac_exeext
    5886        }; then
     5397if ac_fn_c_try_link "$LINENO"; then :
    58875398  tcl_cv_lib_corefoundation_64=yes
    58885399else
    5889   $as_echo "$as_me: failed program was:" >&5
    5890 sed 's/^/| /' conftest.$ac_ext >&5
    5891 
    5892         tcl_cv_lib_corefoundation_64=no
    5893 fi
    5894 
    5895 rm -rf conftest.dSYM
    5896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    5897       conftest$ac_exeext conftest.$ac_ext
     5400  tcl_cv_lib_corefoundation_64=no
     5401fi
     5402rm -f core conftest.err conftest.$ac_objext \
     5403    conftest$ac_exeext conftest.$ac_ext
    58985404                        for v in CFLAGS CPPFLAGS LDFLAGS; do
    58995405                            eval $v'="$hold_'$v'"'
    59005406                        done
    59015407fi
    5902 { $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5
     5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
    59035409$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
    59045410                    if test $tcl_cv_lib_corefoundation_64 = no; then
    5905                         cat >>confdefs.h <<\_ACEOF
    5906 #define NO_COREFOUNDATION_64 1
    5907 _ACEOF
     5411                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
    59085412
    59095413                    fi
    59105414                fi
    59115415            fi
    5912             cat >>confdefs.h <<\_ACEOF
    5913 #define MAC_OSX_TCL 1
    5914 _ACEOF
     5416            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
    59155417
    59165418            ;;
     
    59275429        OS/390-*)
    59285430            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
    5929             cat >>confdefs.h <<\_ACEOF
    5930 #define _OE_SOCKETS 1
    5931 _ACEOF
     5431            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
    59325432        # needed in sys/socket.h
    59335433            ;;
     
    60705570            # won't define thread-safe library routines.
    60715571
    6072             cat >>confdefs.h <<\_ACEOF
    6073 #define _REENTRANT 1
    6074 _ACEOF
    6075 
    6076             cat >>confdefs.h <<\_ACEOF
    6077 #define _POSIX_PTHREAD_SEMANTICS 1
    6078 _ACEOF
     5572            $as_echo "#define _REENTRANT 1" >>confdefs.h
     5573
     5574            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    60795575
    60805576
     
    61025598            # won't define thread-safe library routines.
    61035599
    6104             cat >>confdefs.h <<\_ACEOF
    6105 #define _REENTRANT 1
    6106 _ACEOF
    6107 
    6108             cat >>confdefs.h <<\_ACEOF
    6109 #define _POSIX_PTHREAD_SEMANTICS 1
    6110 _ACEOF
     5600            $as_echo "#define _REENTRANT 1" >>confdefs.h
     5601
     5602            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    61115603
    61125604
     
    61195611                        if test "$GCC" = "yes" ; then
    61205612                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
    6121                                 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
     5613                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
    61225614$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
    61235615                            else
     
    61415633                elif test "$arch" = "amd64 i386" ; then
    61425634                    if test "$GCC" = "yes" ; then
    6143                         { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     5635                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    61445636$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    61455637                    else
     
    61495641                    fi
    61505642                else
    6151                     { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
     5643                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
    61525644$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
    61535645                fi
     
    62085700            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
    62095701            # that don't grok the -Bexport option.  Test that it does.
    6210             { $as_echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
     5702            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
    62115703$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
    6212 if test "${tcl_cv_ld_Bexport+set}" = set; then
     5704if ${tcl_cv_ld_Bexport+:} false; then :
    62135705  $as_echo_n "(cached) " >&6
    62145706else
     
    62165708                hold_ldflags=$LDFLAGS
    62175709                LDFLAGS="$LDFLAGS -Wl,-Bexport"
    6218                 cat >conftest.$ac_ext <<_ACEOF
    6219 /* confdefs.h.  */
    6220 _ACEOF
    6221 cat confdefs.h >>conftest.$ac_ext
    6222 cat >>conftest.$ac_ext <<_ACEOF
     5710                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    62235711/* end confdefs.h.  */
    62245712
     
    62315719}
    62325720_ACEOF
    6233 rm -f conftest.$ac_objext conftest$ac_exeext
    6234 if { (ac_try="$ac_link"
    6235 case "(($ac_try" in
    6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6237   *) ac_try_echo=$ac_try;;
    6238 esac
    6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6240 $as_echo "$ac_try_echo") >&5
    6241   (eval "$ac_link") 2>conftest.er1
    6242   ac_status=$?
    6243   grep -v '^ *+' conftest.er1 >conftest.err
    6244   rm -f conftest.er1
    6245   cat conftest.err >&5
    6246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6247   (exit $ac_status); } && {
    6248          test -z "$ac_c_werror_flag" ||
    6249          test ! -s conftest.err
    6250        } && test -s conftest$ac_exeext && {
    6251          test "$cross_compiling" = yes ||
    6252          $as_test_x conftest$ac_exeext
    6253        }; then
     5721if ac_fn_c_try_link "$LINENO"; then :
    62545722  tcl_cv_ld_Bexport=yes
    62555723else
    6256   $as_echo "$as_me: failed program was:" >&5
    6257 sed 's/^/| /' conftest.$ac_ext >&5
    6258 
    6259         tcl_cv_ld_Bexport=no
    6260 fi
    6261 
    6262 rm -rf conftest.dSYM
    6263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    6264       conftest$ac_exeext conftest.$ac_ext
     5724  tcl_cv_ld_Bexport=no
     5725fi
     5726rm -f core conftest.err conftest.$ac_objext \
     5727    conftest$ac_exeext conftest.$ac_ext
    62655728                LDFLAGS=$hold_ldflags
    62665729fi
    6267 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5
     5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
    62685731$as_echo "$tcl_cv_ld_Bexport" >&6; }
    62695732            if test $tcl_cv_ld_Bexport = yes; then
     
    62765739
    62775740    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
    6278         { $as_echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
     5741        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
    62795742$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
    62805743    fi
     
    63035766
    63045767    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
    6305         { $as_echo "$as_me:$LINENO: checking sys/exec.h" >&5
     5768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
    63065769$as_echo_n "checking sys/exec.h... " >&6; }
    6307 if test "${tcl_cv_sysexec_h+set}" = set; then
     5770if ${tcl_cv_sysexec_h+:} false; then :
    63085771  $as_echo_n "(cached) " >&6
    63095772else
    63105773
    6311         cat >conftest.$ac_ext <<_ACEOF
    6312 /* confdefs.h.  */
    6313 _ACEOF
    6314 cat confdefs.h >>conftest.$ac_ext
    6315 cat >>conftest.$ac_ext <<_ACEOF
     5774        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    63165775/* end confdefs.h.  */
    63175776#include <sys/exec.h>
     
    63355794}
    63365795_ACEOF
    6337 rm -f conftest.$ac_objext
    6338 if { (ac_try="$ac_compile"
    6339 case "(($ac_try" in
    6340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6341   *) ac_try_echo=$ac_try;;
    6342 esac
    6343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6344 $as_echo "$ac_try_echo") >&5
    6345   (eval "$ac_compile") 2>conftest.er1
    6346   ac_status=$?
    6347   grep -v '^ *+' conftest.er1 >conftest.err
    6348   rm -f conftest.er1
    6349   cat conftest.err >&5
    6350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6351   (exit $ac_status); } && {
    6352          test -z "$ac_c_werror_flag" ||
    6353          test ! -s conftest.err
    6354        } && test -s conftest.$ac_objext; then
     5796if ac_fn_c_try_compile "$LINENO"; then :
    63555797  tcl_cv_sysexec_h=usable
    63565798else
    6357   $as_echo "$as_me: failed program was:" >&5
    6358 sed 's/^/| /' conftest.$ac_ext >&5
    6359 
    6360         tcl_cv_sysexec_h=unusable
    6361 fi
    6362 
     5799  tcl_cv_sysexec_h=unusable
     5800fi
    63635801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    63645802fi
    6365 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexec_h" >&5
     5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
    63665804$as_echo "$tcl_cv_sysexec_h" >&6; }
    63675805        if test $tcl_cv_sysexec_h = usable; then
    6368             cat >>confdefs.h <<\_ACEOF
    6369 #define USE_SYS_EXEC_H 1
    6370 _ACEOF
     5806            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
    63715807
    63725808        else
    6373             { $as_echo "$as_me:$LINENO: checking a.out.h" >&5
     5809            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
    63745810$as_echo_n "checking a.out.h... " >&6; }
    6375 if test "${tcl_cv_aout_h+set}" = set; then
     5811if ${tcl_cv_aout_h+:} false; then :
    63765812  $as_echo_n "(cached) " >&6
    63775813else
    63785814
    6379             cat >conftest.$ac_ext <<_ACEOF
    6380 /* confdefs.h.  */
    6381 _ACEOF
    6382 cat confdefs.h >>conftest.$ac_ext
    6383 cat >>conftest.$ac_ext <<_ACEOF
     5815            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    63845816/* end confdefs.h.  */
    63855817#include <a.out.h>
     
    64035835}
    64045836_ACEOF
    6405 rm -f conftest.$ac_objext
    6406 if { (ac_try="$ac_compile"
    6407 case "(($ac_try" in
    6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6409   *) ac_try_echo=$ac_try;;
    6410 esac
    6411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6412 $as_echo "$ac_try_echo") >&5
    6413   (eval "$ac_compile") 2>conftest.er1
    6414   ac_status=$?
    6415   grep -v '^ *+' conftest.er1 >conftest.err
    6416   rm -f conftest.er1
    6417   cat conftest.err >&5
    6418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6419   (exit $ac_status); } && {
    6420          test -z "$ac_c_werror_flag" ||
    6421          test ! -s conftest.err
    6422        } && test -s conftest.$ac_objext; then
     5837if ac_fn_c_try_compile "$LINENO"; then :
    64235838  tcl_cv_aout_h=usable
    64245839else
    6425   $as_echo "$as_me: failed program was:" >&5
    6426 sed 's/^/| /' conftest.$ac_ext >&5
    6427 
    6428         tcl_cv_aout_h=unusable
    6429 fi
    6430 
     5840  tcl_cv_aout_h=unusable
     5841fi
    64315842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    64325843fi
    6433 { $as_echo "$as_me:$LINENO: result: $tcl_cv_aout_h" >&5
     5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
    64345845$as_echo "$tcl_cv_aout_h" >&6; }
    64355846            if test $tcl_cv_aout_h = usable; then
    6436                 cat >>confdefs.h <<\_ACEOF
    6437 #define USE_A_OUT_H 1
    6438 _ACEOF
     5847                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
    64395848
    64405849            else
    6441                 { $as_echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5
     5850                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
    64425851$as_echo_n "checking sys/exec_aout.h... " >&6; }
    6443 if test "${tcl_cv_sysexecaout_h+set}" = set; then
     5852if ${tcl_cv_sysexecaout_h+:} false; then :
    64445853  $as_echo_n "(cached) " >&6
    64455854else
    64465855
    6447                 cat >conftest.$ac_ext <<_ACEOF
    6448 /* confdefs.h.  */
    6449 _ACEOF
    6450 cat confdefs.h >>conftest.$ac_ext
    6451 cat >>conftest.$ac_ext <<_ACEOF
     5856                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    64525857/* end confdefs.h.  */
    64535858#include <sys/exec_aout.h>
     
    64715876}
    64725877_ACEOF
    6473 rm -f conftest.$ac_objext
    6474 if { (ac_try="$ac_compile"
    6475 case "(($ac_try" in
    6476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6477   *) ac_try_echo=$ac_try;;
    6478 esac
    6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6480 $as_echo "$ac_try_echo") >&5
    6481   (eval "$ac_compile") 2>conftest.er1
    6482   ac_status=$?
    6483   grep -v '^ *+' conftest.er1 >conftest.err
    6484   rm -f conftest.er1
    6485   cat conftest.err >&5
    6486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6487   (exit $ac_status); } && {
    6488          test -z "$ac_c_werror_flag" ||
    6489          test ! -s conftest.err
    6490        } && test -s conftest.$ac_objext; then
     5878if ac_fn_c_try_compile "$LINENO"; then :
    64915879  tcl_cv_sysexecaout_h=usable
    64925880else
    6493   $as_echo "$as_me: failed program was:" >&5
    6494 sed 's/^/| /' conftest.$ac_ext >&5
    6495 
    6496         tcl_cv_sysexecaout_h=unusable
    6497 fi
    6498 
     5881  tcl_cv_sysexecaout_h=unusable
     5882fi
    64995883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    65005884fi
    6501 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexecaout_h" >&5
     5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
    65025886$as_echo "$tcl_cv_sysexecaout_h" >&6; }
    65035887                if test $tcl_cv_sysexecaout_h = usable; then
    6504                     cat >>confdefs.h <<\_ACEOF
    6505 #define USE_SYS_EXEC_AOUT_H 1
    6506 _ACEOF
     5888                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
    65075889
    65085890                else
     
    65165898
    65175899    # Check whether --enable-load was given.
    6518 if test "${enable_load+set}" = set; then
     5900if test "${enable_load+set}" = set; then :
    65195901  enableval=$enable_load; tcl_ok=$enableval
    65205902else
     
    66396021
    66406022
    6641 { $as_echo "$as_me:$LINENO: checking for X" >&5
     6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
    66426024$as_echo_n "checking for X... " >&6; }
    66436025
    66446026
    66456027# Check whether --with-x was given.
    6646 if test "${with_x+set}" = set; then
     6028if test "${with_x+set}" = set; then :
    66476029  withval=$with_x;
    66486030fi
     
    66546036else
    66556037  case $x_includes,$x_libraries in #(
    6656     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
    6657 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
    6658    { (exit 1); exit 1; }; };; #(
    6659     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
     6038    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     6039    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
    66606040  $as_echo_n "(cached) " >&6
    66616041else
     
    66746054_ACEOF
    66756055  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    6676     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     6056    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
    66776057    for ac_var in incroot usrlibdir libdir; do
    66786058      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     
    67056085ac_x_header_dirs='
    67066086/usr/X11/include
     6087/usr/X11R7/include
    67076088/usr/X11R6/include
    67086089/usr/X11R5/include
     
    67106091
    67116092/usr/include/X11
     6093/usr/include/X11R7
    67126094/usr/include/X11R6
    67136095/usr/include/X11R5
     
    67156097
    67166098/usr/local/X11/include
     6099/usr/local/X11R7/include
    67176100/usr/local/X11R6/include
    67186101/usr/local/X11R5/include
     
    67206103
    67216104/usr/local/include/X11
     6105/usr/local/include/X11R7
    67226106/usr/local/include/X11R6
    67236107/usr/local/include/X11R5
     
    67416125  # Guess where to find include files, by looking for Xlib.h.
    67426126  # First, try using that file with no special directory specified.
    6743   cat >conftest.$ac_ext <<_ACEOF
    6744 /* confdefs.h.  */
    6745 _ACEOF
    6746 cat confdefs.h >>conftest.$ac_ext
    6747 cat >>conftest.$ac_ext <<_ACEOF
     6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    67486128/* end confdefs.h.  */
    67496129#include <X11/Xlib.h>
    67506130_ACEOF
    6751 if { (ac_try="$ac_cpp conftest.$ac_ext"
    6752 case "(($ac_try" in
    6753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6754   *) ac_try_echo=$ac_try;;
    6755 esac
    6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6757 $as_echo "$ac_try_echo") >&5
    6758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    6759   ac_status=$?
    6760   grep -v '^ *+' conftest.er1 >conftest.err
    6761   rm -f conftest.er1
    6762   cat conftest.err >&5
    6763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6764   (exit $ac_status); } >/dev/null && {
    6765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    6766          test ! -s conftest.err
    6767        }; then
     6131if ac_fn_c_try_cpp "$LINENO"; then :
    67686132  # We can compile using X headers with no special include directory.
    67696133ac_x_includes=
    67706134else
    6771   $as_echo "$as_me: failed program was:" >&5
    6772 sed 's/^/| /' conftest.$ac_ext >&5
    6773 
    67746135  for ac_dir in $ac_x_header_dirs; do
    67756136  if test -r "$ac_dir/X11/Xlib.h"; then
     
    67796140done
    67806141fi
    6781 
    6782 rm -f conftest.err conftest.$ac_ext
     6142rm -f conftest.err conftest.i conftest.$ac_ext
    67836143fi # $ac_x_includes = no
    67846144
     
    67896149  ac_save_LIBS=$LIBS
    67906150  LIBS="-lX11 $LIBS"
    6791   cat >conftest.$ac_ext <<_ACEOF
    6792 /* confdefs.h.  */
    6793 _ACEOF
    6794 cat confdefs.h >>conftest.$ac_ext
    6795 cat >>conftest.$ac_ext <<_ACEOF
     6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    67966152/* end confdefs.h.  */
    67976153#include <X11/Xlib.h>
     
    68046160}
    68056161_ACEOF
    6806 rm -f conftest.$ac_objext conftest$ac_exeext
    6807 if { (ac_try="$ac_link"
    6808 case "(($ac_try" in
    6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    6810   *) ac_try_echo=$ac_try;;
    6811 esac
    6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    6813 $as_echo "$ac_try_echo") >&5
    6814   (eval "$ac_link") 2>conftest.er1
    6815   ac_status=$?
    6816   grep -v '^ *+' conftest.er1 >conftest.err
    6817   rm -f conftest.er1
    6818   cat conftest.err >&5
    6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6820   (exit $ac_status); } && {
    6821          test -z "$ac_c_werror_flag" ||
    6822          test ! -s conftest.err
    6823        } && test -s conftest$ac_exeext && {
    6824          test "$cross_compiling" = yes ||
    6825          $as_test_x conftest$ac_exeext
    6826        }; then
     6162if ac_fn_c_try_link "$LINENO"; then :
    68276163  LIBS=$ac_save_LIBS
    68286164# We can link X programs with no special library path.
    68296165ac_x_libraries=
    68306166else
    6831   $as_echo "$as_me: failed program was:" >&5
    6832 sed 's/^/| /' conftest.$ac_ext >&5
    6833 
    6834         LIBS=$ac_save_LIBS
     6167  LIBS=$ac_save_LIBS
    68356168for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
    68366169do
     
    68446177done
    68456178fi
    6846 
    6847 rm -rf conftest.dSYM
    6848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    6849       conftest$ac_exeext conftest.$ac_ext
     6179rm -f core conftest.err conftest.$ac_objext \
     6180    conftest$ac_exeext conftest.$ac_ext
    68506181fi # $ac_x_libraries = no
    68516182
     
    68686199
    68696200if test "$have_x" != yes; then
    6870   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
     6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
    68716202$as_echo "$have_x" >&6; }
    68726203  no_x=yes
     
    68796210        ac_x_includes='$x_includes'\
    68806211        ac_x_libraries='$x_libraries'"
    6881   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
     6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
    68826213$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
    68836214fi
     
    68986229# ./install, which can be erroneously created by make from ./install.sh.
    68996230# Reject install programs that cannot install multiple files.
    6900 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
    69016232$as_echo_n "checking for a BSD-compatible install... " >&6; }
    69026233if test -z "$INSTALL"; then
    6903 if test "${ac_cv_path_install+set}" = set; then
     6234if ${ac_cv_path_install+:} false; then :
    69046235  $as_echo_n "(cached) " >&6
    69056236else
     
    69096240  IFS=$as_save_IFS
    69106241  test -z "$as_dir" && as_dir=.
    6911   # Account for people who put trailing slashes in PATH elements.
    6912 case $as_dir/ in
    6913   ./ | .// | /cC/* | \
     6242    # Account for people who put trailing slashes in PATH elements.
     6243case $as_dir/ in #((
     6244  ./ | .// | /[cC]/* | \
    69146245  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    6915   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     6246  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    69166247  /usr/ucb/* ) ;;
    69176248  *)
     
    69216252    for ac_prog in ginstall scoinst install; do
    69226253      for ac_exec_ext in '' $ac_executable_extensions; do
    6923         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
     6254        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    69246255          if test $ac_prog = install &&
    69256256            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    69506281esac
    69516282
    6952 done
     6283  done
    69536284IFS=$as_save_IFS
    69546285
     
    69666297  fi
    69676298fi
    6968 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
     6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
    69696300$as_echo "$INSTALL" >&6; }
    69706301
     
    69806311  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    69816312set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    6982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    69836314$as_echo_n "checking for $ac_word... " >&6; }
    6984 if test "${ac_cv_prog_RANLIB+set}" = set; then
     6315if ${ac_cv_prog_RANLIB+:} false; then :
    69856316  $as_echo_n "(cached) " >&6
    69866317else
     
    69936324  IFS=$as_save_IFS
    69946325  test -z "$as_dir" && as_dir=.
    6995   for ac_exec_ext in '' $ac_executable_extensions; do
    6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6326    for ac_exec_ext in '' $ac_executable_extensions; do
     6327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    69976328    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    6998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    69996330    break 2
    70006331  fi
    70016332done
    7002 done
     6333  done
    70036334IFS=$as_save_IFS
    70046335
     
    70076338RANLIB=$ac_cv_prog_RANLIB
    70086339if test -n "$RANLIB"; then
    7009   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
     6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    70106341$as_echo "$RANLIB" >&6; }
    70116342else
    7012   { $as_echo "$as_me:$LINENO: result: no" >&5
     6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    70136344$as_echo "no" >&6; }
    70146345fi
     
    70206351  # Extract the first word of "ranlib", so it can be a program name with args.
    70216352set dummy ranlib; ac_word=$2
    7022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    70236354$as_echo_n "checking for $ac_word... " >&6; }
    7024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     6355if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    70256356  $as_echo_n "(cached) " >&6
    70266357else
     
    70336364  IFS=$as_save_IFS
    70346365  test -z "$as_dir" && as_dir=.
    7035   for ac_exec_ext in '' $ac_executable_extensions; do
    7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6366    for ac_exec_ext in '' $ac_executable_extensions; do
     6367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    70376368    ac_cv_prog_ac_ct_RANLIB="ranlib"
    7038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    70396370    break 2
    70406371  fi
    70416372done
    7042 done
     6373  done
    70436374IFS=$as_save_IFS
    70446375
     
    70476378ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    70486379if test -n "$ac_ct_RANLIB"; then
    7049   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     6380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    70506381$as_echo "$ac_ct_RANLIB" >&6; }
    70516382else
    7052   { $as_echo "$as_me:$LINENO: result: no" >&5
     6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    70536384$as_echo "no" >&6; }
    70546385fi
     
    70596390    case $cross_compiling:$ac_tool_warned in
    70606391yes:)
    7061 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     6392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    70626393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    70636394ac_tool_warned=yes ;;
     
    70696400fi
    70706401
    7071 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
     6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    70726403$as_echo_n "checking whether ln -s works... " >&6; }
    70736404LN_S=$as_ln_s
    70746405if test "$LN_S" = "ln -s"; then
    7075   { $as_echo "$as_me:$LINENO: result: yes" >&5
     6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    70766407$as_echo "yes" >&6; }
    70776408else
    7078   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
    70796410$as_echo "no, using $LN_S" >&6; }
    70806411fi
    70816412
    7082 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
     6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
    70836414$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
    70846415if test -z "$MKDIR_P"; then
    7085   if test "${ac_cv_path_mkdir+set}" = set; then
     6416  if ${ac_cv_path_mkdir+:} false; then :
    70866417  $as_echo_n "(cached) " >&6
    70876418else
     
    70916422  IFS=$as_save_IFS
    70926423  test -z "$as_dir" && as_dir=.
    7093   for ac_prog in mkdir gmkdir; do
     6424    for ac_prog in mkdir gmkdir; do
    70946425         for ac_exec_ext in '' $ac_executable_extensions; do
    7095            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     6426           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
    70966427           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
    70976428             'mkdir (GNU coreutils) '* | \
     
    71036434         done
    71046435       done
    7105 done
     6436  done
    71066437IFS=$as_save_IFS
    71076438
    71086439fi
    71096440
     6441  test -d ./--version && rmdir ./--version
    71106442  if test "${ac_cv_path_mkdir+set}" = set; then
    71116443    MKDIR_P="$ac_cv_path_mkdir -p"
     
    71156447    # break other packages using the cache if that directory is
    71166448    # removed, or if the value is a relative name.
    7117     test -d ./--version && rmdir ./--version
    71186449    MKDIR_P="$ac_install_sh -d"
    71196450  fi
    71206451fi
    7121 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
     6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
    71226453$as_echo "$MKDIR_P" >&6; }
    71236454
     
    71316462  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    71326463set dummy ${ac_tool_prefix}gcc; ac_word=$2
    7133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    71346465$as_echo_n "checking for $ac_word... " >&6; }
    7135 if test "${ac_cv_prog_CC+set}" = set; then
     6466if ${ac_cv_prog_CC+:} false; then :
    71366467  $as_echo_n "(cached) " >&6
    71376468else
     
    71446475  IFS=$as_save_IFS
    71456476  test -z "$as_dir" && as_dir=.
    7146   for ac_exec_ext in '' $ac_executable_extensions; do
    7147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6477    for ac_exec_ext in '' $ac_executable_extensions; do
     6478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    71486479    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    7149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    71506481    break 2
    71516482  fi
    71526483done
    7153 done
     6484  done
    71546485IFS=$as_save_IFS
    71556486
     
    71586489CC=$ac_cv_prog_CC
    71596490if test -n "$CC"; then
    7160   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    71616492$as_echo "$CC" >&6; }
    71626493else
    7163   { $as_echo "$as_me:$LINENO: result: no" >&5
     6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    71646495$as_echo "no" >&6; }
    71656496fi
     
    71716502  # Extract the first word of "gcc", so it can be a program name with args.
    71726503set dummy gcc; ac_word=$2
    7173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    71746505$as_echo_n "checking for $ac_word... " >&6; }
    7175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     6506if ${ac_cv_prog_ac_ct_CC+:} false; then :
    71766507  $as_echo_n "(cached) " >&6
    71776508else
     
    71846515  IFS=$as_save_IFS
    71856516  test -z "$as_dir" && as_dir=.
    7186   for ac_exec_ext in '' $ac_executable_extensions; do
    7187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6517    for ac_exec_ext in '' $ac_executable_extensions; do
     6518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    71886519    ac_cv_prog_ac_ct_CC="gcc"
    7189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    71906521    break 2
    71916522  fi
    71926523done
    7193 done
     6524  done
    71946525IFS=$as_save_IFS
    71956526
     
    71986529ac_ct_CC=$ac_cv_prog_ac_ct_CC
    71996530if test -n "$ac_ct_CC"; then
    7200   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    72016532$as_echo "$ac_ct_CC" >&6; }
    72026533else
    7203   { $as_echo "$as_me:$LINENO: result: no" >&5
     6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    72046535$as_echo "no" >&6; }
    72056536fi
     
    72106541    case $cross_compiling:$ac_tool_warned in
    72116542yes:)
    7212 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     6543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    72136544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    72146545ac_tool_warned=yes ;;
     
    72246555    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    72256556set dummy ${ac_tool_prefix}cc; ac_word=$2
    7226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    72276558$as_echo_n "checking for $ac_word... " >&6; }
    7228 if test "${ac_cv_prog_CC+set}" = set; then
     6559if ${ac_cv_prog_CC+:} false; then :
    72296560  $as_echo_n "(cached) " >&6
    72306561else
     
    72376568  IFS=$as_save_IFS
    72386569  test -z "$as_dir" && as_dir=.
    7239   for ac_exec_ext in '' $ac_executable_extensions; do
    7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6570    for ac_exec_ext in '' $ac_executable_extensions; do
     6571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    72416572    ac_cv_prog_CC="${ac_tool_prefix}cc"
    7242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    72436574    break 2
    72446575  fi
    72456576done
    7246 done
     6577  done
    72476578IFS=$as_save_IFS
    72486579
     
    72516582CC=$ac_cv_prog_CC
    72526583if test -n "$CC"; then
    7253   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    72546585$as_echo "$CC" >&6; }
    72556586else
    7256   { $as_echo "$as_me:$LINENO: result: no" >&5
     6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    72576588$as_echo "no" >&6; }
    72586589fi
     
    72646595  # Extract the first word of "cc", so it can be a program name with args.
    72656596set dummy cc; ac_word=$2
    7266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    72676598$as_echo_n "checking for $ac_word... " >&6; }
    7268 if test "${ac_cv_prog_CC+set}" = set; then
     6599if ${ac_cv_prog_CC+:} false; then :
    72696600  $as_echo_n "(cached) " >&6
    72706601else
     
    72786609  IFS=$as_save_IFS
    72796610  test -z "$as_dir" && as_dir=.
    7280   for ac_exec_ext in '' $ac_executable_extensions; do
    7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6611    for ac_exec_ext in '' $ac_executable_extensions; do
     6612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    72826613    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    72836614       ac_prog_rejected=yes
     
    72856616     fi
    72866617    ac_cv_prog_CC="cc"
    7287     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    72886619    break 2
    72896620  fi
    72906621done
    7291 done
     6622  done
    72926623IFS=$as_save_IFS
    72936624
     
    73086639CC=$ac_cv_prog_CC
    73096640if test -n "$CC"; then
    7310   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    73116642$as_echo "$CC" >&6; }
    73126643else
    7313   { $as_echo "$as_me:$LINENO: result: no" >&5
     6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    73146645$as_echo "no" >&6; }
    73156646fi
     
    73236654    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    73246655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    7325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    73266657$as_echo_n "checking for $ac_word... " >&6; }
    7327 if test "${ac_cv_prog_CC+set}" = set; then
     6658if ${ac_cv_prog_CC+:} false; then :
    73286659  $as_echo_n "(cached) " >&6
    73296660else
     
    73366667  IFS=$as_save_IFS
    73376668  test -z "$as_dir" && as_dir=.
    7338   for ac_exec_ext in '' $ac_executable_extensions; do
    7339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6669    for ac_exec_ext in '' $ac_executable_extensions; do
     6670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    73406671    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    7341     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    73426673    break 2
    73436674  fi
    73446675done
    7345 done
     6676  done
    73466677IFS=$as_save_IFS
    73476678
     
    73506681CC=$ac_cv_prog_CC
    73516682if test -n "$CC"; then
    7352   { $as_echo "$as_me:$LINENO: result: $CC" >&5
     6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    73536684$as_echo "$CC" >&6; }
    73546685else
    7355   { $as_echo "$as_me:$LINENO: result: no" >&5
     6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    73566687$as_echo "no" >&6; }
    73576688fi
     
    73676698  # Extract the first word of "$ac_prog", so it can be a program name with args.
    73686699set dummy $ac_prog; ac_word=$2
    7369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    73706701$as_echo_n "checking for $ac_word... " >&6; }
    7371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     6702if ${ac_cv_prog_ac_ct_CC+:} false; then :
    73726703  $as_echo_n "(cached) " >&6
    73736704else
     
    73806711  IFS=$as_save_IFS
    73816712  test -z "$as_dir" && as_dir=.
    7382   for ac_exec_ext in '' $ac_executable_extensions; do
    7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6713    for ac_exec_ext in '' $ac_executable_extensions; do
     6714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    73846715    ac_cv_prog_ac_ct_CC="$ac_prog"
    7385     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    73866717    break 2
    73876718  fi
    73886719done
    7389 done
     6720  done
    73906721IFS=$as_save_IFS
    73916722
     
    73946725ac_ct_CC=$ac_cv_prog_ac_ct_CC
    73956726if test -n "$ac_ct_CC"; then
    7396   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     6727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    73976728$as_echo "$ac_ct_CC" >&6; }
    73986729else
    7399   { $as_echo "$as_me:$LINENO: result: no" >&5
     6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    74006731$as_echo "no" >&6; }
    74016732fi
     
    74106741    case $cross_compiling:$ac_tool_warned in
    74116742yes:)
    7412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     6743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    74136744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    74146745ac_tool_warned=yes ;;
     
    74216752
    74226753
    7423 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     6754test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    74246755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    7425 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    7426 See \`config.log' for more details." >&5
    7427 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
    7428 See \`config.log' for more details." >&2;}
    7429    { (exit 1); exit 1; }; }; }
     6756as_fn_error $? "no acceptable C compiler found in \$PATH
     6757See \`config.log' for more details" "$LINENO" 5; }
    74306758
    74316759# Provide some information about the compiler.
    7432 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
     6760$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    74336761set X $ac_compile
    74346762ac_compiler=$2
    7435 { (ac_try="$ac_compiler --version >&5"
     6763for ac_option in --version -v -V -qversion; do
     6764  { { ac_try="$ac_compiler $ac_option >&5"
    74366765case "(($ac_try" in
    74376766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    74386767  *) ac_try_echo=$ac_try;;
    74396768esac
    7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7441 $as_echo "$ac_try_echo") >&5
    7442   (eval "$ac_compiler --version >&5") 2>&5
     6769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     6770$as_echo "$ac_try_echo"; } >&5
     6771  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    74436772  ac_status=$?
    7444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7445   (exit $ac_status); }
    7446 { (ac_try="$ac_compiler -v >&5"
    7447 case "(($ac_try" in
    7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7449   *) ac_try_echo=$ac_try;;
    7450 esac
    7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7452 $as_echo "$ac_try_echo") >&5
    7453   (eval "$ac_compiler -v >&5") 2>&5
    7454   ac_status=$?
    7455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7456   (exit $ac_status); }
    7457 { (ac_try="$ac_compiler -V >&5"
    7458 case "(($ac_try" in
    7459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7460   *) ac_try_echo=$ac_try;;
    7461 esac
    7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7463 $as_echo "$ac_try_echo") >&5
    7464   (eval "$ac_compiler -V >&5") 2>&5
    7465   ac_status=$?
    7466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7467   (exit $ac_status); }
    7468 
    7469 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     6773  if test -s conftest.err; then
     6774    sed '10a\
     6775... rest of stderr output deleted ...
     6776         10q' conftest.err >conftest.er1
     6777    cat conftest.er1 >&5
     6778  fi
     6779  rm -f conftest.er1 conftest.err
     6780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     6781  test $ac_status = 0; }
     6782done
     6783
     6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    74706785$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    7471 if test "${ac_cv_c_compiler_gnu+set}" = set; then
     6786if ${ac_cv_c_compiler_gnu+:} false; then :
    74726787  $as_echo_n "(cached) " >&6
    74736788else
    7474   cat >conftest.$ac_ext <<_ACEOF
    7475 /* confdefs.h.  */
    7476 _ACEOF
    7477 cat confdefs.h >>conftest.$ac_ext
    7478 cat >>conftest.$ac_ext <<_ACEOF
     6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    74796790/* end confdefs.h.  */
    74806791
     
    74906801}
    74916802_ACEOF
    7492 rm -f conftest.$ac_objext
    7493 if { (ac_try="$ac_compile"
    7494 case "(($ac_try" in
    7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7496   *) ac_try_echo=$ac_try;;
    7497 esac
    7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7499 $as_echo "$ac_try_echo") >&5
    7500   (eval "$ac_compile") 2>conftest.er1
    7501   ac_status=$?
    7502   grep -v '^ *+' conftest.er1 >conftest.err
    7503   rm -f conftest.er1
    7504   cat conftest.err >&5
    7505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7506   (exit $ac_status); } && {
    7507          test -z "$ac_c_werror_flag" ||
    7508          test ! -s conftest.err
    7509        } && test -s conftest.$ac_objext; then
     6803if ac_fn_c_try_compile "$LINENO"; then :
    75106804  ac_compiler_gnu=yes
    75116805else
    7512   $as_echo "$as_me: failed program was:" >&5
    7513 sed 's/^/| /' conftest.$ac_ext >&5
    7514 
    7515         ac_compiler_gnu=no
    7516 fi
    7517 
     6806  ac_compiler_gnu=no
     6807fi
    75186808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    75196809ac_cv_c_compiler_gnu=$ac_compiler_gnu
    75206810
    75216811fi
    7522 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    75236813$as_echo "$ac_cv_c_compiler_gnu" >&6; }
    75246814if test $ac_compiler_gnu = yes; then
     
    75296819ac_test_CFLAGS=${CFLAGS+set}
    75306820ac_save_CFLAGS=$CFLAGS
    7531 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    75326822$as_echo_n "checking whether $CC accepts -g... " >&6; }
    7533 if test "${ac_cv_prog_cc_g+set}" = set; then
     6823if ${ac_cv_prog_cc_g+:} false; then :
    75346824  $as_echo_n "(cached) " >&6
    75356825else
     
    75386828   ac_cv_prog_cc_g=no
    75396829   CFLAGS="-g"
    7540    cat >conftest.$ac_ext <<_ACEOF
    7541 /* confdefs.h.  */
    7542 _ACEOF
    7543 cat confdefs.h >>conftest.$ac_ext
    7544 cat >>conftest.$ac_ext <<_ACEOF
     6830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    75456831/* end confdefs.h.  */
    75466832
     
    75536839}
    75546840_ACEOF
    7555 rm -f conftest.$ac_objext
    7556 if { (ac_try="$ac_compile"
    7557 case "(($ac_try" in
    7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7559   *) ac_try_echo=$ac_try;;
    7560 esac
    7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7562 $as_echo "$ac_try_echo") >&5
    7563   (eval "$ac_compile") 2>conftest.er1
    7564   ac_status=$?
    7565   grep -v '^ *+' conftest.er1 >conftest.err
    7566   rm -f conftest.er1
    7567   cat conftest.err >&5
    7568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7569   (exit $ac_status); } && {
    7570          test -z "$ac_c_werror_flag" ||
    7571          test ! -s conftest.err
    7572        } && test -s conftest.$ac_objext; then
     6841if ac_fn_c_try_compile "$LINENO"; then :
    75736842  ac_cv_prog_cc_g=yes
    75746843else
    7575   $as_echo "$as_me: failed program was:" >&5
    7576 sed 's/^/| /' conftest.$ac_ext >&5
    7577 
    7578         CFLAGS=""
    7579       cat >conftest.$ac_ext <<_ACEOF
    7580 /* confdefs.h.  */
    7581 _ACEOF
    7582 cat confdefs.h >>conftest.$ac_ext
    7583 cat >>conftest.$ac_ext <<_ACEOF
     6844  CFLAGS=""
     6845      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    75846846/* end confdefs.h.  */
    75856847
     
    75926854}
    75936855_ACEOF
    7594 rm -f conftest.$ac_objext
    7595 if { (ac_try="$ac_compile"
    7596 case "(($ac_try" in
    7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7598   *) ac_try_echo=$ac_try;;
    7599 esac
    7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7601 $as_echo "$ac_try_echo") >&5
    7602   (eval "$ac_compile") 2>conftest.er1
    7603   ac_status=$?
    7604   grep -v '^ *+' conftest.er1 >conftest.err
    7605   rm -f conftest.er1
    7606   cat conftest.err >&5
    7607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7608   (exit $ac_status); } && {
    7609          test -z "$ac_c_werror_flag" ||
    7610          test ! -s conftest.err
    7611        } && test -s conftest.$ac_objext; then
    7612   :
    7613 else
    7614   $as_echo "$as_me: failed program was:" >&5
    7615 sed 's/^/| /' conftest.$ac_ext >&5
    7616 
    7617         ac_c_werror_flag=$ac_save_c_werror_flag
     6856if ac_fn_c_try_compile "$LINENO"; then :
     6857
     6858else
     6859  ac_c_werror_flag=$ac_save_c_werror_flag
    76186860         CFLAGS="-g"
    7619          cat >conftest.$ac_ext <<_ACEOF
    7620 /* confdefs.h.  */
    7621 _ACEOF
    7622 cat confdefs.h >>conftest.$ac_ext
    7623 cat >>conftest.$ac_ext <<_ACEOF
     6861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    76246862/* end confdefs.h.  */
    76256863
     
    76326870}
    76336871_ACEOF
    7634 rm -f conftest.$ac_objext
    7635 if { (ac_try="$ac_compile"
    7636 case "(($ac_try" in
    7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7638   *) ac_try_echo=$ac_try;;
    7639 esac
    7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7641 $as_echo "$ac_try_echo") >&5
    7642   (eval "$ac_compile") 2>conftest.er1
    7643   ac_status=$?
    7644   grep -v '^ *+' conftest.er1 >conftest.err
    7645   rm -f conftest.er1
    7646   cat conftest.err >&5
    7647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7648   (exit $ac_status); } && {
    7649          test -z "$ac_c_werror_flag" ||
    7650          test ! -s conftest.err
    7651        } && test -s conftest.$ac_objext; then
     6872if ac_fn_c_try_compile "$LINENO"; then :
    76526873  ac_cv_prog_cc_g=yes
    7653 else
    7654   $as_echo "$as_me: failed program was:" >&5
    7655 sed 's/^/| /' conftest.$ac_ext >&5
    7656 
    7657 
    7658 fi
    7659 
     6874fi
    76606875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    76616876fi
    7662 
    76636877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    76646878fi
    7665 
    76666879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    76676880   ac_c_werror_flag=$ac_save_c_werror_flag
    76686881fi
    7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
    76706883$as_echo "$ac_cv_prog_cc_g" >&6; }
    76716884if test "$ac_test_CFLAGS" = set; then
     
    76846897  fi
    76856898fi
    7686 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    76876900$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    7688 if test "${ac_cv_prog_cc_c89+set}" = set; then
     6901if ${ac_cv_prog_cc_c89+:} false; then :
    76896902  $as_echo_n "(cached) " >&6
    76906903else
    76916904  ac_cv_prog_cc_c89=no
    76926905ac_save_CC=$CC
    7693 cat >conftest.$ac_ext <<_ACEOF
    7694 /* confdefs.h.  */
    7695 _ACEOF
    7696 cat confdefs.h >>conftest.$ac_ext
    7697 cat >>conftest.$ac_ext <<_ACEOF
     6906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    76986907/* end confdefs.h.  */
    76996908#include <stdarg.h>
    77006909#include <stdio.h>
    7701 #include <sys/types.h>
    7702 #include <sys/stat.h>
     6910struct stat;
    77036911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    77046912struct buf { int x; };
     
    77526960do
    77536961  CC="$ac_save_CC $ac_arg"
    7754   rm -f conftest.$ac_objext
    7755 if { (ac_try="$ac_compile"
    7756 case "(($ac_try" in
    7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7758   *) ac_try_echo=$ac_try;;
    7759 esac
    7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7761 $as_echo "$ac_try_echo") >&5
    7762   (eval "$ac_compile") 2>conftest.er1
    7763   ac_status=$?
    7764   grep -v '^ *+' conftest.er1 >conftest.err
    7765   rm -f conftest.er1
    7766   cat conftest.err >&5
    7767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7768   (exit $ac_status); } && {
    7769          test -z "$ac_c_werror_flag" ||
    7770          test ! -s conftest.err
    7771        } && test -s conftest.$ac_objext; then
     6962  if ac_fn_c_try_compile "$LINENO"; then :
    77726963  ac_cv_prog_cc_c89=$ac_arg
    7773 else
    7774   $as_echo "$as_me: failed program was:" >&5
    7775 sed 's/^/| /' conftest.$ac_ext >&5
    7776 
    7777 
    7778 fi
    7779 
     6964fi
    77806965rm -f core conftest.err conftest.$ac_objext
    77816966  test "x$ac_cv_prog_cc_c89" != "xno" && break
     
    77886973case "x$ac_cv_prog_cc_c89" in
    77896974  x)
    7790     { $as_echo "$as_me:$LINENO: result: none needed" >&5
     6975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
    77916976$as_echo "none needed" >&6; } ;;
    77926977  xno)
    7793     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
     6978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
    77946979$as_echo "unsupported" >&6; } ;;
    77956980  *)
    77966981    CC="$CC $ac_cv_prog_cc_c89"
    7797     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     6982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
    77986983$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    77996984esac
    7800 
     6985if test "x$ac_cv_prog_cc_c89" != xno; then :
     6986
     6987fi
    78016988
    78026989ac_ext=c
     
    78116998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    78126999ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7813 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    78147001$as_echo_n "checking how to run the C preprocessor... " >&6; }
    78157002# On Suns, sometimes $CPP names a directory.
     
    78187005fi
    78197006if test -z "$CPP"; then
    7820   if test "${ac_cv_prog_CPP+set}" = set; then
     7007  if ${ac_cv_prog_CPP+:} false; then :
    78217008  $as_echo_n "(cached) " >&6
    78227009else
     
    78337020  # On the NeXT, cc -E runs the code through the compiler's parser,
    78347021  # not just through cpp. "Syntax error" is here to catch this case.
    7835   cat >conftest.$ac_ext <<_ACEOF
    7836 /* confdefs.h.  */
    7837 _ACEOF
    7838 cat confdefs.h >>conftest.$ac_ext
    7839 cat >>conftest.$ac_ext <<_ACEOF
     7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    78407023/* end confdefs.h.  */
    78417024#ifdef __STDC__
     
    78467029                     Syntax error
    78477030_ACEOF
    7848 if { (ac_try="$ac_cpp conftest.$ac_ext"
    7849 case "(($ac_try" in
    7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7851   *) ac_try_echo=$ac_try;;
    7852 esac
    7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7854 $as_echo "$ac_try_echo") >&5
    7855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    7856   ac_status=$?
    7857   grep -v '^ *+' conftest.er1 >conftest.err
    7858   rm -f conftest.er1
    7859   cat conftest.err >&5
    7860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7861   (exit $ac_status); } >/dev/null && {
    7862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    7863          test ! -s conftest.err
    7864        }; then
    7865   :
    7866 else
    7867   $as_echo "$as_me: failed program was:" >&5
    7868 sed 's/^/| /' conftest.$ac_ext >&5
    7869 
     7031if ac_fn_c_try_cpp "$LINENO"; then :
     7032
     7033else
    78707034  # Broken: fails on valid input.
    78717035continue
    78727036fi
    7873 
    7874 rm -f conftest.err conftest.$ac_ext
     7037rm -f conftest.err conftest.i conftest.$ac_ext
    78757038
    78767039  # OK, works on sane cases.  Now check whether nonexistent headers
    78777040  # can be detected and how.
    7878   cat >conftest.$ac_ext <<_ACEOF
    7879 /* confdefs.h.  */
    7880 _ACEOF
    7881 cat confdefs.h >>conftest.$ac_ext
    7882 cat >>conftest.$ac_ext <<_ACEOF
     7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    78837042/* end confdefs.h.  */
    78847043#include <ac_nonexistent.h>
    78857044_ACEOF
    7886 if { (ac_try="$ac_cpp conftest.$ac_ext"
    7887 case "(($ac_try" in
    7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7889   *) ac_try_echo=$ac_try;;
    7890 esac
    7891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7892 $as_echo "$ac_try_echo") >&5
    7893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    7894   ac_status=$?
    7895   grep -v '^ *+' conftest.er1 >conftest.err
    7896   rm -f conftest.er1
    7897   cat conftest.err >&5
    7898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7899   (exit $ac_status); } >/dev/null && {
    7900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    7901          test ! -s conftest.err
    7902        }; then
     7045if ac_fn_c_try_cpp "$LINENO"; then :
    79037046  # Broken: success on invalid input.
    79047047continue
    79057048else
    7906   $as_echo "$as_me: failed program was:" >&5
    7907 sed 's/^/| /' conftest.$ac_ext >&5
    7908 
    79097049  # Passes both tests.
    79107050ac_preproc_ok=:
    79117051break
    79127052fi
    7913 
    7914 rm -f conftest.err conftest.$ac_ext
     7053rm -f conftest.err conftest.i conftest.$ac_ext
    79157054
    79167055done
    79177056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7918 rm -f conftest.err conftest.$ac_ext
    7919 if $ac_preproc_ok; then
     7057rm -f conftest.i conftest.err conftest.$ac_ext
     7058if $ac_preproc_ok; then :
    79207059  break
    79217060fi
     
    79297068  ac_cv_prog_CPP=$CPP
    79307069fi
    7931 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
     7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    79327071$as_echo "$CPP" >&6; }
    79337072ac_preproc_ok=false
     
    79407079  # On the NeXT, cc -E runs the code through the compiler's parser,
    79417080  # not just through cpp. "Syntax error" is here to catch this case.
    7942   cat >conftest.$ac_ext <<_ACEOF
    7943 /* confdefs.h.  */
    7944 _ACEOF
    7945 cat confdefs.h >>conftest.$ac_ext
    7946 cat >>conftest.$ac_ext <<_ACEOF
     7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    79477082/* end confdefs.h.  */
    79487083#ifdef __STDC__
     
    79537088                     Syntax error
    79547089_ACEOF
    7955 if { (ac_try="$ac_cpp conftest.$ac_ext"
    7956 case "(($ac_try" in
    7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7958   *) ac_try_echo=$ac_try;;
    7959 esac
    7960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7961 $as_echo "$ac_try_echo") >&5
    7962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    7963   ac_status=$?
    7964   grep -v '^ *+' conftest.er1 >conftest.err
    7965   rm -f conftest.er1
    7966   cat conftest.err >&5
    7967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7968   (exit $ac_status); } >/dev/null && {
    7969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    7970          test ! -s conftest.err
    7971        }; then
    7972   :
    7973 else
    7974   $as_echo "$as_me: failed program was:" >&5
    7975 sed 's/^/| /' conftest.$ac_ext >&5
    7976 
     7090if ac_fn_c_try_cpp "$LINENO"; then :
     7091
     7092else
    79777093  # Broken: fails on valid input.
    79787094continue
    79797095fi
    7980 
    7981 rm -f conftest.err conftest.$ac_ext
     7096rm -f conftest.err conftest.i conftest.$ac_ext
    79827097
    79837098  # OK, works on sane cases.  Now check whether nonexistent headers
    79847099  # can be detected and how.
    7985   cat >conftest.$ac_ext <<_ACEOF
    7986 /* confdefs.h.  */
    7987 _ACEOF
    7988 cat confdefs.h >>conftest.$ac_ext
    7989 cat >>conftest.$ac_ext <<_ACEOF
     7100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    79907101/* end confdefs.h.  */
    79917102#include <ac_nonexistent.h>
    79927103_ACEOF
    7993 if { (ac_try="$ac_cpp conftest.$ac_ext"
    7994 case "(($ac_try" in
    7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7996   *) ac_try_echo=$ac_try;;
    7997 esac
    7998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    7999 $as_echo "$ac_try_echo") >&5
    8000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    8001   ac_status=$?
    8002   grep -v '^ *+' conftest.er1 >conftest.err
    8003   rm -f conftest.er1
    8004   cat conftest.err >&5
    8005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8006   (exit $ac_status); } >/dev/null && {
    8007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    8008          test ! -s conftest.err
    8009        }; then
     7104if ac_fn_c_try_cpp "$LINENO"; then :
    80107105  # Broken: success on invalid input.
    80117106continue
    80127107else
    8013   $as_echo "$as_me: failed program was:" >&5
    8014 sed 's/^/| /' conftest.$ac_ext >&5
    8015 
    80167108  # Passes both tests.
    80177109ac_preproc_ok=:
    80187110break
    80197111fi
    8020 
    8021 rm -f conftest.err conftest.$ac_ext
     7112rm -f conftest.err conftest.i conftest.$ac_ext
    80227113
    80237114done
    80247115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    8025 rm -f conftest.err conftest.$ac_ext
    8026 if $ac_preproc_ok; then
    8027   :
    8028 else
    8029   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     7116rm -f conftest.i conftest.err conftest.$ac_ext
     7117if $ac_preproc_ok; then :
     7118
     7119else
     7120  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    80307121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    8032 See \`config.log' for more details." >&5
    8033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    8034 See \`config.log' for more details." >&2;}
    8035    { (exit 1); exit 1; }; }; }
     7122as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     7123See \`config.log' for more details" "$LINENO" 5; }
    80367124fi
    80377125
     
    80567144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    80577145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    8058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    80597147$as_echo_n "checking for $ac_word... " >&6; }
    8060 if test "${ac_cv_prog_CXX+set}" = set; then
     7148if ${ac_cv_prog_CXX+:} false; then :
    80617149  $as_echo_n "(cached) " >&6
    80627150else
     
    80697157  IFS=$as_save_IFS
    80707158  test -z "$as_dir" && as_dir=.
    8071   for ac_exec_ext in '' $ac_executable_extensions; do
    8072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7159    for ac_exec_ext in '' $ac_executable_extensions; do
     7160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    80737161    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    8074     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    80757163    break 2
    80767164  fi
    80777165done
    8078 done
     7166  done
    80797167IFS=$as_save_IFS
    80807168
     
    80837171CXX=$ac_cv_prog_CXX
    80847172if test -n "$CXX"; then
    8085   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
     7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
    80867174$as_echo "$CXX" >&6; }
    80877175else
    8088   { $as_echo "$as_me:$LINENO: result: no" >&5
     7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    80897177$as_echo "no" >&6; }
    80907178fi
     
    81007188  # Extract the first word of "$ac_prog", so it can be a program name with args.
    81017189set dummy $ac_prog; ac_word=$2
    8102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    81037191$as_echo_n "checking for $ac_word... " >&6; }
    8104 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     7192if ${ac_cv_prog_ac_ct_CXX+:} false; then :
    81057193  $as_echo_n "(cached) " >&6
    81067194else
     
    81137201  IFS=$as_save_IFS
    81147202  test -z "$as_dir" && as_dir=.
    8115   for ac_exec_ext in '' $ac_executable_extensions; do
    8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7203    for ac_exec_ext in '' $ac_executable_extensions; do
     7204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    81177205    ac_cv_prog_ac_ct_CXX="$ac_prog"
    8118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    81197207    break 2
    81207208  fi
    81217209done
    8122 done
     7210  done
    81237211IFS=$as_save_IFS
    81247212
     
    81277215ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    81287216if test -n "$ac_ct_CXX"; then
    8129   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
    81307218$as_echo "$ac_ct_CXX" >&6; }
    81317219else
    8132   { $as_echo "$as_me:$LINENO: result: no" >&5
     7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    81337221$as_echo "no" >&6; }
    81347222fi
     
    81437231    case $cross_compiling:$ac_tool_warned in
    81447232yes:)
    8145 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    81467234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    81477235ac_tool_warned=yes ;;
     
    81547242fi
    81557243# Provide some information about the compiler.
    8156 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
     7244$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
    81577245set X $ac_compile
    81587246ac_compiler=$2
    8159 { (ac_try="$ac_compiler --version >&5"
     7247for ac_option in --version -v -V -qversion; do
     7248  { { ac_try="$ac_compiler $ac_option >&5"
    81607249case "(($ac_try" in
    81617250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    81627251  *) ac_try_echo=$ac_try;;
    81637252esac
    8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8165 $as_echo "$ac_try_echo") >&5
    8166   (eval "$ac_compiler --version >&5") 2>&5
     7253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     7254$as_echo "$ac_try_echo"; } >&5
     7255  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    81677256  ac_status=$?
    8168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8169   (exit $ac_status); }
    8170 { (ac_try="$ac_compiler -v >&5"
    8171 case "(($ac_try" in
    8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8173   *) ac_try_echo=$ac_try;;
    8174 esac
    8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8176 $as_echo "$ac_try_echo") >&5
    8177   (eval "$ac_compiler -v >&5") 2>&5
    8178   ac_status=$?
    8179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8180   (exit $ac_status); }
    8181 { (ac_try="$ac_compiler -V >&5"
    8182 case "(($ac_try" in
    8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8184   *) ac_try_echo=$ac_try;;
    8185 esac
    8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8187 $as_echo "$ac_try_echo") >&5
    8188   (eval "$ac_compiler -V >&5") 2>&5
    8189   ac_status=$?
    8190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8191   (exit $ac_status); }
    8192 
    8193 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     7257  if test -s conftest.err; then
     7258    sed '10a\
     7259... rest of stderr output deleted ...
     7260         10q' conftest.err >conftest.er1
     7261    cat conftest.er1 >&5
     7262  fi
     7263  rm -f conftest.er1 conftest.err
     7264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     7265  test $ac_status = 0; }
     7266done
     7267
     7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    81947269$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    8195 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     7270if ${ac_cv_cxx_compiler_gnu+:} false; then :
    81967271  $as_echo_n "(cached) " >&6
    81977272else
    8198   cat >conftest.$ac_ext <<_ACEOF
    8199 /* confdefs.h.  */
    8200 _ACEOF
    8201 cat confdefs.h >>conftest.$ac_ext
    8202 cat >>conftest.$ac_ext <<_ACEOF
     7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    82037274/* end confdefs.h.  */
    82047275
     
    82147285}
    82157286_ACEOF
    8216 rm -f conftest.$ac_objext
    8217 if { (ac_try="$ac_compile"
    8218 case "(($ac_try" in
    8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8220   *) ac_try_echo=$ac_try;;
    8221 esac
    8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8223 $as_echo "$ac_try_echo") >&5
    8224   (eval "$ac_compile") 2>conftest.er1
    8225   ac_status=$?
    8226   grep -v '^ *+' conftest.er1 >conftest.err
    8227   rm -f conftest.er1
    8228   cat conftest.err >&5
    8229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8230   (exit $ac_status); } && {
    8231          test -z "$ac_cxx_werror_flag" ||
    8232          test ! -s conftest.err
    8233        } && test -s conftest.$ac_objext; then
     7287if ac_fn_cxx_try_compile "$LINENO"; then :
    82347288  ac_compiler_gnu=yes
    82357289else
    8236   $as_echo "$as_me: failed program was:" >&5
    8237 sed 's/^/| /' conftest.$ac_ext >&5
    8238 
    8239         ac_compiler_gnu=no
    8240 fi
    8241 
     7290  ac_compiler_gnu=no
     7291fi
    82427292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    82437293ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    82447294
    82457295fi
    8246 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
    82477297$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    82487298if test $ac_compiler_gnu = yes; then
     
    82537303ac_test_CXXFLAGS=${CXXFLAGS+set}
    82547304ac_save_CXXFLAGS=$CXXFLAGS
    8255 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    82567306$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    8257 if test "${ac_cv_prog_cxx_g+set}" = set; then
     7307if ${ac_cv_prog_cxx_g+:} false; then :
    82587308  $as_echo_n "(cached) " >&6
    82597309else
     
    82627312   ac_cv_prog_cxx_g=no
    82637313   CXXFLAGS="-g"
    8264    cat >conftest.$ac_ext <<_ACEOF
    8265 /* confdefs.h.  */
    8266 _ACEOF
    8267 cat confdefs.h >>conftest.$ac_ext
    8268 cat >>conftest.$ac_ext <<_ACEOF
     7314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    82697315/* end confdefs.h.  */
    82707316
     
    82777323}
    82787324_ACEOF
    8279 rm -f conftest.$ac_objext
    8280 if { (ac_try="$ac_compile"
    8281 case "(($ac_try" in
    8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8283   *) ac_try_echo=$ac_try;;
    8284 esac
    8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8286 $as_echo "$ac_try_echo") >&5
    8287   (eval "$ac_compile") 2>conftest.er1
    8288   ac_status=$?
    8289   grep -v '^ *+' conftest.er1 >conftest.err
    8290   rm -f conftest.er1
    8291   cat conftest.err >&5
    8292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8293   (exit $ac_status); } && {
    8294          test -z "$ac_cxx_werror_flag" ||
    8295          test ! -s conftest.err
    8296        } && test -s conftest.$ac_objext; then
     7325if ac_fn_cxx_try_compile "$LINENO"; then :
    82977326  ac_cv_prog_cxx_g=yes
    82987327else
    8299   $as_echo "$as_me: failed program was:" >&5
    8300 sed 's/^/| /' conftest.$ac_ext >&5
    8301 
    8302         CXXFLAGS=""
    8303       cat >conftest.$ac_ext <<_ACEOF
    8304 /* confdefs.h.  */
    8305 _ACEOF
    8306 cat confdefs.h >>conftest.$ac_ext
    8307 cat >>conftest.$ac_ext <<_ACEOF
     7328  CXXFLAGS=""
     7329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    83087330/* end confdefs.h.  */
    83097331
     
    83167338}
    83177339_ACEOF
    8318 rm -f conftest.$ac_objext
    8319 if { (ac_try="$ac_compile"
    8320 case "(($ac_try" in
    8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8322   *) ac_try_echo=$ac_try;;
    8323 esac
    8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8325 $as_echo "$ac_try_echo") >&5
    8326   (eval "$ac_compile") 2>conftest.er1
    8327   ac_status=$?
    8328   grep -v '^ *+' conftest.er1 >conftest.err
    8329   rm -f conftest.er1
    8330   cat conftest.err >&5
    8331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8332   (exit $ac_status); } && {
    8333          test -z "$ac_cxx_werror_flag" ||
    8334          test ! -s conftest.err
    8335        } && test -s conftest.$ac_objext; then
    8336   :
    8337 else
    8338   $as_echo "$as_me: failed program was:" >&5
    8339 sed 's/^/| /' conftest.$ac_ext >&5
    8340 
    8341         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     7340if ac_fn_cxx_try_compile "$LINENO"; then :
     7341
     7342else
     7343  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    83427344         CXXFLAGS="-g"
    8343          cat >conftest.$ac_ext <<_ACEOF
    8344 /* confdefs.h.  */
    8345 _ACEOF
    8346 cat confdefs.h >>conftest.$ac_ext
    8347 cat >>conftest.$ac_ext <<_ACEOF
     7345         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    83487346/* end confdefs.h.  */
    83497347
     
    83567354}
    83577355_ACEOF
    8358 rm -f conftest.$ac_objext
    8359 if { (ac_try="$ac_compile"
    8360 case "(($ac_try" in
    8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8362   *) ac_try_echo=$ac_try;;
    8363 esac
    8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8365 $as_echo "$ac_try_echo") >&5
    8366   (eval "$ac_compile") 2>conftest.er1
    8367   ac_status=$?
    8368   grep -v '^ *+' conftest.er1 >conftest.err
    8369   rm -f conftest.er1
    8370   cat conftest.err >&5
    8371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8372   (exit $ac_status); } && {
    8373          test -z "$ac_cxx_werror_flag" ||
    8374          test ! -s conftest.err
    8375        } && test -s conftest.$ac_objext; then
     7356if ac_fn_cxx_try_compile "$LINENO"; then :
    83767357  ac_cv_prog_cxx_g=yes
    8377 else
    8378   $as_echo "$as_me: failed program was:" >&5
    8379 sed 's/^/| /' conftest.$ac_ext >&5
    8380 
    8381 
    8382 fi
    8383 
     7358fi
    83847359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    83857360fi
    8386 
    83877361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    83887362fi
    8389 
    83907363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    83917364   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    83927365fi
    8393 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
    83947367$as_echo "$ac_cv_prog_cxx_g" >&6; }
    83957368if test "$ac_test_CXXFLAGS" = set; then
     
    84197392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    84207393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    8421 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
    84227395$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    84237396if test -z "$CXXCPP"; then
    8424   if test "${ac_cv_prog_CXXCPP+set}" = set; then
     7397  if ${ac_cv_prog_CXXCPP+:} false; then :
    84257398  $as_echo_n "(cached) " >&6
    84267399else
     
    84377410  # On the NeXT, cc -E runs the code through the compiler's parser,
    84387411  # not just through cpp. "Syntax error" is here to catch this case.
    8439   cat >conftest.$ac_ext <<_ACEOF
    8440 /* confdefs.h.  */
    8441 _ACEOF
    8442 cat confdefs.h >>conftest.$ac_ext
    8443 cat >>conftest.$ac_ext <<_ACEOF
     7412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    84447413/* end confdefs.h.  */
    84457414#ifdef __STDC__
     
    84507419                     Syntax error
    84517420_ACEOF
    8452 if { (ac_try="$ac_cpp conftest.$ac_ext"
    8453 case "(($ac_try" in
    8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8455   *) ac_try_echo=$ac_try;;
    8456 esac
    8457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8458 $as_echo "$ac_try_echo") >&5
    8459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    8460   ac_status=$?
    8461   grep -v '^ *+' conftest.er1 >conftest.err
    8462   rm -f conftest.er1
    8463   cat conftest.err >&5
    8464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8465   (exit $ac_status); } >/dev/null && {
    8466          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    8467          test ! -s conftest.err
    8468        }; then
    8469   :
    8470 else
    8471   $as_echo "$as_me: failed program was:" >&5
    8472 sed 's/^/| /' conftest.$ac_ext >&5
    8473 
     7421if ac_fn_cxx_try_cpp "$LINENO"; then :
     7422
     7423else
    84747424  # Broken: fails on valid input.
    84757425continue
    84767426fi
    8477 
    8478 rm -f conftest.err conftest.$ac_ext
     7427rm -f conftest.err conftest.i conftest.$ac_ext
    84797428
    84807429  # OK, works on sane cases.  Now check whether nonexistent headers
    84817430  # can be detected and how.
    8482   cat >conftest.$ac_ext <<_ACEOF
    8483 /* confdefs.h.  */
    8484 _ACEOF
    8485 cat confdefs.h >>conftest.$ac_ext
    8486 cat >>conftest.$ac_ext <<_ACEOF
     7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    84877432/* end confdefs.h.  */
    84887433#include <ac_nonexistent.h>
    84897434_ACEOF
    8490 if { (ac_try="$ac_cpp conftest.$ac_ext"
    8491 case "(($ac_try" in
    8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8493   *) ac_try_echo=$ac_try;;
    8494 esac
    8495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8496 $as_echo "$ac_try_echo") >&5
    8497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    8498   ac_status=$?
    8499   grep -v '^ *+' conftest.er1 >conftest.err
    8500   rm -f conftest.er1
    8501   cat conftest.err >&5
    8502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8503   (exit $ac_status); } >/dev/null && {
    8504          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    8505          test ! -s conftest.err
    8506        }; then
     7435if ac_fn_cxx_try_cpp "$LINENO"; then :
    85077436  # Broken: success on invalid input.
    85087437continue
    85097438else
    8510   $as_echo "$as_me: failed program was:" >&5
    8511 sed 's/^/| /' conftest.$ac_ext >&5
    8512 
    85137439  # Passes both tests.
    85147440ac_preproc_ok=:
    85157441break
    85167442fi
    8517 
    8518 rm -f conftest.err conftest.$ac_ext
     7443rm -f conftest.err conftest.i conftest.$ac_ext
    85197444
    85207445done
    85217446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    8522 rm -f conftest.err conftest.$ac_ext
    8523 if $ac_preproc_ok; then
     7447rm -f conftest.i conftest.err conftest.$ac_ext
     7448if $ac_preproc_ok; then :
    85247449  break
    85257450fi
     
    85337458  ac_cv_prog_CXXCPP=$CXXCPP
    85347459fi
    8535 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
     7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
    85367461$as_echo "$CXXCPP" >&6; }
    85377462ac_preproc_ok=false
     
    85447469  # On the NeXT, cc -E runs the code through the compiler's parser,
    85457470  # not just through cpp. "Syntax error" is here to catch this case.
    8546   cat >conftest.$ac_ext <<_ACEOF
    8547 /* confdefs.h.  */
    8548 _ACEOF
    8549 cat confdefs.h >>conftest.$ac_ext
    8550 cat >>conftest.$ac_ext <<_ACEOF
     7471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    85517472/* end confdefs.h.  */
    85527473#ifdef __STDC__
     
    85577478                     Syntax error
    85587479_ACEOF
    8559 if { (ac_try="$ac_cpp conftest.$ac_ext"
    8560 case "(($ac_try" in
    8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8562   *) ac_try_echo=$ac_try;;
    8563 esac
    8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8565 $as_echo "$ac_try_echo") >&5
    8566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    8567   ac_status=$?
    8568   grep -v '^ *+' conftest.er1 >conftest.err
    8569   rm -f conftest.er1
    8570   cat conftest.err >&5
    8571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8572   (exit $ac_status); } >/dev/null && {
    8573          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    8574          test ! -s conftest.err
    8575        }; then
    8576   :
    8577 else
    8578   $as_echo "$as_me: failed program was:" >&5
    8579 sed 's/^/| /' conftest.$ac_ext >&5
    8580 
     7480if ac_fn_cxx_try_cpp "$LINENO"; then :
     7481
     7482else
    85817483  # Broken: fails on valid input.
    85827484continue
    85837485fi
    8584 
    8585 rm -f conftest.err conftest.$ac_ext
     7486rm -f conftest.err conftest.i conftest.$ac_ext
    85867487
    85877488  # OK, works on sane cases.  Now check whether nonexistent headers
    85887489  # can be detected and how.
    8589   cat >conftest.$ac_ext <<_ACEOF
    8590 /* confdefs.h.  */
    8591 _ACEOF
    8592 cat confdefs.h >>conftest.$ac_ext
    8593 cat >>conftest.$ac_ext <<_ACEOF
     7490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    85947491/* end confdefs.h.  */
    85957492#include <ac_nonexistent.h>
    85967493_ACEOF
    8597 if { (ac_try="$ac_cpp conftest.$ac_ext"
    8598 case "(($ac_try" in
    8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8600   *) ac_try_echo=$ac_try;;
    8601 esac
    8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8603 $as_echo "$ac_try_echo") >&5
    8604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    8605   ac_status=$?
    8606   grep -v '^ *+' conftest.er1 >conftest.err
    8607   rm -f conftest.er1
    8608   cat conftest.err >&5
    8609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8610   (exit $ac_status); } >/dev/null && {
    8611          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    8612          test ! -s conftest.err
    8613        }; then
     7494if ac_fn_cxx_try_cpp "$LINENO"; then :
    86147495  # Broken: success on invalid input.
    86157496continue
    86167497else
    8617   $as_echo "$as_me: failed program was:" >&5
    8618 sed 's/^/| /' conftest.$ac_ext >&5
    8619 
    86207498  # Passes both tests.
    86217499ac_preproc_ok=:
    86227500break
    86237501fi
    8624 
    8625 rm -f conftest.err conftest.$ac_ext
     7502rm -f conftest.err conftest.i conftest.$ac_ext
    86267503
    86277504done
    86287505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    8629 rm -f conftest.err conftest.$ac_ext
    8630 if $ac_preproc_ok; then
    8631   :
    8632 else
    8633   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     7506rm -f conftest.i conftest.err conftest.$ac_ext
     7507if $ac_preproc_ok; then :
     7508
     7509else
     7510  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    86347511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    8635 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    8636 See \`config.log' for more details." >&5
    8637 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    8638 See \`config.log' for more details." >&2;}
    8639    { (exit 1); exit 1; }; }; }
     7512as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
     7513See \`config.log' for more details" "$LINENO" 5; }
    86407514fi
    86417515
     
    86607534    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    86617535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    8662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    86637537$as_echo_n "checking for $ac_word... " >&6; }
    8664 if test "${ac_cv_prog_CXX+set}" = set; then
     7538if ${ac_cv_prog_CXX+:} false; then :
    86657539  $as_echo_n "(cached) " >&6
    86667540else
     
    86737547  IFS=$as_save_IFS
    86747548  test -z "$as_dir" && as_dir=.
    8675   for ac_exec_ext in '' $ac_executable_extensions; do
    8676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7549    for ac_exec_ext in '' $ac_executable_extensions; do
     7550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    86777551    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    8678     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    86797553    break 2
    86807554  fi
    86817555done
    8682 done
     7556  done
    86837557IFS=$as_save_IFS
    86847558
     
    86877561CXX=$ac_cv_prog_CXX
    86887562if test -n "$CXX"; then
    8689   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
     7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
    86907564$as_echo "$CXX" >&6; }
    86917565else
    8692   { $as_echo "$as_me:$LINENO: result: no" >&5
     7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    86937567$as_echo "no" >&6; }
    86947568fi
     
    87047578  # Extract the first word of "$ac_prog", so it can be a program name with args.
    87057579set dummy $ac_prog; ac_word=$2
    8706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    87077581$as_echo_n "checking for $ac_word... " >&6; }
    8708 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     7582if ${ac_cv_prog_ac_ct_CXX+:} false; then :
    87097583  $as_echo_n "(cached) " >&6
    87107584else
     
    87177591  IFS=$as_save_IFS
    87187592  test -z "$as_dir" && as_dir=.
    8719   for ac_exec_ext in '' $ac_executable_extensions; do
    8720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7593    for ac_exec_ext in '' $ac_executable_extensions; do
     7594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    87217595    ac_cv_prog_ac_ct_CXX="$ac_prog"
    8722     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    87237597    break 2
    87247598  fi
    87257599done
    8726 done
     7600  done
    87277601IFS=$as_save_IFS
    87287602
     
    87317605ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    87327606if test -n "$ac_ct_CXX"; then
    8733   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
    87347608$as_echo "$ac_ct_CXX" >&6; }
    87357609else
    8736   { $as_echo "$as_me:$LINENO: result: no" >&5
     7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    87377611$as_echo "no" >&6; }
    87387612fi
     
    87477621    case $cross_compiling:$ac_tool_warned in
    87487622yes:)
    8749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     7623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    87507624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    87517625ac_tool_warned=yes ;;
     
    87587632fi
    87597633# Provide some information about the compiler.
    8760 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
     7634$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
    87617635set X $ac_compile
    87627636ac_compiler=$2
    8763 { (ac_try="$ac_compiler --version >&5"
     7637for ac_option in --version -v -V -qversion; do
     7638  { { ac_try="$ac_compiler $ac_option >&5"
    87647639case "(($ac_try" in
    87657640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    87667641  *) ac_try_echo=$ac_try;;
    87677642esac
    8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8769 $as_echo "$ac_try_echo") >&5
    8770   (eval "$ac_compiler --version >&5") 2>&5
     7643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     7644$as_echo "$ac_try_echo"; } >&5
     7645  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    87717646  ac_status=$?
    8772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8773   (exit $ac_status); }
    8774 { (ac_try="$ac_compiler -v >&5"
    8775 case "(($ac_try" in
    8776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8777   *) ac_try_echo=$ac_try;;
    8778 esac
    8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8780 $as_echo "$ac_try_echo") >&5
    8781   (eval "$ac_compiler -v >&5") 2>&5
    8782   ac_status=$?
    8783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8784   (exit $ac_status); }
    8785 { (ac_try="$ac_compiler -V >&5"
    8786 case "(($ac_try" in
    8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8788   *) ac_try_echo=$ac_try;;
    8789 esac
    8790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8791 $as_echo "$ac_try_echo") >&5
    8792   (eval "$ac_compiler -V >&5") 2>&5
    8793   ac_status=$?
    8794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8795   (exit $ac_status); }
    8796 
    8797 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     7647  if test -s conftest.err; then
     7648    sed '10a\
     7649... rest of stderr output deleted ...
     7650         10q' conftest.err >conftest.er1
     7651    cat conftest.er1 >&5
     7652  fi
     7653  rm -f conftest.er1 conftest.err
     7654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     7655  test $ac_status = 0; }
     7656done
     7657
     7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    87987659$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    8799 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     7660if ${ac_cv_cxx_compiler_gnu+:} false; then :
    88007661  $as_echo_n "(cached) " >&6
    88017662else
    8802   cat >conftest.$ac_ext <<_ACEOF
    8803 /* confdefs.h.  */
    8804 _ACEOF
    8805 cat confdefs.h >>conftest.$ac_ext
    8806 cat >>conftest.$ac_ext <<_ACEOF
     7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    88077664/* end confdefs.h.  */
    88087665
     
    88187675}
    88197676_ACEOF
    8820 rm -f conftest.$ac_objext
    8821 if { (ac_try="$ac_compile"
    8822 case "(($ac_try" in
    8823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8824   *) ac_try_echo=$ac_try;;
    8825 esac
    8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8827 $as_echo "$ac_try_echo") >&5
    8828   (eval "$ac_compile") 2>conftest.er1
    8829   ac_status=$?
    8830   grep -v '^ *+' conftest.er1 >conftest.err
    8831   rm -f conftest.er1
    8832   cat conftest.err >&5
    8833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8834   (exit $ac_status); } && {
    8835          test -z "$ac_cxx_werror_flag" ||
    8836          test ! -s conftest.err
    8837        } && test -s conftest.$ac_objext; then
     7677if ac_fn_cxx_try_compile "$LINENO"; then :
    88387678  ac_compiler_gnu=yes
    88397679else
    8840   $as_echo "$as_me: failed program was:" >&5
    8841 sed 's/^/| /' conftest.$ac_ext >&5
    8842 
    8843         ac_compiler_gnu=no
    8844 fi
    8845 
     7680  ac_compiler_gnu=no
     7681fi
    88467682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    88477683ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    88487684
    88497685fi
    8850 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
    88517687$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    88527688if test $ac_compiler_gnu = yes; then
     
    88577693ac_test_CXXFLAGS=${CXXFLAGS+set}
    88587694ac_save_CXXFLAGS=$CXXFLAGS
    8859 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    88607696$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    8861 if test "${ac_cv_prog_cxx_g+set}" = set; then
     7697if ${ac_cv_prog_cxx_g+:} false; then :
    88627698  $as_echo_n "(cached) " >&6
    88637699else
     
    88667702   ac_cv_prog_cxx_g=no
    88677703   CXXFLAGS="-g"
    8868    cat >conftest.$ac_ext <<_ACEOF
    8869 /* confdefs.h.  */
    8870 _ACEOF
    8871 cat confdefs.h >>conftest.$ac_ext
    8872 cat >>conftest.$ac_ext <<_ACEOF
     7704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    88737705/* end confdefs.h.  */
    88747706
     
    88817713}
    88827714_ACEOF
    8883 rm -f conftest.$ac_objext
    8884 if { (ac_try="$ac_compile"
    8885 case "(($ac_try" in
    8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8887   *) ac_try_echo=$ac_try;;
    8888 esac
    8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8890 $as_echo "$ac_try_echo") >&5
    8891   (eval "$ac_compile") 2>conftest.er1
    8892   ac_status=$?
    8893   grep -v '^ *+' conftest.er1 >conftest.err
    8894   rm -f conftest.er1
    8895   cat conftest.err >&5
    8896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8897   (exit $ac_status); } && {
    8898          test -z "$ac_cxx_werror_flag" ||
    8899          test ! -s conftest.err
    8900        } && test -s conftest.$ac_objext; then
     7715if ac_fn_cxx_try_compile "$LINENO"; then :
    89017716  ac_cv_prog_cxx_g=yes
    89027717else
    8903   $as_echo "$as_me: failed program was:" >&5
    8904 sed 's/^/| /' conftest.$ac_ext >&5
    8905 
    8906         CXXFLAGS=""
    8907       cat >conftest.$ac_ext <<_ACEOF
    8908 /* confdefs.h.  */
    8909 _ACEOF
    8910 cat confdefs.h >>conftest.$ac_ext
    8911 cat >>conftest.$ac_ext <<_ACEOF
     7718  CXXFLAGS=""
     7719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    89127720/* end confdefs.h.  */
    89137721
     
    89207728}
    89217729_ACEOF
    8922 rm -f conftest.$ac_objext
    8923 if { (ac_try="$ac_compile"
    8924 case "(($ac_try" in
    8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8926   *) ac_try_echo=$ac_try;;
    8927 esac
    8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8929 $as_echo "$ac_try_echo") >&5
    8930   (eval "$ac_compile") 2>conftest.er1
    8931   ac_status=$?
    8932   grep -v '^ *+' conftest.er1 >conftest.err
    8933   rm -f conftest.er1
    8934   cat conftest.err >&5
    8935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8936   (exit $ac_status); } && {
    8937          test -z "$ac_cxx_werror_flag" ||
    8938          test ! -s conftest.err
    8939        } && test -s conftest.$ac_objext; then
    8940   :
    8941 else
    8942   $as_echo "$as_me: failed program was:" >&5
    8943 sed 's/^/| /' conftest.$ac_ext >&5
    8944 
    8945         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     7730if ac_fn_cxx_try_compile "$LINENO"; then :
     7731
     7732else
     7733  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    89467734         CXXFLAGS="-g"
    8947          cat >conftest.$ac_ext <<_ACEOF
    8948 /* confdefs.h.  */
    8949 _ACEOF
    8950 cat confdefs.h >>conftest.$ac_ext
    8951 cat >>conftest.$ac_ext <<_ACEOF
     7735         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    89527736/* end confdefs.h.  */
    89537737
     
    89607744}
    89617745_ACEOF
    8962 rm -f conftest.$ac_objext
    8963 if { (ac_try="$ac_compile"
    8964 case "(($ac_try" in
    8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    8966   *) ac_try_echo=$ac_try;;
    8967 esac
    8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    8969 $as_echo "$ac_try_echo") >&5
    8970   (eval "$ac_compile") 2>conftest.er1
    8971   ac_status=$?
    8972   grep -v '^ *+' conftest.er1 >conftest.err
    8973   rm -f conftest.er1
    8974   cat conftest.err >&5
    8975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8976   (exit $ac_status); } && {
    8977          test -z "$ac_cxx_werror_flag" ||
    8978          test ! -s conftest.err
    8979        } && test -s conftest.$ac_objext; then
     7746if ac_fn_cxx_try_compile "$LINENO"; then :
    89807747  ac_cv_prog_cxx_g=yes
    8981 else
    8982   $as_echo "$as_me: failed program was:" >&5
    8983 sed 's/^/| /' conftest.$ac_ext >&5
    8984 
    8985 
    8986 fi
    8987 
     7748fi
    89887749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    89897750fi
    8990 
    89917751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    89927752fi
    8993 
    89947753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    89957754   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    89967755fi
    8997 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
    89987757$as_echo "$ac_cv_prog_cxx_g" >&6; }
    89997758if test "$ac_test_CXXFLAGS" = set; then
     
    90267785
    90277786
    9028 
    9029  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
    90307788$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
    9031 if test "${ac_cv_c_bigendian+set}" = set; then
     7789if ${ac_cv_c_bigendian+:} false; then :
    90327790  $as_echo_n "(cached) " >&6
    90337791else
    90347792  ac_cv_c_bigendian=unknown
    90357793    # See if we're dealing with a universal compiler.
    9036     cat >conftest.$ac_ext <<_ACEOF
    9037 /* confdefs.h.  */
    9038 _ACEOF
    9039 cat confdefs.h >>conftest.$ac_ext
    9040 cat >>conftest.$ac_ext <<_ACEOF
     7794    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    90417795/* end confdefs.h.  */
    90427796#ifndef __APPLE_CC__
     
    90467800
    90477801_ACEOF
    9048 rm -f conftest.$ac_objext
    9049 if { (ac_try="$ac_compile"
    9050 case "(($ac_try" in
    9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9052   *) ac_try_echo=$ac_try;;
    9053 esac
    9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9055 $as_echo "$ac_try_echo") >&5
    9056   (eval "$ac_compile") 2>conftest.er1
    9057   ac_status=$?
    9058   grep -v '^ *+' conftest.er1 >conftest.err
    9059   rm -f conftest.er1
    9060   cat conftest.err >&5
    9061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9062   (exit $ac_status); } && {
    9063          test -z "$ac_cxx_werror_flag" ||
    9064          test ! -s conftest.err
    9065        } && test -s conftest.$ac_objext; then
     7802if ac_fn_cxx_try_compile "$LINENO"; then :
    90667803
    90677804        # Check for potential -arch flags.  It is not universal unless
    9068         # there are some -arch flags.  Note that *ppc* also matches
    9069         # ppc64.  This check is also rather less than ideal.
    9070         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
    9071           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
    9072         esac
    9073 else
    9074   $as_echo "$as_me: failed program was:" >&5
    9075 sed 's/^/| /' conftest.$ac_ext >&5
    9076 
    9077 
    9078 fi
    9079 
     7805        # there are at least two -arch flags with different values.
     7806        ac_arch=
     7807        ac_prev=
     7808        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     7809         if test -n "$ac_prev"; then
     7810           case $ac_word in
     7811             i?86 | x86_64 | ppc | ppc64)
     7812               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     7813                 ac_arch=$ac_word
     7814               else
     7815                 ac_cv_c_bigendian=universal
     7816                 break
     7817               fi
     7818               ;;
     7819           esac
     7820           ac_prev=
     7821         elif test "x$ac_word" = "x-arch"; then
     7822           ac_prev=arch
     7823         fi
     7824       done
     7825fi
    90807826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    90817827    if test $ac_cv_c_bigendian = unknown; then
    90827828      # See if sys/param.h defines the BYTE_ORDER macro.
    9083       cat >conftest.$ac_ext <<_ACEOF
    9084 /* confdefs.h.  */
    9085 _ACEOF
    9086 cat confdefs.h >>conftest.$ac_ext
    9087 cat >>conftest.$ac_ext <<_ACEOF
     7829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    90887830/* end confdefs.h.  */
    90897831#include <sys/types.h>
     
    91037845}
    91047846_ACEOF
    9105 rm -f conftest.$ac_objext
    9106 if { (ac_try="$ac_compile"
    9107 case "(($ac_try" in
    9108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9109   *) ac_try_echo=$ac_try;;
    9110 esac
    9111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9112 $as_echo "$ac_try_echo") >&5
    9113   (eval "$ac_compile") 2>conftest.er1
    9114   ac_status=$?
    9115   grep -v '^ *+' conftest.er1 >conftest.err
    9116   rm -f conftest.er1
    9117   cat conftest.err >&5
    9118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9119   (exit $ac_status); } && {
    9120          test -z "$ac_cxx_werror_flag" ||
    9121          test ! -s conftest.err
    9122        } && test -s conftest.$ac_objext; then
     7847if ac_fn_cxx_try_compile "$LINENO"; then :
    91237848  # It does; now see whether it defined to BIG_ENDIAN or not.
    9124          cat >conftest.$ac_ext <<_ACEOF
    9125 /* confdefs.h.  */
    9126 _ACEOF
    9127 cat confdefs.h >>conftest.$ac_ext
    9128 cat >>conftest.$ac_ext <<_ACEOF
     7849         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    91297850/* end confdefs.h.  */
    91307851#include <sys/types.h>
     
    91427863}
    91437864_ACEOF
    9144 rm -f conftest.$ac_objext
    9145 if { (ac_try="$ac_compile"
    9146 case "(($ac_try" in
    9147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9148   *) ac_try_echo=$ac_try;;
    9149 esac
    9150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9151 $as_echo "$ac_try_echo") >&5
    9152   (eval "$ac_compile") 2>conftest.er1
    9153   ac_status=$?
    9154   grep -v '^ *+' conftest.er1 >conftest.err
    9155   rm -f conftest.er1
    9156   cat conftest.err >&5
    9157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9158   (exit $ac_status); } && {
    9159          test -z "$ac_cxx_werror_flag" ||
    9160          test ! -s conftest.err
    9161        } && test -s conftest.$ac_objext; then
     7865if ac_fn_cxx_try_compile "$LINENO"; then :
    91627866  ac_cv_c_bigendian=yes
    91637867else
    9164   $as_echo "$as_me: failed program was:" >&5
    9165 sed 's/^/| /' conftest.$ac_ext >&5
    9166 
    9167         ac_cv_c_bigendian=no
    9168 fi
    9169 
     7868  ac_cv_c_bigendian=no
     7869fi
    91707870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9171 else
    9172   $as_echo "$as_me: failed program was:" >&5
    9173 sed 's/^/| /' conftest.$ac_ext >&5
    9174 
    9175 
    9176 fi
    9177 
     7871fi
    91787872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    91797873    fi
    91807874    if test $ac_cv_c_bigendian = unknown; then
    91817875      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
    9182       cat >conftest.$ac_ext <<_ACEOF
    9183 /* confdefs.h.  */
    9184 _ACEOF
    9185 cat confdefs.h >>conftest.$ac_ext
    9186 cat >>conftest.$ac_ext <<_ACEOF
     7876      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    91877877/* end confdefs.h.  */
    91887878#include <limits.h>
     
    91997889}
    92007890_ACEOF
    9201 rm -f conftest.$ac_objext
    9202 if { (ac_try="$ac_compile"
    9203 case "(($ac_try" in
    9204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9205   *) ac_try_echo=$ac_try;;
    9206 esac
    9207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9208 $as_echo "$ac_try_echo") >&5
    9209   (eval "$ac_compile") 2>conftest.er1
    9210   ac_status=$?
    9211   grep -v '^ *+' conftest.er1 >conftest.err
    9212   rm -f conftest.er1
    9213   cat conftest.err >&5
    9214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9215   (exit $ac_status); } && {
    9216          test -z "$ac_cxx_werror_flag" ||
    9217          test ! -s conftest.err
    9218        } && test -s conftest.$ac_objext; then
     7891if ac_fn_cxx_try_compile "$LINENO"; then :
    92197892  # It does; now see whether it defined to _BIG_ENDIAN or not.
    9220          cat >conftest.$ac_ext <<_ACEOF
    9221 /* confdefs.h.  */
    9222 _ACEOF
    9223 cat confdefs.h >>conftest.$ac_ext
    9224 cat >>conftest.$ac_ext <<_ACEOF
     7893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    92257894/* end confdefs.h.  */
    92267895#include <limits.h>
     
    92377906}
    92387907_ACEOF
    9239 rm -f conftest.$ac_objext
    9240 if { (ac_try="$ac_compile"
    9241 case "(($ac_try" in
    9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9243   *) ac_try_echo=$ac_try;;
    9244 esac
    9245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9246 $as_echo "$ac_try_echo") >&5
    9247   (eval "$ac_compile") 2>conftest.er1
    9248   ac_status=$?
    9249   grep -v '^ *+' conftest.er1 >conftest.err
    9250   rm -f conftest.er1
    9251   cat conftest.err >&5
    9252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9253   (exit $ac_status); } && {
    9254          test -z "$ac_cxx_werror_flag" ||
    9255          test ! -s conftest.err
    9256        } && test -s conftest.$ac_objext; then
     7908if ac_fn_cxx_try_compile "$LINENO"; then :
    92577909  ac_cv_c_bigendian=yes
    92587910else
    9259   $as_echo "$as_me: failed program was:" >&5
    9260 sed 's/^/| /' conftest.$ac_ext >&5
    9261 
    9262         ac_cv_c_bigendian=no
    9263 fi
    9264 
     7911  ac_cv_c_bigendian=no
     7912fi
    92657913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9266 else
    9267   $as_echo "$as_me: failed program was:" >&5
    9268 sed 's/^/| /' conftest.$ac_ext >&5
    9269 
    9270 
    9271 fi
    9272 
     7914fi
    92737915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    92747916    fi
    92757917    if test $ac_cv_c_bigendian = unknown; then
    92767918      # Compile a test program.
    9277       if test "$cross_compiling" = yes; then
     7919      if test "$cross_compiling" = yes; then :
    92787920  # Try to guess by grepping values from an object file.
    9279          cat >conftest.$ac_ext <<_ACEOF
    9280 /* confdefs.h.  */
    9281 _ACEOF
    9282 cat confdefs.h >>conftest.$ac_ext
    9283 cat >>conftest.$ac_ext <<_ACEOF
     7921         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    92847922/* end confdefs.h.  */
    92857923short int ascii_mm[] =
     
    93077945}
    93087946_ACEOF
    9309 rm -f conftest.$ac_objext
    9310 if { (ac_try="$ac_compile"
    9311 case "(($ac_try" in
    9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9313   *) ac_try_echo=$ac_try;;
    9314 esac
    9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9316 $as_echo "$ac_try_echo") >&5
    9317   (eval "$ac_compile") 2>conftest.er1
    9318   ac_status=$?
    9319   grep -v '^ *+' conftest.er1 >conftest.err
    9320   rm -f conftest.er1
    9321   cat conftest.err >&5
    9322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9323   (exit $ac_status); } && {
    9324          test -z "$ac_cxx_werror_flag" ||
    9325          test ! -s conftest.err
    9326        } && test -s conftest.$ac_objext; then
     7947if ac_fn_cxx_try_compile "$LINENO"; then :
    93277948  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
    93287949              ac_cv_c_bigendian=yes
     
    93367957              fi
    93377958            fi
    9338 else
    9339   $as_echo "$as_me: failed program was:" >&5
    9340 sed 's/^/| /' conftest.$ac_ext >&5
    9341 
    9342 
    9343 fi
    9344 
     7959fi
    93457960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    93467961else
    9347   cat >conftest.$ac_ext <<_ACEOF
    9348 /* confdefs.h.  */
    9349 _ACEOF
    9350 cat confdefs.h >>conftest.$ac_ext
    9351 cat >>conftest.$ac_ext <<_ACEOF
     7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    93527963/* end confdefs.h.  */
    93537964$ac_includes_default
     
    93697980}
    93707981_ACEOF
    9371 rm -f conftest$ac_exeext
    9372 if { (ac_try="$ac_link"
    9373 case "(($ac_try" in
    9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9375   *) ac_try_echo=$ac_try;;
    9376 esac
    9377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9378 $as_echo "$ac_try_echo") >&5
    9379   (eval "$ac_link") 2>&5
    9380   ac_status=$?
    9381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    9383   { (case "(($ac_try" in
    9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9385   *) ac_try_echo=$ac_try;;
    9386 esac
    9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9388 $as_echo "$ac_try_echo") >&5
    9389   (eval "$ac_try") 2>&5
    9390   ac_status=$?
    9391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9392   (exit $ac_status); }; }; then
     7982if ac_fn_cxx_try_run "$LINENO"; then :
    93937983  ac_cv_c_bigendian=no
    93947984else
    9395   $as_echo "$as_me: program exited with status $ac_status" >&5
    9396 $as_echo "$as_me: failed program was:" >&5
    9397 sed 's/^/| /' conftest.$ac_ext >&5
    9398 
    9399 ( exit $ac_status )
    9400 ac_cv_c_bigendian=yes
    9401 fi
    9402 rm -rf conftest.dSYM
    9403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    9404 fi
    9405 
     7985  ac_cv_c_bigendian=yes
     7986fi
     7987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     7988  conftest.$ac_objext conftest.beam conftest.$ac_ext
     7989fi
    94067990
    94077991    fi
    94087992fi
    9409 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
    94107994$as_echo "$ac_cv_c_bigendian" >&6; }
    94117995 case $ac_cv_c_bigendian in #(
    94127996   yes)
    9413      cat >>confdefs.h <<\_ACEOF
    9414 #define WORDS_BIGENDIAN 1
    9415 _ACEOF
     7997     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
    94167998;; #(
    94177999   no)
     
    94198001   universal)
    94208002
    9421 cat >>confdefs.h <<\_ACEOF
    9422 #define AC_APPLE_UNIVERSAL_BUILD 1
    9423 _ACEOF
     8003$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
    94248004
    94258005     ;; #(
    94268006   *)
    9427      { { $as_echo "$as_me:$LINENO: error: unknown endianness
    9428  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    9429 $as_echo "$as_me: error: unknown endianness
    9430  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    9431    { (exit 1); exit 1; }; } ;;
     8007     as_fn_error $? "unknown endianness
     8008 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
    94328009 esac
    94338010
     
    94368013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    94378014# This bug is HP SR number 8606223364.
    9438 { $as_echo "$as_me:$LINENO: checking size of int" >&5
     8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
    94398016$as_echo_n "checking size of int... " >&6; }
    9440 if test "${ac_cv_sizeof_int+set}" = set; then
     8017if ${ac_cv_sizeof_int+:} false; then :
    94418018  $as_echo_n "(cached) " >&6
    94428019else
    9443   if test "$cross_compiling" = yes; then
    9444   # Depending upon the size, compute the lo and hi bounds.
    9445 cat >conftest.$ac_ext <<_ACEOF
    9446 /* confdefs.h.  */
    9447 _ACEOF
    9448 cat confdefs.h >>conftest.$ac_ext
    9449 cat >>conftest.$ac_ext <<_ACEOF
    9450 /* end confdefs.h.  */
    9451 $ac_includes_default
    9452 int
    9453 main ()
    9454 {
    9455 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
    9456 test_array [0] = 0
    9457 
    9458   ;
    9459   return 0;
    9460 }
    9461 _ACEOF
    9462 rm -f conftest.$ac_objext
    9463 if { (ac_try="$ac_compile"
    9464 case "(($ac_try" in
    9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9466   *) ac_try_echo=$ac_try;;
    9467 esac
    9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9469 $as_echo "$ac_try_echo") >&5
    9470   (eval "$ac_compile") 2>conftest.er1
    9471   ac_status=$?
    9472   grep -v '^ *+' conftest.er1 >conftest.err
    9473   rm -f conftest.er1
    9474   cat conftest.err >&5
    9475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9476   (exit $ac_status); } && {
    9477          test -z "$ac_cxx_werror_flag" ||
    9478          test ! -s conftest.err
    9479        } && test -s conftest.$ac_objext; then
    9480   ac_lo=0 ac_mid=0
    9481   while :; do
    9482     cat >conftest.$ac_ext <<_ACEOF
    9483 /* confdefs.h.  */
    9484 _ACEOF
    9485 cat confdefs.h >>conftest.$ac_ext
    9486 cat >>conftest.$ac_ext <<_ACEOF
    9487 /* end confdefs.h.  */
    9488 $ac_includes_default
    9489 int
    9490 main ()
    9491 {
    9492 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
    9493 test_array [0] = 0
    9494 
    9495   ;
    9496   return 0;
    9497 }
    9498 _ACEOF
    9499 rm -f conftest.$ac_objext
    9500 if { (ac_try="$ac_compile"
    9501 case "(($ac_try" in
    9502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9503   *) ac_try_echo=$ac_try;;
    9504 esac
    9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9506 $as_echo "$ac_try_echo") >&5
    9507   (eval "$ac_compile") 2>conftest.er1
    9508   ac_status=$?
    9509   grep -v '^ *+' conftest.er1 >conftest.err
    9510   rm -f conftest.er1
    9511   cat conftest.err >&5
    9512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9513   (exit $ac_status); } && {
    9514          test -z "$ac_cxx_werror_flag" ||
    9515          test ! -s conftest.err
    9516        } && test -s conftest.$ac_objext; then
    9517   ac_hi=$ac_mid; break
    9518 else
    9519   $as_echo "$as_me: failed program was:" >&5
    9520 sed 's/^/| /' conftest.$ac_ext >&5
    9521 
    9522         ac_lo=`expr $ac_mid + 1`
    9523                         if test $ac_lo -le $ac_mid; then
    9524                           ac_lo= ac_hi=
    9525                           break
    9526                         fi
    9527                         ac_mid=`expr 2 '*' $ac_mid + 1`
    9528 fi
    9529 
    9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9531   done
    9532 else
    9533   $as_echo "$as_me: failed program was:" >&5
    9534 sed 's/^/| /' conftest.$ac_ext >&5
    9535 
    9536         cat >conftest.$ac_ext <<_ACEOF
    9537 /* confdefs.h.  */
    9538 _ACEOF
    9539 cat confdefs.h >>conftest.$ac_ext
    9540 cat >>conftest.$ac_ext <<_ACEOF
    9541 /* end confdefs.h.  */
    9542 $ac_includes_default
    9543 int
    9544 main ()
    9545 {
    9546 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
    9547 test_array [0] = 0
    9548 
    9549   ;
    9550   return 0;
    9551 }
    9552 _ACEOF
    9553 rm -f conftest.$ac_objext
    9554 if { (ac_try="$ac_compile"
    9555 case "(($ac_try" in
    9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9557   *) ac_try_echo=$ac_try;;
    9558 esac
    9559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9560 $as_echo "$ac_try_echo") >&5
    9561   (eval "$ac_compile") 2>conftest.er1
    9562   ac_status=$?
    9563   grep -v '^ *+' conftest.er1 >conftest.err
    9564   rm -f conftest.er1
    9565   cat conftest.err >&5
    9566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9567   (exit $ac_status); } && {
    9568          test -z "$ac_cxx_werror_flag" ||
    9569          test ! -s conftest.err
    9570        } && test -s conftest.$ac_objext; then
    9571   ac_hi=-1 ac_mid=-1
    9572   while :; do
    9573     cat >conftest.$ac_ext <<_ACEOF
    9574 /* confdefs.h.  */
    9575 _ACEOF
    9576 cat confdefs.h >>conftest.$ac_ext
    9577 cat >>conftest.$ac_ext <<_ACEOF
    9578 /* end confdefs.h.  */
    9579 $ac_includes_default
    9580 int
    9581 main ()
    9582 {
    9583 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
    9584 test_array [0] = 0
    9585 
    9586   ;
    9587   return 0;
    9588 }
    9589 _ACEOF
    9590 rm -f conftest.$ac_objext
    9591 if { (ac_try="$ac_compile"
    9592 case "(($ac_try" in
    9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9594   *) ac_try_echo=$ac_try;;
    9595 esac
    9596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9597 $as_echo "$ac_try_echo") >&5
    9598   (eval "$ac_compile") 2>conftest.er1
    9599   ac_status=$?
    9600   grep -v '^ *+' conftest.er1 >conftest.err
    9601   rm -f conftest.er1
    9602   cat conftest.err >&5
    9603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9604   (exit $ac_status); } && {
    9605          test -z "$ac_cxx_werror_flag" ||
    9606          test ! -s conftest.err
    9607        } && test -s conftest.$ac_objext; then
    9608   ac_lo=$ac_mid; break
    9609 else
    9610   $as_echo "$as_me: failed program was:" >&5
    9611 sed 's/^/| /' conftest.$ac_ext >&5
    9612 
    9613         ac_hi=`expr '(' $ac_mid ')' - 1`
    9614                         if test $ac_mid -le $ac_hi; then
    9615                           ac_lo= ac_hi=
    9616                           break
    9617                         fi
    9618                         ac_mid=`expr 2 '*' $ac_mid`
    9619 fi
    9620 
    9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9622   done
    9623 else
    9624   $as_echo "$as_me: failed program was:" >&5
    9625 sed 's/^/| /' conftest.$ac_ext >&5
    9626 
    9627         ac_lo= ac_hi=
    9628 fi
    9629 
    9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9631 fi
    9632 
    9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9634 # Binary search between lo and hi bounds.
    9635 while test "x$ac_lo" != "x$ac_hi"; do
    9636   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    9637   cat >conftest.$ac_ext <<_ACEOF
    9638 /* confdefs.h.  */
    9639 _ACEOF
    9640 cat confdefs.h >>conftest.$ac_ext
    9641 cat >>conftest.$ac_ext <<_ACEOF
    9642 /* end confdefs.h.  */
    9643 $ac_includes_default
    9644 int
    9645 main ()
    9646 {
    9647 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
    9648 test_array [0] = 0
    9649 
    9650   ;
    9651   return 0;
    9652 }
    9653 _ACEOF
    9654 rm -f conftest.$ac_objext
    9655 if { (ac_try="$ac_compile"
    9656 case "(($ac_try" in
    9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9658   *) ac_try_echo=$ac_try;;
    9659 esac
    9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9661 $as_echo "$ac_try_echo") >&5
    9662   (eval "$ac_compile") 2>conftest.er1
    9663   ac_status=$?
    9664   grep -v '^ *+' conftest.er1 >conftest.err
    9665   rm -f conftest.er1
    9666   cat conftest.err >&5
    9667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9668   (exit $ac_status); } && {
    9669          test -z "$ac_cxx_werror_flag" ||
    9670          test ! -s conftest.err
    9671        } && test -s conftest.$ac_objext; then
    9672   ac_hi=$ac_mid
    9673 else
    9674   $as_echo "$as_me: failed program was:" >&5
    9675 sed 's/^/| /' conftest.$ac_ext >&5
    9676 
    9677         ac_lo=`expr '(' $ac_mid ')' + 1`
    9678 fi
    9679 
    9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9681 done
    9682 case $ac_lo in
    9683 ?*) ac_cv_sizeof_int=$ac_lo;;
    9684 '') if test "$ac_cv_type_int" = yes; then
    9685      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     8020  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
     8021
     8022else
     8023  if test "$ac_cv_type_int" = yes; then
     8024     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    96868025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9687 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
    9688 See \`config.log' for more details." >&5
    9689 $as_echo "$as_me: error: cannot compute sizeof (int)
    9690 See \`config.log' for more details." >&2;}
    9691    { (exit 77); exit 77; }; }; }
    9692    else
    9693      ac_cv_sizeof_int=0
    9694    fi ;;
    9695 esac
    9696 else
    9697   cat >conftest.$ac_ext <<_ACEOF
    9698 /* confdefs.h.  */
    9699 _ACEOF
    9700 cat confdefs.h >>conftest.$ac_ext
    9701 cat >>conftest.$ac_ext <<_ACEOF
    9702 /* end confdefs.h.  */
    9703 $ac_includes_default
    9704 static long int longval () { return (long int) (sizeof (int)); }
    9705 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
    9706 #include <stdio.h>
    9707 #include <stdlib.h>
    9708 int
    9709 main ()
    9710 {
    9711 
    9712   FILE *f = fopen ("conftest.val", "w");
    9713   if (! f)
    9714     return 1;
    9715   if (((long int) (sizeof (int))) < 0)
    9716     {
    9717       long int i = longval ();
    9718       if (i != ((long int) (sizeof (int))))
    9719         return 1;
    9720       fprintf (f, "%ld", i);
    9721     }
    9722   else
    9723     {
    9724       unsigned long int i = ulongval ();
    9725       if (i != ((long int) (sizeof (int))))
    9726         return 1;
    9727       fprintf (f, "%lu", i);
    9728     }
    9729   /* Do not output a trailing newline, as this causes \r\n confusion
    9730      on some platforms.  */
    9731   return ferror (f) || fclose (f) != 0;
    9732 
    9733   ;
    9734   return 0;
    9735 }
    9736 _ACEOF
    9737 rm -f conftest$ac_exeext
    9738 if { (ac_try="$ac_link"
    9739 case "(($ac_try" in
    9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9741   *) ac_try_echo=$ac_try;;
    9742 esac
    9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9744 $as_echo "$ac_try_echo") >&5
    9745   (eval "$ac_link") 2>&5
    9746   ac_status=$?
    9747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    9749   { (case "(($ac_try" in
    9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9751   *) ac_try_echo=$ac_try;;
    9752 esac
    9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9754 $as_echo "$ac_try_echo") >&5
    9755   (eval "$ac_try") 2>&5
    9756   ac_status=$?
    9757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9758   (exit $ac_status); }; }; then
    9759   ac_cv_sizeof_int=`cat conftest.val`
    9760 else
    9761   $as_echo "$as_me: program exited with status $ac_status" >&5
    9762 $as_echo "$as_me: failed program was:" >&5
    9763 sed 's/^/| /' conftest.$ac_ext >&5
    9764 
    9765 ( exit $ac_status )
    9766 if test "$ac_cv_type_int" = yes; then
    9767      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    9768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9769 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
    9770 See \`config.log' for more details." >&5
    9771 $as_echo "$as_me: error: cannot compute sizeof (int)
    9772 See \`config.log' for more details." >&2;}
    9773    { (exit 77); exit 77; }; }; }
     8026as_fn_error 77 "cannot compute sizeof (int)
     8027See \`config.log' for more details" "$LINENO" 5; }
    97748028   else
    97758029     ac_cv_sizeof_int=0
    97768030   fi
    97778031fi
    9778 rm -rf conftest.dSYM
    9779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    9780 fi
    9781 rm -f conftest.val
    9782 fi
    9783 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
     8032
     8033fi
     8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
    97848035$as_echo "$ac_cv_sizeof_int" >&6; }
    97858036
     
    97958046# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    97968047# This bug is HP SR number 8606223364.
    9797 { $as_echo "$as_me:$LINENO: checking size of long" >&5
     8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
    97988049$as_echo_n "checking size of long... " >&6; }
    9799 if test "${ac_cv_sizeof_long+set}" = set; then
     8050if ${ac_cv_sizeof_long+:} false; then :
    98008051  $as_echo_n "(cached) " >&6
    98018052else
    9802   if test "$cross_compiling" = yes; then
    9803   # Depending upon the size, compute the lo and hi bounds.
    9804 cat >conftest.$ac_ext <<_ACEOF
    9805 /* confdefs.h.  */
    9806 _ACEOF
    9807 cat confdefs.h >>conftest.$ac_ext
    9808 cat >>conftest.$ac_ext <<_ACEOF
    9809 /* end confdefs.h.  */
    9810 $ac_includes_default
    9811 int
    9812 main ()
    9813 {
    9814 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
    9815 test_array [0] = 0
    9816 
    9817   ;
    9818   return 0;
    9819 }
    9820 _ACEOF
    9821 rm -f conftest.$ac_objext
    9822 if { (ac_try="$ac_compile"
    9823 case "(($ac_try" in
    9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9825   *) ac_try_echo=$ac_try;;
    9826 esac
    9827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9828 $as_echo "$ac_try_echo") >&5
    9829   (eval "$ac_compile") 2>conftest.er1
    9830   ac_status=$?
    9831   grep -v '^ *+' conftest.er1 >conftest.err
    9832   rm -f conftest.er1
    9833   cat conftest.err >&5
    9834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9835   (exit $ac_status); } && {
    9836          test -z "$ac_cxx_werror_flag" ||
    9837          test ! -s conftest.err
    9838        } && test -s conftest.$ac_objext; then
    9839   ac_lo=0 ac_mid=0
    9840   while :; do
    9841     cat >conftest.$ac_ext <<_ACEOF
    9842 /* confdefs.h.  */
    9843 _ACEOF
    9844 cat confdefs.h >>conftest.$ac_ext
    9845 cat >>conftest.$ac_ext <<_ACEOF
    9846 /* end confdefs.h.  */
    9847 $ac_includes_default
    9848 int
    9849 main ()
    9850 {
    9851 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
    9852 test_array [0] = 0
    9853 
    9854   ;
    9855   return 0;
    9856 }
    9857 _ACEOF
    9858 rm -f conftest.$ac_objext
    9859 if { (ac_try="$ac_compile"
    9860 case "(($ac_try" in
    9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9862   *) ac_try_echo=$ac_try;;
    9863 esac
    9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9865 $as_echo "$ac_try_echo") >&5
    9866   (eval "$ac_compile") 2>conftest.er1
    9867   ac_status=$?
    9868   grep -v '^ *+' conftest.er1 >conftest.err
    9869   rm -f conftest.er1
    9870   cat conftest.err >&5
    9871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9872   (exit $ac_status); } && {
    9873          test -z "$ac_cxx_werror_flag" ||
    9874          test ! -s conftest.err
    9875        } && test -s conftest.$ac_objext; then
    9876   ac_hi=$ac_mid; break
    9877 else
    9878   $as_echo "$as_me: failed program was:" >&5
    9879 sed 's/^/| /' conftest.$ac_ext >&5
    9880 
    9881         ac_lo=`expr $ac_mid + 1`
    9882                         if test $ac_lo -le $ac_mid; then
    9883                           ac_lo= ac_hi=
    9884                           break
    9885                         fi
    9886                         ac_mid=`expr 2 '*' $ac_mid + 1`
    9887 fi
    9888 
    9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9890   done
    9891 else
    9892   $as_echo "$as_me: failed program was:" >&5
    9893 sed 's/^/| /' conftest.$ac_ext >&5
    9894 
    9895         cat >conftest.$ac_ext <<_ACEOF
    9896 /* confdefs.h.  */
    9897 _ACEOF
    9898 cat confdefs.h >>conftest.$ac_ext
    9899 cat >>conftest.$ac_ext <<_ACEOF
    9900 /* end confdefs.h.  */
    9901 $ac_includes_default
    9902 int
    9903 main ()
    9904 {
    9905 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
    9906 test_array [0] = 0
    9907 
    9908   ;
    9909   return 0;
    9910 }
    9911 _ACEOF
    9912 rm -f conftest.$ac_objext
    9913 if { (ac_try="$ac_compile"
    9914 case "(($ac_try" in
    9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9916   *) ac_try_echo=$ac_try;;
    9917 esac
    9918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9919 $as_echo "$ac_try_echo") >&5
    9920   (eval "$ac_compile") 2>conftest.er1
    9921   ac_status=$?
    9922   grep -v '^ *+' conftest.er1 >conftest.err
    9923   rm -f conftest.er1
    9924   cat conftest.err >&5
    9925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9926   (exit $ac_status); } && {
    9927          test -z "$ac_cxx_werror_flag" ||
    9928          test ! -s conftest.err
    9929        } && test -s conftest.$ac_objext; then
    9930   ac_hi=-1 ac_mid=-1
    9931   while :; do
    9932     cat >conftest.$ac_ext <<_ACEOF
    9933 /* confdefs.h.  */
    9934 _ACEOF
    9935 cat confdefs.h >>conftest.$ac_ext
    9936 cat >>conftest.$ac_ext <<_ACEOF
    9937 /* end confdefs.h.  */
    9938 $ac_includes_default
    9939 int
    9940 main ()
    9941 {
    9942 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
    9943 test_array [0] = 0
    9944 
    9945   ;
    9946   return 0;
    9947 }
    9948 _ACEOF
    9949 rm -f conftest.$ac_objext
    9950 if { (ac_try="$ac_compile"
    9951 case "(($ac_try" in
    9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    9953   *) ac_try_echo=$ac_try;;
    9954 esac
    9955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    9956 $as_echo "$ac_try_echo") >&5
    9957   (eval "$ac_compile") 2>conftest.er1
    9958   ac_status=$?
    9959   grep -v '^ *+' conftest.er1 >conftest.err
    9960   rm -f conftest.er1
    9961   cat conftest.err >&5
    9962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9963   (exit $ac_status); } && {
    9964          test -z "$ac_cxx_werror_flag" ||
    9965          test ! -s conftest.err
    9966        } && test -s conftest.$ac_objext; then
    9967   ac_lo=$ac_mid; break
    9968 else
    9969   $as_echo "$as_me: failed program was:" >&5
    9970 sed 's/^/| /' conftest.$ac_ext >&5
    9971 
    9972         ac_hi=`expr '(' $ac_mid ')' - 1`
    9973                         if test $ac_mid -le $ac_hi; then
    9974                           ac_lo= ac_hi=
    9975                           break
    9976                         fi
    9977                         ac_mid=`expr 2 '*' $ac_mid`
    9978 fi
    9979 
    9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9981   done
    9982 else
    9983   $as_echo "$as_me: failed program was:" >&5
    9984 sed 's/^/| /' conftest.$ac_ext >&5
    9985 
    9986         ac_lo= ac_hi=
    9987 fi
    9988 
    9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9990 fi
    9991 
    9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9993 # Binary search between lo and hi bounds.
    9994 while test "x$ac_lo" != "x$ac_hi"; do
    9995   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    9996   cat >conftest.$ac_ext <<_ACEOF
    9997 /* confdefs.h.  */
    9998 _ACEOF
    9999 cat confdefs.h >>conftest.$ac_ext
    10000 cat >>conftest.$ac_ext <<_ACEOF
    10001 /* end confdefs.h.  */
    10002 $ac_includes_default
    10003 int
    10004 main ()
    10005 {
    10006 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
    10007 test_array [0] = 0
    10008 
    10009   ;
    10010   return 0;
    10011 }
    10012 _ACEOF
    10013 rm -f conftest.$ac_objext
    10014 if { (ac_try="$ac_compile"
    10015 case "(($ac_try" in
    10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10017   *) ac_try_echo=$ac_try;;
    10018 esac
    10019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10020 $as_echo "$ac_try_echo") >&5
    10021   (eval "$ac_compile") 2>conftest.er1
    10022   ac_status=$?
    10023   grep -v '^ *+' conftest.er1 >conftest.err
    10024   rm -f conftest.er1
    10025   cat conftest.err >&5
    10026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10027   (exit $ac_status); } && {
    10028          test -z "$ac_cxx_werror_flag" ||
    10029          test ! -s conftest.err
    10030        } && test -s conftest.$ac_objext; then
    10031   ac_hi=$ac_mid
    10032 else
    10033   $as_echo "$as_me: failed program was:" >&5
    10034 sed 's/^/| /' conftest.$ac_ext >&5
    10035 
    10036         ac_lo=`expr '(' $ac_mid ')' + 1`
    10037 fi
    10038 
    10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10040 done
    10041 case $ac_lo in
    10042 ?*) ac_cv_sizeof_long=$ac_lo;;
    10043 '') if test "$ac_cv_type_long" = yes; then
    10044      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     8053  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
     8054
     8055else
     8056  if test "$ac_cv_type_long" = yes; then
     8057     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    100458058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10046 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
    10047 See \`config.log' for more details." >&5
    10048 $as_echo "$as_me: error: cannot compute sizeof (long)
    10049 See \`config.log' for more details." >&2;}
    10050    { (exit 77); exit 77; }; }; }
    10051    else
    10052      ac_cv_sizeof_long=0
    10053    fi ;;
    10054 esac
    10055 else
    10056   cat >conftest.$ac_ext <<_ACEOF
    10057 /* confdefs.h.  */
    10058 _ACEOF
    10059 cat confdefs.h >>conftest.$ac_ext
    10060 cat >>conftest.$ac_ext <<_ACEOF
    10061 /* end confdefs.h.  */
    10062 $ac_includes_default
    10063 static long int longval () { return (long int) (sizeof (long)); }
    10064 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
    10065 #include <stdio.h>
    10066 #include <stdlib.h>
    10067 int
    10068 main ()
    10069 {
    10070 
    10071   FILE *f = fopen ("conftest.val", "w");
    10072   if (! f)
    10073     return 1;
    10074   if (((long int) (sizeof (long))) < 0)
    10075     {
    10076       long int i = longval ();
    10077       if (i != ((long int) (sizeof (long))))
    10078         return 1;
    10079       fprintf (f, "%ld", i);
    10080     }
    10081   else
    10082     {
    10083       unsigned long int i = ulongval ();
    10084       if (i != ((long int) (sizeof (long))))
    10085         return 1;
    10086       fprintf (f, "%lu", i);
    10087     }
    10088   /* Do not output a trailing newline, as this causes \r\n confusion
    10089      on some platforms.  */
    10090   return ferror (f) || fclose (f) != 0;
    10091 
    10092   ;
    10093   return 0;
    10094 }
    10095 _ACEOF
    10096 rm -f conftest$ac_exeext
    10097 if { (ac_try="$ac_link"
    10098 case "(($ac_try" in
    10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10100   *) ac_try_echo=$ac_try;;
    10101 esac
    10102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10103 $as_echo "$ac_try_echo") >&5
    10104   (eval "$ac_link") 2>&5
    10105   ac_status=$?
    10106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    10108   { (case "(($ac_try" in
    10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10110   *) ac_try_echo=$ac_try;;
    10111 esac
    10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10113 $as_echo "$ac_try_echo") >&5
    10114   (eval "$ac_try") 2>&5
    10115   ac_status=$?
    10116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10117   (exit $ac_status); }; }; then
    10118   ac_cv_sizeof_long=`cat conftest.val`
    10119 else
    10120   $as_echo "$as_me: program exited with status $ac_status" >&5
    10121 $as_echo "$as_me: failed program was:" >&5
    10122 sed 's/^/| /' conftest.$ac_ext >&5
    10123 
    10124 ( exit $ac_status )
    10125 if test "$ac_cv_type_long" = yes; then
    10126      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    10127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10128 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
    10129 See \`config.log' for more details." >&5
    10130 $as_echo "$as_me: error: cannot compute sizeof (long)
    10131 See \`config.log' for more details." >&2;}
    10132    { (exit 77); exit 77; }; }; }
     8059as_fn_error 77 "cannot compute sizeof (long)
     8060See \`config.log' for more details" "$LINENO" 5; }
    101338061   else
    101348062     ac_cv_sizeof_long=0
    101358063   fi
    101368064fi
    10137 rm -rf conftest.dSYM
    10138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    10139 fi
    10140 rm -f conftest.val
    10141 fi
    10142 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
     8065
     8066fi
     8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
    101438068$as_echo "$ac_cv_sizeof_long" >&6; }
    101448069
     
    101548079# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    101558080# This bug is HP SR number 8606223364.
    10156 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
     8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
    101578082$as_echo_n "checking size of long long... " >&6; }
    10158 if test "${ac_cv_sizeof_long_long+set}" = set; then
     8083if ${ac_cv_sizeof_long_long+:} false; then :
    101598084  $as_echo_n "(cached) " >&6
    101608085else
    10161   if test "$cross_compiling" = yes; then
    10162   # Depending upon the size, compute the lo and hi bounds.
    10163 cat >conftest.$ac_ext <<_ACEOF
    10164 /* confdefs.h.  */
    10165 _ACEOF
    10166 cat confdefs.h >>conftest.$ac_ext
    10167 cat >>conftest.$ac_ext <<_ACEOF
    10168 /* end confdefs.h.  */
    10169 $ac_includes_default
    10170 int
    10171 main ()
    10172 {
    10173 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
    10174 test_array [0] = 0
    10175 
    10176   ;
    10177   return 0;
    10178 }
    10179 _ACEOF
    10180 rm -f conftest.$ac_objext
    10181 if { (ac_try="$ac_compile"
    10182 case "(($ac_try" in
    10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10184   *) ac_try_echo=$ac_try;;
    10185 esac
    10186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10187 $as_echo "$ac_try_echo") >&5
    10188   (eval "$ac_compile") 2>conftest.er1
    10189   ac_status=$?
    10190   grep -v '^ *+' conftest.er1 >conftest.err
    10191   rm -f conftest.er1
    10192   cat conftest.err >&5
    10193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10194   (exit $ac_status); } && {
    10195          test -z "$ac_cxx_werror_flag" ||
    10196          test ! -s conftest.err
    10197        } && test -s conftest.$ac_objext; then
    10198   ac_lo=0 ac_mid=0
    10199   while :; do
    10200     cat >conftest.$ac_ext <<_ACEOF
    10201 /* confdefs.h.  */
    10202 _ACEOF
    10203 cat confdefs.h >>conftest.$ac_ext
    10204 cat >>conftest.$ac_ext <<_ACEOF
    10205 /* end confdefs.h.  */
    10206 $ac_includes_default
    10207 int
    10208 main ()
    10209 {
    10210 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
    10211 test_array [0] = 0
    10212 
    10213   ;
    10214   return 0;
    10215 }
    10216 _ACEOF
    10217 rm -f conftest.$ac_objext
    10218 if { (ac_try="$ac_compile"
    10219 case "(($ac_try" in
    10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10221   *) ac_try_echo=$ac_try;;
    10222 esac
    10223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10224 $as_echo "$ac_try_echo") >&5
    10225   (eval "$ac_compile") 2>conftest.er1
    10226   ac_status=$?
    10227   grep -v '^ *+' conftest.er1 >conftest.err
    10228   rm -f conftest.er1
    10229   cat conftest.err >&5
    10230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10231   (exit $ac_status); } && {
    10232          test -z "$ac_cxx_werror_flag" ||
    10233          test ! -s conftest.err
    10234        } && test -s conftest.$ac_objext; then
    10235   ac_hi=$ac_mid; break
    10236 else
    10237   $as_echo "$as_me: failed program was:" >&5
    10238 sed 's/^/| /' conftest.$ac_ext >&5
    10239 
    10240         ac_lo=`expr $ac_mid + 1`
    10241                         if test $ac_lo -le $ac_mid; then
    10242                           ac_lo= ac_hi=
    10243                           break
    10244                         fi
    10245                         ac_mid=`expr 2 '*' $ac_mid + 1`
    10246 fi
    10247 
    10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10249   done
    10250 else
    10251   $as_echo "$as_me: failed program was:" >&5
    10252 sed 's/^/| /' conftest.$ac_ext >&5
    10253 
    10254         cat >conftest.$ac_ext <<_ACEOF
    10255 /* confdefs.h.  */
    10256 _ACEOF
    10257 cat confdefs.h >>conftest.$ac_ext
    10258 cat >>conftest.$ac_ext <<_ACEOF
    10259 /* end confdefs.h.  */
    10260 $ac_includes_default
    10261 int
    10262 main ()
    10263 {
    10264 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
    10265 test_array [0] = 0
    10266 
    10267   ;
    10268   return 0;
    10269 }
    10270 _ACEOF
    10271 rm -f conftest.$ac_objext
    10272 if { (ac_try="$ac_compile"
    10273 case "(($ac_try" in
    10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10275   *) ac_try_echo=$ac_try;;
    10276 esac
    10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10278 $as_echo "$ac_try_echo") >&5
    10279   (eval "$ac_compile") 2>conftest.er1
    10280   ac_status=$?
    10281   grep -v '^ *+' conftest.er1 >conftest.err
    10282   rm -f conftest.er1
    10283   cat conftest.err >&5
    10284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10285   (exit $ac_status); } && {
    10286          test -z "$ac_cxx_werror_flag" ||
    10287          test ! -s conftest.err
    10288        } && test -s conftest.$ac_objext; then
    10289   ac_hi=-1 ac_mid=-1
    10290   while :; do
    10291     cat >conftest.$ac_ext <<_ACEOF
    10292 /* confdefs.h.  */
    10293 _ACEOF
    10294 cat confdefs.h >>conftest.$ac_ext
    10295 cat >>conftest.$ac_ext <<_ACEOF
    10296 /* end confdefs.h.  */
    10297 $ac_includes_default
    10298 int
    10299 main ()
    10300 {
    10301 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
    10302 test_array [0] = 0
    10303 
    10304   ;
    10305   return 0;
    10306 }
    10307 _ACEOF
    10308 rm -f conftest.$ac_objext
    10309 if { (ac_try="$ac_compile"
    10310 case "(($ac_try" in
    10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10312   *) ac_try_echo=$ac_try;;
    10313 esac
    10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10315 $as_echo "$ac_try_echo") >&5
    10316   (eval "$ac_compile") 2>conftest.er1
    10317   ac_status=$?
    10318   grep -v '^ *+' conftest.er1 >conftest.err
    10319   rm -f conftest.er1
    10320   cat conftest.err >&5
    10321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10322   (exit $ac_status); } && {
    10323          test -z "$ac_cxx_werror_flag" ||
    10324          test ! -s conftest.err
    10325        } && test -s conftest.$ac_objext; then
    10326   ac_lo=$ac_mid; break
    10327 else
    10328   $as_echo "$as_me: failed program was:" >&5
    10329 sed 's/^/| /' conftest.$ac_ext >&5
    10330 
    10331         ac_hi=`expr '(' $ac_mid ')' - 1`
    10332                         if test $ac_mid -le $ac_hi; then
    10333                           ac_lo= ac_hi=
    10334                           break
    10335                         fi
    10336                         ac_mid=`expr 2 '*' $ac_mid`
    10337 fi
    10338 
    10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10340   done
    10341 else
    10342   $as_echo "$as_me: failed program was:" >&5
    10343 sed 's/^/| /' conftest.$ac_ext >&5
    10344 
    10345         ac_lo= ac_hi=
    10346 fi
    10347 
    10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10349 fi
    10350 
    10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10352 # Binary search between lo and hi bounds.
    10353 while test "x$ac_lo" != "x$ac_hi"; do
    10354   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    10355   cat >conftest.$ac_ext <<_ACEOF
    10356 /* confdefs.h.  */
    10357 _ACEOF
    10358 cat confdefs.h >>conftest.$ac_ext
    10359 cat >>conftest.$ac_ext <<_ACEOF
    10360 /* end confdefs.h.  */
    10361 $ac_includes_default
    10362 int
    10363 main ()
    10364 {
    10365 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
    10366 test_array [0] = 0
    10367 
    10368   ;
    10369   return 0;
    10370 }
    10371 _ACEOF
    10372 rm -f conftest.$ac_objext
    10373 if { (ac_try="$ac_compile"
    10374 case "(($ac_try" in
    10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10376   *) ac_try_echo=$ac_try;;
    10377 esac
    10378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10379 $as_echo "$ac_try_echo") >&5
    10380   (eval "$ac_compile") 2>conftest.er1
    10381   ac_status=$?
    10382   grep -v '^ *+' conftest.er1 >conftest.err
    10383   rm -f conftest.er1
    10384   cat conftest.err >&5
    10385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10386   (exit $ac_status); } && {
    10387          test -z "$ac_cxx_werror_flag" ||
    10388          test ! -s conftest.err
    10389        } && test -s conftest.$ac_objext; then
    10390   ac_hi=$ac_mid
    10391 else
    10392   $as_echo "$as_me: failed program was:" >&5
    10393 sed 's/^/| /' conftest.$ac_ext >&5
    10394 
    10395         ac_lo=`expr '(' $ac_mid ')' + 1`
    10396 fi
    10397 
    10398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10399 done
    10400 case $ac_lo in
    10401 ?*) ac_cv_sizeof_long_long=$ac_lo;;
    10402 '') if test "$ac_cv_type_long_long" = yes; then
    10403      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     8086  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
     8087
     8088else
     8089  if test "$ac_cv_type_long_long" = yes; then
     8090     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    104048091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10405 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
    10406 See \`config.log' for more details." >&5
    10407 $as_echo "$as_me: error: cannot compute sizeof (long long)
    10408 See \`config.log' for more details." >&2;}
    10409    { (exit 77); exit 77; }; }; }
    10410    else
    10411      ac_cv_sizeof_long_long=0
    10412    fi ;;
    10413 esac
    10414 else
    10415   cat >conftest.$ac_ext <<_ACEOF
    10416 /* confdefs.h.  */
    10417 _ACEOF
    10418 cat confdefs.h >>conftest.$ac_ext
    10419 cat >>conftest.$ac_ext <<_ACEOF
    10420 /* end confdefs.h.  */
    10421 $ac_includes_default
    10422 static long int longval () { return (long int) (sizeof (long long)); }
    10423 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
    10424 #include <stdio.h>
    10425 #include <stdlib.h>
    10426 int
    10427 main ()
    10428 {
    10429 
    10430   FILE *f = fopen ("conftest.val", "w");
    10431   if (! f)
    10432     return 1;
    10433   if (((long int) (sizeof (long long))) < 0)
    10434     {
    10435       long int i = longval ();
    10436       if (i != ((long int) (sizeof (long long))))
    10437         return 1;
    10438       fprintf (f, "%ld", i);
    10439     }
    10440   else
    10441     {
    10442       unsigned long int i = ulongval ();
    10443       if (i != ((long int) (sizeof (long long))))
    10444         return 1;
    10445       fprintf (f, "%lu", i);
    10446     }
    10447   /* Do not output a trailing newline, as this causes \r\n confusion
    10448      on some platforms.  */
    10449   return ferror (f) || fclose (f) != 0;
    10450 
    10451   ;
    10452   return 0;
    10453 }
    10454 _ACEOF
    10455 rm -f conftest$ac_exeext
    10456 if { (ac_try="$ac_link"
    10457 case "(($ac_try" in
    10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10459   *) ac_try_echo=$ac_try;;
    10460 esac
    10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10462 $as_echo "$ac_try_echo") >&5
    10463   (eval "$ac_link") 2>&5
    10464   ac_status=$?
    10465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    10467   { (case "(($ac_try" in
    10468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10469   *) ac_try_echo=$ac_try;;
    10470 esac
    10471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10472 $as_echo "$ac_try_echo") >&5
    10473   (eval "$ac_try") 2>&5
    10474   ac_status=$?
    10475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10476   (exit $ac_status); }; }; then
    10477   ac_cv_sizeof_long_long=`cat conftest.val`
    10478 else
    10479   $as_echo "$as_me: program exited with status $ac_status" >&5
    10480 $as_echo "$as_me: failed program was:" >&5
    10481 sed 's/^/| /' conftest.$ac_ext >&5
    10482 
    10483 ( exit $ac_status )
    10484 if test "$ac_cv_type_long_long" = yes; then
    10485      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    10486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10487 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
    10488 See \`config.log' for more details." >&5
    10489 $as_echo "$as_me: error: cannot compute sizeof (long long)
    10490 See \`config.log' for more details." >&2;}
    10491    { (exit 77); exit 77; }; }; }
     8092as_fn_error 77 "cannot compute sizeof (long long)
     8093See \`config.log' for more details" "$LINENO" 5; }
    104928094   else
    104938095     ac_cv_sizeof_long_long=0
    104948096   fi
    104958097fi
    10496 rm -rf conftest.dSYM
    10497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    10498 fi
    10499 rm -f conftest.val
    10500 fi
    10501 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
     8098
     8099fi
     8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
    105028101$as_echo "$ac_cv_sizeof_long_long" >&6; }
    105038102
     
    105138112# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    105148113# This bug is HP SR number 8606223364.
    10515 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
     8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
    105168115$as_echo_n "checking size of void *... " >&6; }
    10517 if test "${ac_cv_sizeof_void_p+set}" = set; then
     8116if ${ac_cv_sizeof_void_p+:} false; then :
    105188117  $as_echo_n "(cached) " >&6
    105198118else
    10520   if test "$cross_compiling" = yes; then
    10521   # Depending upon the size, compute the lo and hi bounds.
    10522 cat >conftest.$ac_ext <<_ACEOF
    10523 /* confdefs.h.  */
    10524 _ACEOF
    10525 cat confdefs.h >>conftest.$ac_ext
    10526 cat >>conftest.$ac_ext <<_ACEOF
    10527 /* end confdefs.h.  */
    10528 $ac_includes_default
    10529 int
    10530 main ()
    10531 {
    10532 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
    10533 test_array [0] = 0
    10534 
    10535   ;
    10536   return 0;
    10537 }
    10538 _ACEOF
    10539 rm -f conftest.$ac_objext
    10540 if { (ac_try="$ac_compile"
    10541 case "(($ac_try" in
    10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10543   *) ac_try_echo=$ac_try;;
    10544 esac
    10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10546 $as_echo "$ac_try_echo") >&5
    10547   (eval "$ac_compile") 2>conftest.er1
    10548   ac_status=$?
    10549   grep -v '^ *+' conftest.er1 >conftest.err
    10550   rm -f conftest.er1
    10551   cat conftest.err >&5
    10552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10553   (exit $ac_status); } && {
    10554          test -z "$ac_cxx_werror_flag" ||
    10555          test ! -s conftest.err
    10556        } && test -s conftest.$ac_objext; then
    10557   ac_lo=0 ac_mid=0
    10558   while :; do
    10559     cat >conftest.$ac_ext <<_ACEOF
    10560 /* confdefs.h.  */
    10561 _ACEOF
    10562 cat confdefs.h >>conftest.$ac_ext
    10563 cat >>conftest.$ac_ext <<_ACEOF
    10564 /* end confdefs.h.  */
    10565 $ac_includes_default
    10566 int
    10567 main ()
    10568 {
    10569 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
    10570 test_array [0] = 0
    10571 
    10572   ;
    10573   return 0;
    10574 }
    10575 _ACEOF
    10576 rm -f conftest.$ac_objext
    10577 if { (ac_try="$ac_compile"
    10578 case "(($ac_try" in
    10579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10580   *) ac_try_echo=$ac_try;;
    10581 esac
    10582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10583 $as_echo "$ac_try_echo") >&5
    10584   (eval "$ac_compile") 2>conftest.er1
    10585   ac_status=$?
    10586   grep -v '^ *+' conftest.er1 >conftest.err
    10587   rm -f conftest.er1
    10588   cat conftest.err >&5
    10589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10590   (exit $ac_status); } && {
    10591          test -z "$ac_cxx_werror_flag" ||
    10592          test ! -s conftest.err
    10593        } && test -s conftest.$ac_objext; then
    10594   ac_hi=$ac_mid; break
    10595 else
    10596   $as_echo "$as_me: failed program was:" >&5
    10597 sed 's/^/| /' conftest.$ac_ext >&5
    10598 
    10599         ac_lo=`expr $ac_mid + 1`
    10600                         if test $ac_lo -le $ac_mid; then
    10601                           ac_lo= ac_hi=
    10602                           break
    10603                         fi
    10604                         ac_mid=`expr 2 '*' $ac_mid + 1`
    10605 fi
    10606 
    10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10608   done
    10609 else
    10610   $as_echo "$as_me: failed program was:" >&5
    10611 sed 's/^/| /' conftest.$ac_ext >&5
    10612 
    10613         cat >conftest.$ac_ext <<_ACEOF
    10614 /* confdefs.h.  */
    10615 _ACEOF
    10616 cat confdefs.h >>conftest.$ac_ext
    10617 cat >>conftest.$ac_ext <<_ACEOF
    10618 /* end confdefs.h.  */
    10619 $ac_includes_default
    10620 int
    10621 main ()
    10622 {
    10623 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
    10624 test_array [0] = 0
    10625 
    10626   ;
    10627   return 0;
    10628 }
    10629 _ACEOF
    10630 rm -f conftest.$ac_objext
    10631 if { (ac_try="$ac_compile"
    10632 case "(($ac_try" in
    10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10634   *) ac_try_echo=$ac_try;;
    10635 esac
    10636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10637 $as_echo "$ac_try_echo") >&5
    10638   (eval "$ac_compile") 2>conftest.er1
    10639   ac_status=$?
    10640   grep -v '^ *+' conftest.er1 >conftest.err
    10641   rm -f conftest.er1
    10642   cat conftest.err >&5
    10643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10644   (exit $ac_status); } && {
    10645          test -z "$ac_cxx_werror_flag" ||
    10646          test ! -s conftest.err
    10647        } && test -s conftest.$ac_objext; then
    10648   ac_hi=-1 ac_mid=-1
    10649   while :; do
    10650     cat >conftest.$ac_ext <<_ACEOF
    10651 /* confdefs.h.  */
    10652 _ACEOF
    10653 cat confdefs.h >>conftest.$ac_ext
    10654 cat >>conftest.$ac_ext <<_ACEOF
    10655 /* end confdefs.h.  */
    10656 $ac_includes_default
    10657 int
    10658 main ()
    10659 {
    10660 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
    10661 test_array [0] = 0
    10662 
    10663   ;
    10664   return 0;
    10665 }
    10666 _ACEOF
    10667 rm -f conftest.$ac_objext
    10668 if { (ac_try="$ac_compile"
    10669 case "(($ac_try" in
    10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10671   *) ac_try_echo=$ac_try;;
    10672 esac
    10673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10674 $as_echo "$ac_try_echo") >&5
    10675   (eval "$ac_compile") 2>conftest.er1
    10676   ac_status=$?
    10677   grep -v '^ *+' conftest.er1 >conftest.err
    10678   rm -f conftest.er1
    10679   cat conftest.err >&5
    10680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10681   (exit $ac_status); } && {
    10682          test -z "$ac_cxx_werror_flag" ||
    10683          test ! -s conftest.err
    10684        } && test -s conftest.$ac_objext; then
    10685   ac_lo=$ac_mid; break
    10686 else
    10687   $as_echo "$as_me: failed program was:" >&5
    10688 sed 's/^/| /' conftest.$ac_ext >&5
    10689 
    10690         ac_hi=`expr '(' $ac_mid ')' - 1`
    10691                         if test $ac_mid -le $ac_hi; then
    10692                           ac_lo= ac_hi=
    10693                           break
    10694                         fi
    10695                         ac_mid=`expr 2 '*' $ac_mid`
    10696 fi
    10697 
    10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10699   done
    10700 else
    10701   $as_echo "$as_me: failed program was:" >&5
    10702 sed 's/^/| /' conftest.$ac_ext >&5
    10703 
    10704         ac_lo= ac_hi=
    10705 fi
    10706 
    10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10708 fi
    10709 
    10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10711 # Binary search between lo and hi bounds.
    10712 while test "x$ac_lo" != "x$ac_hi"; do
    10713   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    10714   cat >conftest.$ac_ext <<_ACEOF
    10715 /* confdefs.h.  */
    10716 _ACEOF
    10717 cat confdefs.h >>conftest.$ac_ext
    10718 cat >>conftest.$ac_ext <<_ACEOF
    10719 /* end confdefs.h.  */
    10720 $ac_includes_default
    10721 int
    10722 main ()
    10723 {
    10724 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
    10725 test_array [0] = 0
    10726 
    10727   ;
    10728   return 0;
    10729 }
    10730 _ACEOF
    10731 rm -f conftest.$ac_objext
    10732 if { (ac_try="$ac_compile"
    10733 case "(($ac_try" in
    10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10735   *) ac_try_echo=$ac_try;;
    10736 esac
    10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10738 $as_echo "$ac_try_echo") >&5
    10739   (eval "$ac_compile") 2>conftest.er1
    10740   ac_status=$?
    10741   grep -v '^ *+' conftest.er1 >conftest.err
    10742   rm -f conftest.er1
    10743   cat conftest.err >&5
    10744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10745   (exit $ac_status); } && {
    10746          test -z "$ac_cxx_werror_flag" ||
    10747          test ! -s conftest.err
    10748        } && test -s conftest.$ac_objext; then
    10749   ac_hi=$ac_mid
    10750 else
    10751   $as_echo "$as_me: failed program was:" >&5
    10752 sed 's/^/| /' conftest.$ac_ext >&5
    10753 
    10754         ac_lo=`expr '(' $ac_mid ')' + 1`
    10755 fi
    10756 
    10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10758 done
    10759 case $ac_lo in
    10760 ?*) ac_cv_sizeof_void_p=$ac_lo;;
    10761 '') if test "$ac_cv_type_void_p" = yes; then
    10762      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     8119  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
     8120
     8121else
     8122  if test "$ac_cv_type_void_p" = yes; then
     8123     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    107638124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10764 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
    10765 See \`config.log' for more details." >&5
    10766 $as_echo "$as_me: error: cannot compute sizeof (void *)
    10767 See \`config.log' for more details." >&2;}
    10768    { (exit 77); exit 77; }; }; }
    10769    else
    10770      ac_cv_sizeof_void_p=0
    10771    fi ;;
    10772 esac
    10773 else
    10774   cat >conftest.$ac_ext <<_ACEOF
    10775 /* confdefs.h.  */
    10776 _ACEOF
    10777 cat confdefs.h >>conftest.$ac_ext
    10778 cat >>conftest.$ac_ext <<_ACEOF
    10779 /* end confdefs.h.  */
    10780 $ac_includes_default
    10781 static long int longval () { return (long int) (sizeof (void *)); }
    10782 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
    10783 #include <stdio.h>
    10784 #include <stdlib.h>
    10785 int
    10786 main ()
    10787 {
    10788 
    10789   FILE *f = fopen ("conftest.val", "w");
    10790   if (! f)
    10791     return 1;
    10792   if (((long int) (sizeof (void *))) < 0)
    10793     {
    10794       long int i = longval ();
    10795       if (i != ((long int) (sizeof (void *))))
    10796         return 1;
    10797       fprintf (f, "%ld", i);
    10798     }
    10799   else
    10800     {
    10801       unsigned long int i = ulongval ();
    10802       if (i != ((long int) (sizeof (void *))))
    10803         return 1;
    10804       fprintf (f, "%lu", i);
    10805     }
    10806   /* Do not output a trailing newline, as this causes \r\n confusion
    10807      on some platforms.  */
    10808   return ferror (f) || fclose (f) != 0;
    10809 
    10810   ;
    10811   return 0;
    10812 }
    10813 _ACEOF
    10814 rm -f conftest$ac_exeext
    10815 if { (ac_try="$ac_link"
    10816 case "(($ac_try" in
    10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10818   *) ac_try_echo=$ac_try;;
    10819 esac
    10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10821 $as_echo "$ac_try_echo") >&5
    10822   (eval "$ac_link") 2>&5
    10823   ac_status=$?
    10824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    10826   { (case "(($ac_try" in
    10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10828   *) ac_try_echo=$ac_try;;
    10829 esac
    10830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10831 $as_echo "$ac_try_echo") >&5
    10832   (eval "$ac_try") 2>&5
    10833   ac_status=$?
    10834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10835   (exit $ac_status); }; }; then
    10836   ac_cv_sizeof_void_p=`cat conftest.val`
    10837 else
    10838   $as_echo "$as_me: program exited with status $ac_status" >&5
    10839 $as_echo "$as_me: failed program was:" >&5
    10840 sed 's/^/| /' conftest.$ac_ext >&5
    10841 
    10842 ( exit $ac_status )
    10843 if test "$ac_cv_type_void_p" = yes; then
    10844      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    10845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    10846 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
    10847 See \`config.log' for more details." >&5
    10848 $as_echo "$as_me: error: cannot compute sizeof (void *)
    10849 See \`config.log' for more details." >&2;}
    10850    { (exit 77); exit 77; }; }; }
     8125as_fn_error 77 "cannot compute sizeof (void *)
     8126See \`config.log' for more details" "$LINENO" 5; }
    108518127   else
    108528128     ac_cv_sizeof_void_p=0
    108538129   fi
    108548130fi
    10855 rm -rf conftest.dSYM
    10856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    10857 fi
    10858 rm -f conftest.val
    10859 fi
    10860 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
     8131
     8132fi
     8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
    108618134$as_echo "$ac_cv_sizeof_void_p" >&6; }
    108628135
     
    108728145# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    108738146# This bug is HP SR number 8606223364.
    10874 { $as_echo "$as_me:$LINENO: checking size of float" >&5
     8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
    108758148$as_echo_n "checking size of float... " >&6; }
    10876 if test "${ac_cv_sizeof_float+set}" = set; then
     8149if ${ac_cv_sizeof_float+:} false; then :
    108778150  $as_echo_n "(cached) " >&6
    108788151else
    10879   if test "$cross_compiling" = yes; then
    10880   # Depending upon the size, compute the lo and hi bounds.
    10881 cat >conftest.$ac_ext <<_ACEOF
    10882 /* confdefs.h.  */
    10883 _ACEOF
    10884 cat confdefs.h >>conftest.$ac_ext
    10885 cat >>conftest.$ac_ext <<_ACEOF
    10886 /* end confdefs.h.  */
    10887 $ac_includes_default
    10888 int
    10889 main ()
    10890 {
    10891 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
    10892 test_array [0] = 0
    10893 
    10894   ;
    10895   return 0;
    10896 }
    10897 _ACEOF
    10898 rm -f conftest.$ac_objext
    10899 if { (ac_try="$ac_compile"
    10900 case "(($ac_try" in
    10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10902   *) ac_try_echo=$ac_try;;
    10903 esac
    10904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10905 $as_echo "$ac_try_echo") >&5
    10906   (eval "$ac_compile") 2>conftest.er1
    10907   ac_status=$?
    10908   grep -v '^ *+' conftest.er1 >conftest.err
    10909   rm -f conftest.er1
    10910   cat conftest.err >&5
    10911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10912   (exit $ac_status); } && {
    10913          test -z "$ac_cxx_werror_flag" ||
    10914          test ! -s conftest.err
    10915        } && test -s conftest.$ac_objext; then
    10916   ac_lo=0 ac_mid=0
    10917   while :; do
    10918     cat >conftest.$ac_ext <<_ACEOF
    10919 /* confdefs.h.  */
    10920 _ACEOF
    10921 cat confdefs.h >>conftest.$ac_ext
    10922 cat >>conftest.$ac_ext <<_ACEOF
    10923 /* end confdefs.h.  */
    10924 $ac_includes_default
    10925 int
    10926 main ()
    10927 {
    10928 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
    10929 test_array [0] = 0
    10930 
    10931   ;
    10932   return 0;
    10933 }
    10934 _ACEOF
    10935 rm -f conftest.$ac_objext
    10936 if { (ac_try="$ac_compile"
    10937 case "(($ac_try" in
    10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10939   *) ac_try_echo=$ac_try;;
    10940 esac
    10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10942 $as_echo "$ac_try_echo") >&5
    10943   (eval "$ac_compile") 2>conftest.er1
    10944   ac_status=$?
    10945   grep -v '^ *+' conftest.er1 >conftest.err
    10946   rm -f conftest.er1
    10947   cat conftest.err >&5
    10948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10949   (exit $ac_status); } && {
    10950          test -z "$ac_cxx_werror_flag" ||
    10951          test ! -s conftest.err
    10952        } && test -s conftest.$ac_objext; then
    10953   ac_hi=$ac_mid; break
    10954 else
    10955   $as_echo "$as_me: failed program was:" >&5
    10956 sed 's/^/| /' conftest.$ac_ext >&5
    10957 
    10958         ac_lo=`expr $ac_mid + 1`
    10959                         if test $ac_lo -le $ac_mid; then
    10960                           ac_lo= ac_hi=
    10961                           break
    10962                         fi
    10963                         ac_mid=`expr 2 '*' $ac_mid + 1`
    10964 fi
    10965 
    10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10967   done
    10968 else
    10969   $as_echo "$as_me: failed program was:" >&5
    10970 sed 's/^/| /' conftest.$ac_ext >&5
    10971 
    10972         cat >conftest.$ac_ext <<_ACEOF
    10973 /* confdefs.h.  */
    10974 _ACEOF
    10975 cat confdefs.h >>conftest.$ac_ext
    10976 cat >>conftest.$ac_ext <<_ACEOF
    10977 /* end confdefs.h.  */
    10978 $ac_includes_default
    10979 int
    10980 main ()
    10981 {
    10982 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
    10983 test_array [0] = 0
    10984 
    10985   ;
    10986   return 0;
    10987 }
    10988 _ACEOF
    10989 rm -f conftest.$ac_objext
    10990 if { (ac_try="$ac_compile"
    10991 case "(($ac_try" in
    10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    10993   *) ac_try_echo=$ac_try;;
    10994 esac
    10995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    10996 $as_echo "$ac_try_echo") >&5
    10997   (eval "$ac_compile") 2>conftest.er1
    10998   ac_status=$?
    10999   grep -v '^ *+' conftest.er1 >conftest.err
    11000   rm -f conftest.er1
    11001   cat conftest.err >&5
    11002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11003   (exit $ac_status); } && {
    11004          test -z "$ac_cxx_werror_flag" ||
    11005          test ! -s conftest.err
    11006        } && test -s conftest.$ac_objext; then
    11007   ac_hi=-1 ac_mid=-1
    11008   while :; do
    11009     cat >conftest.$ac_ext <<_ACEOF
    11010 /* confdefs.h.  */
    11011 _ACEOF
    11012 cat confdefs.h >>conftest.$ac_ext
    11013 cat >>conftest.$ac_ext <<_ACEOF
    11014 /* end confdefs.h.  */
    11015 $ac_includes_default
    11016 int
    11017 main ()
    11018 {
    11019 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
    11020 test_array [0] = 0
    11021 
    11022   ;
    11023   return 0;
    11024 }
    11025 _ACEOF
    11026 rm -f conftest.$ac_objext
    11027 if { (ac_try="$ac_compile"
    11028 case "(($ac_try" in
    11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11030   *) ac_try_echo=$ac_try;;
    11031 esac
    11032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11033 $as_echo "$ac_try_echo") >&5
    11034   (eval "$ac_compile") 2>conftest.er1
    11035   ac_status=$?
    11036   grep -v '^ *+' conftest.er1 >conftest.err
    11037   rm -f conftest.er1
    11038   cat conftest.err >&5
    11039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11040   (exit $ac_status); } && {
    11041          test -z "$ac_cxx_werror_flag" ||
    11042          test ! -s conftest.err
    11043        } && test -s conftest.$ac_objext; then
    11044   ac_lo=$ac_mid; break
    11045 else
    11046   $as_echo "$as_me: failed program was:" >&5
    11047 sed 's/^/| /' conftest.$ac_ext >&5
    11048 
    11049         ac_hi=`expr '(' $ac_mid ')' - 1`
    11050                         if test $ac_mid -le $ac_hi; then
    11051                           ac_lo= ac_hi=
    11052                           break
    11053                         fi
    11054                         ac_mid=`expr 2 '*' $ac_mid`
    11055 fi
    11056 
    11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11058   done
    11059 else
    11060   $as_echo "$as_me: failed program was:" >&5
    11061 sed 's/^/| /' conftest.$ac_ext >&5
    11062 
    11063         ac_lo= ac_hi=
    11064 fi
    11065 
    11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11067 fi
    11068 
    11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11070 # Binary search between lo and hi bounds.
    11071 while test "x$ac_lo" != "x$ac_hi"; do
    11072   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    11073   cat >conftest.$ac_ext <<_ACEOF
    11074 /* confdefs.h.  */
    11075 _ACEOF
    11076 cat confdefs.h >>conftest.$ac_ext
    11077 cat >>conftest.$ac_ext <<_ACEOF
    11078 /* end confdefs.h.  */
    11079 $ac_includes_default
    11080 int
    11081 main ()
    11082 {
    11083 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
    11084 test_array [0] = 0
    11085 
    11086   ;
    11087   return 0;
    11088 }
    11089 _ACEOF
    11090 rm -f conftest.$ac_objext
    11091 if { (ac_try="$ac_compile"
    11092 case "(($ac_try" in
    11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11094   *) ac_try_echo=$ac_try;;
    11095 esac
    11096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11097 $as_echo "$ac_try_echo") >&5
    11098   (eval "$ac_compile") 2>conftest.er1
    11099   ac_status=$?
    11100   grep -v '^ *+' conftest.er1 >conftest.err
    11101   rm -f conftest.er1
    11102   cat conftest.err >&5
    11103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11104   (exit $ac_status); } && {
    11105          test -z "$ac_cxx_werror_flag" ||
    11106          test ! -s conftest.err
    11107        } && test -s conftest.$ac_objext; then
    11108   ac_hi=$ac_mid
    11109 else
    11110   $as_echo "$as_me: failed program was:" >&5
    11111 sed 's/^/| /' conftest.$ac_ext >&5
    11112 
    11113         ac_lo=`expr '(' $ac_mid ')' + 1`
    11114 fi
    11115 
    11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11117 done
    11118 case $ac_lo in
    11119 ?*) ac_cv_sizeof_float=$ac_lo;;
    11120 '') if test "$ac_cv_type_float" = yes; then
    11121      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     8152  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
     8153
     8154else
     8155  if test "$ac_cv_type_float" = yes; then
     8156     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    111228157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    11123 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
    11124 See \`config.log' for more details." >&5
    11125 $as_echo "$as_me: error: cannot compute sizeof (float)
    11126 See \`config.log' for more details." >&2;}
    11127    { (exit 77); exit 77; }; }; }
    11128    else
    11129      ac_cv_sizeof_float=0
    11130    fi ;;
    11131 esac
    11132 else
    11133   cat >conftest.$ac_ext <<_ACEOF
    11134 /* confdefs.h.  */
    11135 _ACEOF
    11136 cat confdefs.h >>conftest.$ac_ext
    11137 cat >>conftest.$ac_ext <<_ACEOF
    11138 /* end confdefs.h.  */
    11139 $ac_includes_default
    11140 static long int longval () { return (long int) (sizeof (float)); }
    11141 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
    11142 #include <stdio.h>
    11143 #include <stdlib.h>
    11144 int
    11145 main ()
    11146 {
    11147 
    11148   FILE *f = fopen ("conftest.val", "w");
    11149   if (! f)
    11150     return 1;
    11151   if (((long int) (sizeof (float))) < 0)
    11152     {
    11153       long int i = longval ();
    11154       if (i != ((long int) (sizeof (float))))
    11155         return 1;
    11156       fprintf (f, "%ld", i);
    11157     }
    11158   else
    11159     {
    11160       unsigned long int i = ulongval ();
    11161       if (i != ((long int) (sizeof (float))))
    11162         return 1;
    11163       fprintf (f, "%lu", i);
    11164     }
    11165   /* Do not output a trailing newline, as this causes \r\n confusion
    11166      on some platforms.  */
    11167   return ferror (f) || fclose (f) != 0;
    11168 
    11169   ;
    11170   return 0;
    11171 }
    11172 _ACEOF
    11173 rm -f conftest$ac_exeext
    11174 if { (ac_try="$ac_link"
    11175 case "(($ac_try" in
    11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11177   *) ac_try_echo=$ac_try;;
    11178 esac
    11179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11180 $as_echo "$ac_try_echo") >&5
    11181   (eval "$ac_link") 2>&5
    11182   ac_status=$?
    11183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    11185   { (case "(($ac_try" in
    11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11187   *) ac_try_echo=$ac_try;;
    11188 esac
    11189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11190 $as_echo "$ac_try_echo") >&5
    11191   (eval "$ac_try") 2>&5
    11192   ac_status=$?
    11193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11194   (exit $ac_status); }; }; then
    11195   ac_cv_sizeof_float=`cat conftest.val`
    11196 else
    11197   $as_echo "$as_me: program exited with status $ac_status" >&5
    11198 $as_echo "$as_me: failed program was:" >&5
    11199 sed 's/^/| /' conftest.$ac_ext >&5
    11200 
    11201 ( exit $ac_status )
    11202 if test "$ac_cv_type_float" = yes; then
    11203      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    11204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    11205 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
    11206 See \`config.log' for more details." >&5
    11207 $as_echo "$as_me: error: cannot compute sizeof (float)
    11208 See \`config.log' for more details." >&2;}
    11209    { (exit 77); exit 77; }; }; }
     8158as_fn_error 77 "cannot compute sizeof (float)
     8159See \`config.log' for more details" "$LINENO" 5; }
    112108160   else
    112118161     ac_cv_sizeof_float=0
    112128162   fi
    112138163fi
    11214 rm -rf conftest.dSYM
    11215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    11216 fi
    11217 rm -f conftest.val
    11218 fi
    11219 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
     8164
     8165fi
     8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
    112208167$as_echo "$ac_cv_sizeof_float" >&6; }
    112218168
     
    112758222
    112768223RP_DIR=""
    11277 { $as_echo "$as_me:$LINENO: checking for rappture" >&5
     8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5
    112788225$as_echo_n "checking for rappture... " >&6; }
    112798226if test "$with_rappture" == "yes" ; then
     
    112848231      RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2"
    112858232      RP_LIB_DIR="$dir/lib"
    11286       { $as_echo "$as_me:$LINENO: result: $dir" >&5
     8233      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
    112878234$as_echo "$dir" >&6; }
    112888235      break
     
    112918238else
    112928239  if test ! -d "$with_rappture" ; then
    11293     { { $as_echo "$as_me:$LINENO: error: --with-rappture: no such directory $with_rappture" >&5
    11294 $as_echo "$as_me: error: --with-rappture: no such directory $with_rappture" >&2;}
    11295    { (exit 1); exit 1; }; }
     8240    as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5
    112968241  fi
    112978242  RP_DIR=$with_rappture
     
    113008245fi
    113018246if test "x${RP_DIR}" = "x" ; then
    11302   { { $as_echo "$as_me:$LINENO: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&5
    11303 $as_echo "$as_me: error: cannot find rappture.h and librappture2.a, try using --with-rappture" >&2;}
    11304    { (exit 1); exit 1; }; }
    11305 else
    11306   { $as_echo "$as_me:$LINENO: result: $with_rappture" >&5
     8247  as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5
     8248else
     8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5
    113078250$as_echo "$with_rappture" >&6; }
    113088251fi
     
    113398282CPPFLAGS=$VTK_INC_SPEC
    113408283
    11341 
    113428284for ac_header in vtkSmartPointer.h
    11343 do
    11344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    11345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    11346   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    11347 $as_echo_n "checking for $ac_header... " >&6; }
    11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    11349   $as_echo_n "(cached) " >&6
    11350 fi
    11351 ac_res=`eval 'as_val=${'$as_ac_Header'}
    11352                  $as_echo "$as_val"'`
    11353                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    11354 $as_echo "$ac_res" >&6; }
    11355 else
    11356   # Is the header compilable?
    11357 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    11358 $as_echo_n "checking $ac_header usability... " >&6; }
    11359 cat >conftest.$ac_ext <<_ACEOF
    11360 /* confdefs.h.  */
    11361 _ACEOF
    11362 cat confdefs.h >>conftest.$ac_ext
    11363 cat >>conftest.$ac_ext <<_ACEOF
    11364 /* end confdefs.h.  */
    11365 $ac_includes_default
    11366 #include <$ac_header>
    11367 _ACEOF
    11368 rm -f conftest.$ac_objext
    11369 if { (ac_try="$ac_compile"
    11370 case "(($ac_try" in
    11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11372   *) ac_try_echo=$ac_try;;
    11373 esac
    11374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11375 $as_echo "$ac_try_echo") >&5
    11376   (eval "$ac_compile") 2>conftest.er1
    11377   ac_status=$?
    11378   grep -v '^ *+' conftest.er1 >conftest.err
    11379   rm -f conftest.er1
    11380   cat conftest.err >&5
    11381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11382   (exit $ac_status); } && {
    11383          test -z "$ac_cxx_werror_flag" ||
    11384          test ! -s conftest.err
    11385        } && test -s conftest.$ac_objext; then
    11386   ac_header_compiler=yes
    11387 else
    11388   $as_echo "$as_me: failed program was:" >&5
    11389 sed 's/^/| /' conftest.$ac_ext >&5
    11390 
    11391         ac_header_compiler=no
    11392 fi
    11393 
    11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11395 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11396 $as_echo "$ac_header_compiler" >&6; }
    11397 
    11398 # Is the header present?
    11399 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    11400 $as_echo_n "checking $ac_header presence... " >&6; }
    11401 cat >conftest.$ac_ext <<_ACEOF
    11402 /* confdefs.h.  */
    11403 _ACEOF
    11404 cat confdefs.h >>conftest.$ac_ext
    11405 cat >>conftest.$ac_ext <<_ACEOF
    11406 /* end confdefs.h.  */
    11407 #include <$ac_header>
    11408 _ACEOF
    11409 if { (ac_try="$ac_cpp conftest.$ac_ext"
    11410 case "(($ac_try" in
    11411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11412   *) ac_try_echo=$ac_try;;
    11413 esac
    11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11415 $as_echo "$ac_try_echo") >&5
    11416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    11417   ac_status=$?
    11418   grep -v '^ *+' conftest.er1 >conftest.err
    11419   rm -f conftest.er1
    11420   cat conftest.err >&5
    11421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11422   (exit $ac_status); } >/dev/null && {
    11423          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    11424          test ! -s conftest.err
    11425        }; then
    11426   ac_header_preproc=yes
    11427 else
    11428   $as_echo "$as_me: failed program was:" >&5
    11429 sed 's/^/| /' conftest.$ac_ext >&5
    11430 
    11431   ac_header_preproc=no
    11432 fi
    11433 
    11434 rm -f conftest.err conftest.$ac_ext
    11435 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11436 $as_echo "$ac_header_preproc" >&6; }
    11437 
    11438 # So?  What about this header?
    11439 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    11440   yes:no: )
    11441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    11442 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    11444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    11445     ac_header_preproc=yes
    11446     ;;
    11447   no:yes:* )
    11448     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    11449 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    11450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    11451 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    11452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    11453 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    11454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    11455 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    11456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    11457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    11458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    11459 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    11460     ( cat <<\_ASBOX
    11461 ## ----------------------------------- ##
    11462 ## Report this to rappture@nanohub.org ##
    11463 ## ----------------------------------- ##
    11464 _ASBOX
    11465      ) | sed "s/^/$as_me: WARNING:     /" >&2
    11466     ;;
    11467 esac
    11468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    11469 $as_echo_n "checking for $ac_header... " >&6; }
    11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    11471   $as_echo_n "(cached) " >&6
    11472 else
    11473   eval "$as_ac_Header=\$ac_header_preproc"
    11474 fi
    11475 ac_res=`eval 'as_val=${'$as_ac_Header'}
    11476                  $as_echo "$as_val"'`
    11477                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    11478 $as_echo "$ac_res" >&6; }
    11479 
    11480 fi
    11481 as_val=`eval 'as_val=${'$as_ac_Header'}
    11482                  $as_echo "$as_val"'`
    11483    if test "x$as_val" = x""yes; then
     8285do :
     8286  ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default"
     8287if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then :
     8288  cat >>confdefs.h <<_ACEOF
     8289#define HAVE_VTKSMARTPOINTER_H 1
     8290_ACEOF
     8291
     8292else
     8293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5
     8294$as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}
     8295fi
     8296
     8297done
     8298
     8299CPPFLAGS=$save_CPPFLAGS
     8300
     8301ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glui.h" "ac_cv_header_GL_glui_h" "$ac_includes_default"
     8302if test "x$ac_cv_header_GL_glui_h" = xyes; then :
     8303
     8304fi
     8305
     8306
     8307ac_fn_cxx_check_header_mongrel "$LINENO" "glui.h" "ac_cv_header_glui_h" "$ac_includes_default"
     8308if test "x$ac_cv_header_glui_h" = xyes; then :
     8309
     8310fi
     8311
     8312
     8313ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
     8314if test "x$ac_cv_header_GL_glut_h" = xyes; then :
     8315
     8316fi
     8317
     8318
     8319ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
     8320if test "x$ac_cv_header_GL_glew_h" = xyes; then :
     8321
     8322fi
     8323
     8324
     8325
     8326for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
     8327do :
     8328  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     8329ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     8330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    114848331  cat >>confdefs.h <<_ACEOF
    114858332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    114868333_ACEOF
    114878334
    11488 else
    11489   { $as_echo "$as_me:$LINENO: WARNING: cannot find vtkSmartPointer.h" >&5
    11490 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}
    114918335fi
    114928336
    114938337done
    114948338
    11495 CPPFLAGS=$save_CPPFLAGS
    11496 
    11497 if test "${ac_cv_header_GL_glui_h+set}" = set; then
    11498   { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
    11499 $as_echo_n "checking for GL/glui.h... " >&6; }
    11500 if test "${ac_cv_header_GL_glui_h+set}" = set; then
    11501   $as_echo_n "(cached) " >&6
    11502 fi
    11503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
    11504 $as_echo "$ac_cv_header_GL_glui_h" >&6; }
    11505 else
    11506   # Is the header compilable?
    11507 { $as_echo "$as_me:$LINENO: checking GL/glui.h usability" >&5
    11508 $as_echo_n "checking GL/glui.h usability... " >&6; }
    11509 cat >conftest.$ac_ext <<_ACEOF
    11510 /* confdefs.h.  */
    11511 _ACEOF
    11512 cat confdefs.h >>conftest.$ac_ext
    11513 cat >>conftest.$ac_ext <<_ACEOF
    11514 /* end confdefs.h.  */
    11515 $ac_includes_default
    11516 #include <GL/glui.h>
    11517 _ACEOF
    11518 rm -f conftest.$ac_objext
    11519 if { (ac_try="$ac_compile"
    11520 case "(($ac_try" in
    11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11522   *) ac_try_echo=$ac_try;;
    11523 esac
    11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11525 $as_echo "$ac_try_echo") >&5
    11526   (eval "$ac_compile") 2>conftest.er1
    11527   ac_status=$?
    11528   grep -v '^ *+' conftest.er1 >conftest.err
    11529   rm -f conftest.er1
    11530   cat conftest.err >&5
    11531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11532   (exit $ac_status); } && {
    11533          test -z "$ac_cxx_werror_flag" ||
    11534          test ! -s conftest.err
    11535        } && test -s conftest.$ac_objext; then
    11536   ac_header_compiler=yes
    11537 else
    11538   $as_echo "$as_me: failed program was:" >&5
    11539 sed 's/^/| /' conftest.$ac_ext >&5
    11540 
    11541         ac_header_compiler=no
    11542 fi
    11543 
    11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11546 $as_echo "$ac_header_compiler" >&6; }
    11547 
    11548 # Is the header present?
    11549 { $as_echo "$as_me:$LINENO: checking GL/glui.h presence" >&5
    11550 $as_echo_n "checking GL/glui.h presence... " >&6; }
    11551 cat >conftest.$ac_ext <<_ACEOF
    11552 /* confdefs.h.  */
    11553 _ACEOF
    11554 cat confdefs.h >>conftest.$ac_ext
    11555 cat >>conftest.$ac_ext <<_ACEOF
    11556 /* end confdefs.h.  */
    11557 #include <GL/glui.h>
    11558 _ACEOF
    11559 if { (ac_try="$ac_cpp conftest.$ac_ext"
    11560 case "(($ac_try" in
    11561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11562   *) ac_try_echo=$ac_try;;
    11563 esac
    11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11565 $as_echo "$ac_try_echo") >&5
    11566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    11567   ac_status=$?
    11568   grep -v '^ *+' conftest.er1 >conftest.err
    11569   rm -f conftest.er1
    11570   cat conftest.err >&5
    11571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11572   (exit $ac_status); } >/dev/null && {
    11573          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    11574          test ! -s conftest.err
    11575        }; then
    11576   ac_header_preproc=yes
    11577 else
    11578   $as_echo "$as_me: failed program was:" >&5
    11579 sed 's/^/| /' conftest.$ac_ext >&5
    11580 
    11581   ac_header_preproc=no
    11582 fi
    11583 
    11584 rm -f conftest.err conftest.$ac_ext
    11585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11586 $as_echo "$ac_header_preproc" >&6; }
    11587 
    11588 # So?  What about this header?
    11589 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    11590   yes:no: )
    11591     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
    11592 $as_echo "$as_me: WARNING: GL/glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11593     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the compiler's result" >&5
    11594 $as_echo "$as_me: WARNING: GL/glui.h: proceeding with the compiler's result" >&2;}
    11595     ac_header_preproc=yes
    11596     ;;
    11597   no:yes:* )
    11598     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: present but cannot be compiled" >&5
    11599 $as_echo "$as_me: WARNING: GL/glui.h: present but cannot be compiled" >&2;}
    11600     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&5
    11601 $as_echo "$as_me: WARNING: GL/glui.h:     check for missing prerequisite headers?" >&2;}
    11602     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: see the Autoconf documentation" >&5
    11603 $as_echo "$as_me: WARNING: GL/glui.h: see the Autoconf documentation" >&2;}
    11604     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&5
    11605 $as_echo "$as_me: WARNING: GL/glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    11606     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&5
    11607 $as_echo "$as_me: WARNING: GL/glui.h: proceeding with the preprocessor's result" >&2;}
    11608     { $as_echo "$as_me:$LINENO: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&5
    11609 $as_echo "$as_me: WARNING: GL/glui.h: in the future, the compiler will take precedence" >&2;}
    11610     ( cat <<\_ASBOX
    11611 ## ----------------------------------- ##
    11612 ## Report this to rappture@nanohub.org ##
    11613 ## ----------------------------------- ##
    11614 _ASBOX
    11615      ) | sed "s/^/$as_me: WARNING:     /" >&2
    11616     ;;
    11617 esac
    11618 { $as_echo "$as_me:$LINENO: checking for GL/glui.h" >&5
    11619 $as_echo_n "checking for GL/glui.h... " >&6; }
    11620 if test "${ac_cv_header_GL_glui_h+set}" = set; then
    11621   $as_echo_n "(cached) " >&6
    11622 else
    11623   ac_cv_header_GL_glui_h=$ac_header_preproc
    11624 fi
    11625 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glui_h" >&5
    11626 $as_echo "$ac_cv_header_GL_glui_h" >&6; }
    11627 
    11628 fi
    11629 
    11630 
    11631 if test "${ac_cv_header_glui_h+set}" = set; then
    11632   { $as_echo "$as_me:$LINENO: checking for glui.h" >&5
    11633 $as_echo_n "checking for glui.h... " >&6; }
    11634 if test "${ac_cv_header_glui_h+set}" = set; then
    11635   $as_echo_n "(cached) " >&6
    11636 fi
    11637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
    11638 $as_echo "$ac_cv_header_glui_h" >&6; }
    11639 else
    11640   # Is the header compilable?
    11641 { $as_echo "$as_me:$LINENO: checking glui.h usability" >&5
    11642 $as_echo_n "checking glui.h usability... " >&6; }
    11643 cat >conftest.$ac_ext <<_ACEOF
    11644 /* confdefs.h.  */
    11645 _ACEOF
    11646 cat confdefs.h >>conftest.$ac_ext
    11647 cat >>conftest.$ac_ext <<_ACEOF
    11648 /* end confdefs.h.  */
    11649 $ac_includes_default
    11650 #include <glui.h>
    11651 _ACEOF
    11652 rm -f conftest.$ac_objext
    11653 if { (ac_try="$ac_compile"
    11654 case "(($ac_try" in
    11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11656   *) ac_try_echo=$ac_try;;
    11657 esac
    11658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11659 $as_echo "$ac_try_echo") >&5
    11660   (eval "$ac_compile") 2>conftest.er1
    11661   ac_status=$?
    11662   grep -v '^ *+' conftest.er1 >conftest.err
    11663   rm -f conftest.er1
    11664   cat conftest.err >&5
    11665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11666   (exit $ac_status); } && {
    11667          test -z "$ac_cxx_werror_flag" ||
    11668          test ! -s conftest.err
    11669        } && test -s conftest.$ac_objext; then
    11670   ac_header_compiler=yes
    11671 else
    11672   $as_echo "$as_me: failed program was:" >&5
    11673 sed 's/^/| /' conftest.$ac_ext >&5
    11674 
    11675         ac_header_compiler=no
    11676 fi
    11677 
    11678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11680 $as_echo "$ac_header_compiler" >&6; }
    11681 
    11682 # Is the header present?
    11683 { $as_echo "$as_me:$LINENO: checking glui.h presence" >&5
    11684 $as_echo_n "checking glui.h presence... " >&6; }
    11685 cat >conftest.$ac_ext <<_ACEOF
    11686 /* confdefs.h.  */
    11687 _ACEOF
    11688 cat confdefs.h >>conftest.$ac_ext
    11689 cat >>conftest.$ac_ext <<_ACEOF
    11690 /* end confdefs.h.  */
    11691 #include <glui.h>
    11692 _ACEOF
    11693 if { (ac_try="$ac_cpp conftest.$ac_ext"
    11694 case "(($ac_try" in
    11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11696   *) ac_try_echo=$ac_try;;
    11697 esac
    11698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11699 $as_echo "$ac_try_echo") >&5
    11700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    11701   ac_status=$?
    11702   grep -v '^ *+' conftest.er1 >conftest.err
    11703   rm -f conftest.er1
    11704   cat conftest.err >&5
    11705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11706   (exit $ac_status); } >/dev/null && {
    11707          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    11708          test ! -s conftest.err
    11709        }; then
    11710   ac_header_preproc=yes
    11711 else
    11712   $as_echo "$as_me: failed program was:" >&5
    11713 sed 's/^/| /' conftest.$ac_ext >&5
    11714 
    11715   ac_header_preproc=no
    11716 fi
    11717 
    11718 rm -f conftest.err conftest.$ac_ext
    11719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11720 $as_echo "$ac_header_preproc" >&6; }
    11721 
    11722 # So?  What about this header?
    11723 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    11724   yes:no: )
    11725     { $as_echo "$as_me:$LINENO: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&5
    11726 $as_echo "$as_me: WARNING: glui.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11727     { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the compiler's result" >&5
    11728 $as_echo "$as_me: WARNING: glui.h: proceeding with the compiler's result" >&2;}
    11729     ac_header_preproc=yes
    11730     ;;
    11731   no:yes:* )
    11732     { $as_echo "$as_me:$LINENO: WARNING: glui.h: present but cannot be compiled" >&5
    11733 $as_echo "$as_me: WARNING: glui.h: present but cannot be compiled" >&2;}
    11734     { $as_echo "$as_me:$LINENO: WARNING: glui.h:     check for missing prerequisite headers?" >&5
    11735 $as_echo "$as_me: WARNING: glui.h:     check for missing prerequisite headers?" >&2;}
    11736     { $as_echo "$as_me:$LINENO: WARNING: glui.h: see the Autoconf documentation" >&5
    11737 $as_echo "$as_me: WARNING: glui.h: see the Autoconf documentation" >&2;}
    11738     { $as_echo "$as_me:$LINENO: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&5
    11739 $as_echo "$as_me: WARNING: glui.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    11740     { $as_echo "$as_me:$LINENO: WARNING: glui.h: proceeding with the preprocessor's result" >&5
    11741 $as_echo "$as_me: WARNING: glui.h: proceeding with the preprocessor's result" >&2;}
    11742     { $as_echo "$as_me:$LINENO: WARNING: glui.h: in the future, the compiler will take precedence" >&5
    11743 $as_echo "$as_me: WARNING: glui.h: in the future, the compiler will take precedence" >&2;}
    11744     ( cat <<\_ASBOX
    11745 ## ----------------------------------- ##
    11746 ## Report this to rappture@nanohub.org ##
    11747 ## ----------------------------------- ##
    11748 _ASBOX
    11749      ) | sed "s/^/$as_me: WARNING:     /" >&2
    11750     ;;
    11751 esac
    11752 { $as_echo "$as_me:$LINENO: checking for glui.h" >&5
    11753 $as_echo_n "checking for glui.h... " >&6; }
    11754 if test "${ac_cv_header_glui_h+set}" = set; then
    11755   $as_echo_n "(cached) " >&6
    11756 else
    11757   ac_cv_header_glui_h=$ac_header_preproc
    11758 fi
    11759 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glui_h" >&5
    11760 $as_echo "$ac_cv_header_glui_h" >&6; }
    11761 
    11762 fi
    11763 
    11764 
    11765 if test "${ac_cv_header_GL_glut_h+set}" = set; then
    11766   { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
    11767 $as_echo_n "checking for GL/glut.h... " >&6; }
    11768 if test "${ac_cv_header_GL_glut_h+set}" = set; then
    11769   $as_echo_n "(cached) " >&6
    11770 fi
    11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
    11772 $as_echo "$ac_cv_header_GL_glut_h" >&6; }
    11773 else
    11774   # Is the header compilable?
    11775 { $as_echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
    11776 $as_echo_n "checking GL/glut.h usability... " >&6; }
    11777 cat >conftest.$ac_ext <<_ACEOF
    11778 /* confdefs.h.  */
    11779 _ACEOF
    11780 cat confdefs.h >>conftest.$ac_ext
    11781 cat >>conftest.$ac_ext <<_ACEOF
    11782 /* end confdefs.h.  */
    11783 $ac_includes_default
    11784 #include <GL/glut.h>
    11785 _ACEOF
    11786 rm -f conftest.$ac_objext
    11787 if { (ac_try="$ac_compile"
    11788 case "(($ac_try" in
    11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11790   *) ac_try_echo=$ac_try;;
    11791 esac
    11792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11793 $as_echo "$ac_try_echo") >&5
    11794   (eval "$ac_compile") 2>conftest.er1
    11795   ac_status=$?
    11796   grep -v '^ *+' conftest.er1 >conftest.err
    11797   rm -f conftest.er1
    11798   cat conftest.err >&5
    11799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11800   (exit $ac_status); } && {
    11801          test -z "$ac_cxx_werror_flag" ||
    11802          test ! -s conftest.err
    11803        } && test -s conftest.$ac_objext; then
    11804   ac_header_compiler=yes
    11805 else
    11806   $as_echo "$as_me: failed program was:" >&5
    11807 sed 's/^/| /' conftest.$ac_ext >&5
    11808 
    11809         ac_header_compiler=no
    11810 fi
    11811 
    11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11814 $as_echo "$ac_header_compiler" >&6; }
    11815 
    11816 # Is the header present?
    11817 { $as_echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
    11818 $as_echo_n "checking GL/glut.h presence... " >&6; }
    11819 cat >conftest.$ac_ext <<_ACEOF
    11820 /* confdefs.h.  */
    11821 _ACEOF
    11822 cat confdefs.h >>conftest.$ac_ext
    11823 cat >>conftest.$ac_ext <<_ACEOF
    11824 /* end confdefs.h.  */
    11825 #include <GL/glut.h>
    11826 _ACEOF
    11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
    11828 case "(($ac_try" in
    11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11830   *) ac_try_echo=$ac_try;;
    11831 esac
    11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11833 $as_echo "$ac_try_echo") >&5
    11834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    11835   ac_status=$?
    11836   grep -v '^ *+' conftest.er1 >conftest.err
    11837   rm -f conftest.er1
    11838   cat conftest.err >&5
    11839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11840   (exit $ac_status); } >/dev/null && {
    11841          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    11842          test ! -s conftest.err
    11843        }; then
    11844   ac_header_preproc=yes
    11845 else
    11846   $as_echo "$as_me: failed program was:" >&5
    11847 sed 's/^/| /' conftest.$ac_ext >&5
    11848 
    11849   ac_header_preproc=no
    11850 fi
    11851 
    11852 rm -f conftest.err conftest.$ac_ext
    11853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11854 $as_echo "$ac_header_preproc" >&6; }
    11855 
    11856 # So?  What about this header?
    11857 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    11858   yes:no: )
    11859     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
    11860 $as_echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11861     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the compiler's result" >&5
    11862 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the compiler's result" >&2;}
    11863     ac_header_preproc=yes
    11864     ;;
    11865   no:yes:* )
    11866     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
    11867 $as_echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
    11868     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&5
    11869 $as_echo "$as_me: WARNING: GL/glut.h:     check for missing prerequisite headers?" >&2;}
    11870     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: see the Autoconf documentation" >&5
    11871 $as_echo "$as_me: WARNING: GL/glut.h: see the Autoconf documentation" >&2;}
    11872     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&5
    11873 $as_echo "$as_me: WARNING: GL/glut.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    11874     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
    11875 $as_echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
    11876     { $as_echo "$as_me:$LINENO: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&5
    11877 $as_echo "$as_me: WARNING: GL/glut.h: in the future, the compiler will take precedence" >&2;}
    11878     ( cat <<\_ASBOX
    11879 ## ----------------------------------- ##
    11880 ## Report this to rappture@nanohub.org ##
    11881 ## ----------------------------------- ##
    11882 _ASBOX
    11883      ) | sed "s/^/$as_me: WARNING:     /" >&2
    11884     ;;
    11885 esac
    11886 { $as_echo "$as_me:$LINENO: checking for GL/glut.h" >&5
    11887 $as_echo_n "checking for GL/glut.h... " >&6; }
    11888 if test "${ac_cv_header_GL_glut_h+set}" = set; then
    11889   $as_echo_n "(cached) " >&6
    11890 else
    11891   ac_cv_header_GL_glut_h=$ac_header_preproc
    11892 fi
    11893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
    11894 $as_echo "$ac_cv_header_GL_glut_h" >&6; }
    11895 
    11896 fi
    11897 
    11898 
    11899 if test "${ac_cv_header_GL_glew_h+set}" = set; then
    11900   { $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5
    11901 $as_echo_n "checking for GL/glew.h... " >&6; }
    11902 if test "${ac_cv_header_GL_glew_h+set}" = set; then
    11903   $as_echo_n "(cached) " >&6
    11904 fi
    11905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
    11906 $as_echo "$ac_cv_header_GL_glew_h" >&6; }
    11907 else
    11908   # Is the header compilable?
    11909 { $as_echo "$as_me:$LINENO: checking GL/glew.h usability" >&5
    11910 $as_echo_n "checking GL/glew.h usability... " >&6; }
    11911 cat >conftest.$ac_ext <<_ACEOF
    11912 /* confdefs.h.  */
    11913 _ACEOF
    11914 cat confdefs.h >>conftest.$ac_ext
    11915 cat >>conftest.$ac_ext <<_ACEOF
    11916 /* end confdefs.h.  */
    11917 $ac_includes_default
    11918 #include <GL/glew.h>
    11919 _ACEOF
    11920 rm -f conftest.$ac_objext
    11921 if { (ac_try="$ac_compile"
    11922 case "(($ac_try" in
    11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11924   *) ac_try_echo=$ac_try;;
    11925 esac
    11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11927 $as_echo "$ac_try_echo") >&5
    11928   (eval "$ac_compile") 2>conftest.er1
    11929   ac_status=$?
    11930   grep -v '^ *+' conftest.er1 >conftest.err
    11931   rm -f conftest.er1
    11932   cat conftest.err >&5
    11933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11934   (exit $ac_status); } && {
    11935          test -z "$ac_cxx_werror_flag" ||
    11936          test ! -s conftest.err
    11937        } && test -s conftest.$ac_objext; then
    11938   ac_header_compiler=yes
    11939 else
    11940   $as_echo "$as_me: failed program was:" >&5
    11941 sed 's/^/| /' conftest.$ac_ext >&5
    11942 
    11943         ac_header_compiler=no
    11944 fi
    11945 
    11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    11947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11948 $as_echo "$ac_header_compiler" >&6; }
    11949 
    11950 # Is the header present?
    11951 { $as_echo "$as_me:$LINENO: checking GL/glew.h presence" >&5
    11952 $as_echo_n "checking GL/glew.h presence... " >&6; }
    11953 cat >conftest.$ac_ext <<_ACEOF
    11954 /* confdefs.h.  */
    11955 _ACEOF
    11956 cat confdefs.h >>conftest.$ac_ext
    11957 cat >>conftest.$ac_ext <<_ACEOF
    11958 /* end confdefs.h.  */
    11959 #include <GL/glew.h>
    11960 _ACEOF
    11961 if { (ac_try="$ac_cpp conftest.$ac_ext"
    11962 case "(($ac_try" in
    11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    11964   *) ac_try_echo=$ac_try;;
    11965 esac
    11966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    11967 $as_echo "$ac_try_echo") >&5
    11968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    11969   ac_status=$?
    11970   grep -v '^ *+' conftest.er1 >conftest.err
    11971   rm -f conftest.er1
    11972   cat conftest.err >&5
    11973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11974   (exit $ac_status); } >/dev/null && {
    11975          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    11976          test ! -s conftest.err
    11977        }; then
    11978   ac_header_preproc=yes
    11979 else
    11980   $as_echo "$as_me: failed program was:" >&5
    11981 sed 's/^/| /' conftest.$ac_ext >&5
    11982 
    11983   ac_header_preproc=no
    11984 fi
    11985 
    11986 rm -f conftest.err conftest.$ac_ext
    11987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11988 $as_echo "$ac_header_preproc" >&6; }
    11989 
    11990 # So?  What about this header?
    11991 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    11992   yes:no: )
    11993     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5
    11994 $as_echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11995     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5
    11996 $as_echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;}
    11997     ac_header_preproc=yes
    11998     ;;
    11999   no:yes:* )
    12000     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5
    12001 $as_echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;}
    12002     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h:     check for missing prerequisite headers?" >&5
    12003 $as_echo "$as_me: WARNING: GL/glew.h:     check for missing prerequisite headers?" >&2;}
    12004     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5
    12005 $as_echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;}
    12006     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h:     section \"Present But Cannot Be Compiled\"" >&5
    12007 $as_echo "$as_me: WARNING: GL/glew.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    12008     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5
    12009 $as_echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;}
    12010     { $as_echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5
    12011 $as_echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;}
    12012     ( cat <<\_ASBOX
    12013 ## ----------------------------------- ##
    12014 ## Report this to rappture@nanohub.org ##
    12015 ## ----------------------------------- ##
    12016 _ASBOX
    12017      ) | sed "s/^/$as_me: WARNING:     /" >&2
    12018     ;;
    12019 esac
    12020 { $as_echo "$as_me:$LINENO: checking for GL/glew.h" >&5
    12021 $as_echo_n "checking for GL/glew.h... " >&6; }
    12022 if test "${ac_cv_header_GL_glew_h+set}" = set; then
    12023   $as_echo_n "(cached) " >&6
    12024 else
    12025   ac_cv_header_GL_glew_h=$ac_header_preproc
    12026 fi
    12027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
    12028 $as_echo "$ac_cv_header_GL_glew_h" >&6; }
    12029 
    12030 fi
    12031 
    12032 
    12033 
    12034 
    12035 
    12036 
    12037 
    12038 
    12039 for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
    12040 do
    12041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12043   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12044 $as_echo_n "checking for $ac_header... " >&6; }
    12045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12046   $as_echo_n "(cached) " >&6
    12047 fi
    12048 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12049                  $as_echo "$as_val"'`
    12050                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12051 $as_echo "$ac_res" >&6; }
    12052 else
    12053   # Is the header compilable?
    12054 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    12055 $as_echo_n "checking $ac_header usability... " >&6; }
    12056 cat >conftest.$ac_ext <<_ACEOF
    12057 /* confdefs.h.  */
    12058 _ACEOF
    12059 cat confdefs.h >>conftest.$ac_ext
    12060 cat >>conftest.$ac_ext <<_ACEOF
    12061 /* end confdefs.h.  */
    12062 $ac_includes_default
    12063 #include <$ac_header>
    12064 _ACEOF
    12065 rm -f conftest.$ac_objext
    12066 if { (ac_try="$ac_compile"
    12067 case "(($ac_try" in
    12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12069   *) ac_try_echo=$ac_try;;
    12070 esac
    12071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12072 $as_echo "$ac_try_echo") >&5
    12073   (eval "$ac_compile") 2>conftest.er1
    12074   ac_status=$?
    12075   grep -v '^ *+' conftest.er1 >conftest.err
    12076   rm -f conftest.er1
    12077   cat conftest.err >&5
    12078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12079   (exit $ac_status); } && {
    12080          test -z "$ac_cxx_werror_flag" ||
    12081          test ! -s conftest.err
    12082        } && test -s conftest.$ac_objext; then
    12083   ac_header_compiler=yes
    12084 else
    12085   $as_echo "$as_me: failed program was:" >&5
    12086 sed 's/^/| /' conftest.$ac_ext >&5
    12087 
    12088         ac_header_compiler=no
    12089 fi
    12090 
    12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    12092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    12093 $as_echo "$ac_header_compiler" >&6; }
    12094 
    12095 # Is the header present?
    12096 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    12097 $as_echo_n "checking $ac_header presence... " >&6; }
    12098 cat >conftest.$ac_ext <<_ACEOF
    12099 /* confdefs.h.  */
    12100 _ACEOF
    12101 cat confdefs.h >>conftest.$ac_ext
    12102 cat >>conftest.$ac_ext <<_ACEOF
    12103 /* end confdefs.h.  */
    12104 #include <$ac_header>
    12105 _ACEOF
    12106 if { (ac_try="$ac_cpp conftest.$ac_ext"
    12107 case "(($ac_try" in
    12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12109   *) ac_try_echo=$ac_try;;
    12110 esac
    12111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12112 $as_echo "$ac_try_echo") >&5
    12113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    12114   ac_status=$?
    12115   grep -v '^ *+' conftest.er1 >conftest.err
    12116   rm -f conftest.er1
    12117   cat conftest.err >&5
    12118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12119   (exit $ac_status); } >/dev/null && {
    12120          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    12121          test ! -s conftest.err
    12122        }; then
    12123   ac_header_preproc=yes
    12124 else
    12125   $as_echo "$as_me: failed program was:" >&5
    12126 sed 's/^/| /' conftest.$ac_ext >&5
    12127 
    12128   ac_header_preproc=no
    12129 fi
    12130 
    12131 rm -f conftest.err conftest.$ac_ext
    12132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    12133 $as_echo "$ac_header_preproc" >&6; }
    12134 
    12135 # So?  What about this header?
    12136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    12137   yes:no: )
    12138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    12139 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    12140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    12141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    12142     ac_header_preproc=yes
    12143     ;;
    12144   no:yes:* )
    12145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    12146 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    12147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    12148 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    12149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    12150 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    12151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    12152 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    12153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    12154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    12155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    12156 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    12157     ( cat <<\_ASBOX
    12158 ## ----------------------------------- ##
    12159 ## Report this to rappture@nanohub.org ##
    12160 ## ----------------------------------- ##
    12161 _ASBOX
    12162      ) | sed "s/^/$as_me: WARNING:     /" >&2
    12163     ;;
    12164 esac
    12165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12166 $as_echo_n "checking for $ac_header... " >&6; }
    12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12168   $as_echo_n "(cached) " >&6
    12169 else
    12170   eval "$as_ac_Header=\$ac_header_preproc"
    12171 fi
    12172 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12173                  $as_echo "$as_val"'`
    12174                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12175 $as_echo "$ac_res" >&6; }
    12176 
    12177 fi
    12178 as_val=`eval 'as_val=${'$as_ac_Header'}
    12179                  $as_echo "$as_val"'`
    12180    if test "x$as_val" = x""yes; then
     8339for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
     8340do :
     8341  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     8342ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     8343if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    121818344  cat >>confdefs.h <<_ACEOF
    121828345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    121888351
    121898352
    12190 
    12191 
    12192 
    12193 
    12194 for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
    12195 do
    12196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12198   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12199 $as_echo_n "checking for $ac_header... " >&6; }
    12200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12201   $as_echo_n "(cached) " >&6
    12202 fi
    12203 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12204                  $as_echo "$as_val"'`
    12205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12206 $as_echo "$ac_res" >&6; }
    12207 else
    12208   # Is the header compilable?
    12209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    12210 $as_echo_n "checking $ac_header usability... " >&6; }
    12211 cat >conftest.$ac_ext <<_ACEOF
    12212 /* confdefs.h.  */
    12213 _ACEOF
    12214 cat confdefs.h >>conftest.$ac_ext
    12215 cat >>conftest.$ac_ext <<_ACEOF
    12216 /* end confdefs.h.  */
    12217 $ac_includes_default
    12218 #include <$ac_header>
    12219 _ACEOF
    12220 rm -f conftest.$ac_objext
    12221 if { (ac_try="$ac_compile"
    12222 case "(($ac_try" in
    12223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12224   *) ac_try_echo=$ac_try;;
    12225 esac
    12226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12227 $as_echo "$ac_try_echo") >&5
    12228   (eval "$ac_compile") 2>conftest.er1
    12229   ac_status=$?
    12230   grep -v '^ *+' conftest.er1 >conftest.err
    12231   rm -f conftest.er1
    12232   cat conftest.err >&5
    12233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12234   (exit $ac_status); } && {
    12235          test -z "$ac_cxx_werror_flag" ||
    12236          test ! -s conftest.err
    12237        } && test -s conftest.$ac_objext; then
    12238   ac_header_compiler=yes
    12239 else
    12240   $as_echo "$as_me: failed program was:" >&5
    12241 sed 's/^/| /' conftest.$ac_ext >&5
    12242 
    12243         ac_header_compiler=no
    12244 fi
    12245 
    12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    12247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    12248 $as_echo "$ac_header_compiler" >&6; }
    12249 
    12250 # Is the header present?
    12251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    12252 $as_echo_n "checking $ac_header presence... " >&6; }
    12253 cat >conftest.$ac_ext <<_ACEOF
    12254 /* confdefs.h.  */
    12255 _ACEOF
    12256 cat confdefs.h >>conftest.$ac_ext
    12257 cat >>conftest.$ac_ext <<_ACEOF
    12258 /* end confdefs.h.  */
    12259 #include <$ac_header>
    12260 _ACEOF
    12261 if { (ac_try="$ac_cpp conftest.$ac_ext"
    12262 case "(($ac_try" in
    12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12264   *) ac_try_echo=$ac_try;;
    12265 esac
    12266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12267 $as_echo "$ac_try_echo") >&5
    12268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    12269   ac_status=$?
    12270   grep -v '^ *+' conftest.er1 >conftest.err
    12271   rm -f conftest.er1
    12272   cat conftest.err >&5
    12273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12274   (exit $ac_status); } >/dev/null && {
    12275          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    12276          test ! -s conftest.err
    12277        }; then
    12278   ac_header_preproc=yes
    12279 else
    12280   $as_echo "$as_me: failed program was:" >&5
    12281 sed 's/^/| /' conftest.$ac_ext >&5
    12282 
    12283   ac_header_preproc=no
    12284 fi
    12285 
    12286 rm -f conftest.err conftest.$ac_ext
    12287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    12288 $as_echo "$ac_header_preproc" >&6; }
    12289 
    12290 # So?  What about this header?
    12291 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    12292   yes:no: )
    12293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    12294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    12295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    12296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    12297     ac_header_preproc=yes
    12298     ;;
    12299   no:yes:* )
    12300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    12301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    12302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    12303 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    12304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    12305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    12306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    12307 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    12308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    12309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    12310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    12311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    12312     ( cat <<\_ASBOX
    12313 ## ----------------------------------- ##
    12314 ## Report this to rappture@nanohub.org ##
    12315 ## ----------------------------------- ##
    12316 _ASBOX
    12317      ) | sed "s/^/$as_me: WARNING:     /" >&2
    12318     ;;
    12319 esac
    12320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12321 $as_echo_n "checking for $ac_header... " >&6; }
    12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12323   $as_echo_n "(cached) " >&6
    12324 else
    12325   eval "$as_ac_Header=\$ac_header_preproc"
    12326 fi
    12327 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12328                  $as_echo "$as_val"'`
    12329                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12330 $as_echo "$ac_res" >&6; }
    12331 
    12332 fi
    12333 as_val=`eval 'as_val=${'$as_ac_Header'}
    12334                  $as_echo "$as_val"'`
    12335    if test "x$as_val" = x""yes; then
     8353for ac_func in accept4
     8354do :
     8355  ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
     8356if test "x$ac_cv_func_accept4" = xyes; then :
    123368357  cat >>confdefs.h <<_ACEOF
    12337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    12338 _ACEOF
    12339 
    12340 fi
    12341 
     8358#define HAVE_ACCEPT4 1
     8359_ACEOF
     8360
     8361fi
    123428362done
    123438363
    123448364
    12345 
    12346 for ac_func in accept4
    12347 do
    12348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    12349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    12350 $as_echo_n "checking for $ac_func... " >&6; }
    12351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    12352   $as_echo_n "(cached) " >&6
    12353 else
    12354   cat >conftest.$ac_ext <<_ACEOF
    12355 /* confdefs.h.  */
    12356 _ACEOF
    12357 cat confdefs.h >>conftest.$ac_ext
    12358 cat >>conftest.$ac_ext <<_ACEOF
    12359 /* end confdefs.h.  */
    12360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    12361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12362 #define $ac_func innocuous_$ac_func
    12363 
    12364 /* System header to define __stub macros and hopefully few prototypes,
    12365     which can conflict with char $ac_func (); below.
    12366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12367     <limits.h> exists even on freestanding compilers.  */
    12368 
    12369 #ifdef __STDC__
    12370 # include <limits.h>
    12371 #else
    12372 # include <assert.h>
    12373 #endif
    12374 
    12375 #undef $ac_func
    12376 
    12377 /* Override any GCC internal prototype to avoid an error.
    12378    Use char because int might match the return type of a GCC
    12379    builtin and then its argument prototype would still apply.  */
    12380 #ifdef __cplusplus
    12381 extern "C"
    12382 #endif
    12383 char $ac_func ();
    12384 /* The GNU C library defines this for functions which it implements
    12385     to always fail with ENOSYS.  Some functions are actually named
    12386     something starting with __ and the normal name is an alias.  */
    12387 #if defined __stub_$ac_func || defined __stub___$ac_func
    12388 choke me
    12389 #endif
    12390 
    12391 int
    12392 main ()
    12393 {
    12394 return $ac_func ();
    12395   ;
    12396   return 0;
    12397 }
    12398 _ACEOF
    12399 rm -f conftest.$ac_objext conftest$ac_exeext
    12400 if { (ac_try="$ac_link"
    12401 case "(($ac_try" in
    12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12403   *) ac_try_echo=$ac_try;;
    12404 esac
    12405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12406 $as_echo "$ac_try_echo") >&5
    12407   (eval "$ac_link") 2>conftest.er1
    12408   ac_status=$?
    12409   grep -v '^ *+' conftest.er1 >conftest.err
    12410   rm -f conftest.er1
    12411   cat conftest.err >&5
    12412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12413   (exit $ac_status); } && {
    12414          test -z "$ac_cxx_werror_flag" ||
    12415          test ! -s conftest.err
    12416        } && test -s conftest$ac_exeext && {
    12417          test "$cross_compiling" = yes ||
    12418          $as_test_x conftest$ac_exeext
    12419        }; then
    12420   eval "$as_ac_var=yes"
    12421 else
    12422   $as_echo "$as_me: failed program was:" >&5
    12423 sed 's/^/| /' conftest.$ac_ext >&5
    12424 
    12425         eval "$as_ac_var=no"
    12426 fi
    12427 
    12428 rm -rf conftest.dSYM
    12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    12430       conftest$ac_exeext conftest.$ac_ext
    12431 fi
    12432 ac_res=`eval 'as_val=${'$as_ac_var'}
    12433                  $as_echo "$as_val"'`
    12434                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12435 $as_echo "$ac_res" >&6; }
    12436 as_val=`eval 'as_val=${'$as_ac_var'}
    12437                  $as_echo "$as_val"'`
    12438    if test "x$as_val" = x""yes; then
    12439   cat >>confdefs.h <<_ACEOF
    12440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    12441 _ACEOF
    12442 
    12443 fi
    12444 done
    12445 
    12446 
    12447 { $as_echo "$as_me:$LINENO: checking for OpenDX headers" >&5
     8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenDX headers" >&5
    124488366$as_echo_n "checking for OpenDX headers... " >&6; }
    124498367DX_INC_DIR=""
     
    124598377done
    124608378if test "x${DX_INC_DIR}" = "x" ; then
    12461   { $as_echo "$as_me:$LINENO: WARNING: cannot find OpenDX include files" >&5
     8379  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX include files" >&5
    124628380$as_echo "$as_me: WARNING: cannot find OpenDX include files" >&2;}
    124638381  DX_INC_SPEC=""
     
    124688386fi
    124698387
    12470 { $as_echo "$as_me:$LINENO: result: ${DX_INC_DIR}" >&5
     8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DX_INC_DIR}" >&5
    124718389$as_echo "${DX_INC_DIR}" >&6; }
    124728390save_CPPFLAGS=${CPPFLAGS}
    124738391CPPFLAGS="$DX_INC_SPEC $CPPFLAGS"
    12474 
    124758392for ac_header in dx/dx.h
    12476 do
    12477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12479   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12480 $as_echo_n "checking for $ac_header... " >&6; }
    12481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12482   $as_echo_n "(cached) " >&6
    12483 fi
    12484 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12485                  $as_echo "$as_val"'`
    12486                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12487 $as_echo "$ac_res" >&6; }
    12488 else
    12489   # Is the header compilable?
    12490 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    12491 $as_echo_n "checking $ac_header usability... " >&6; }
    12492 cat >conftest.$ac_ext <<_ACEOF
    12493 /* confdefs.h.  */
    12494 _ACEOF
    12495 cat confdefs.h >>conftest.$ac_ext
    12496 cat >>conftest.$ac_ext <<_ACEOF
    12497 /* end confdefs.h.  */
    12498 $ac_includes_default
    12499 #include <$ac_header>
    12500 _ACEOF
    12501 rm -f conftest.$ac_objext
    12502 if { (ac_try="$ac_compile"
    12503 case "(($ac_try" in
    12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12505   *) ac_try_echo=$ac_try;;
    12506 esac
    12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12508 $as_echo "$ac_try_echo") >&5
    12509   (eval "$ac_compile") 2>conftest.er1
    12510   ac_status=$?
    12511   grep -v '^ *+' conftest.er1 >conftest.err
    12512   rm -f conftest.er1
    12513   cat conftest.err >&5
    12514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12515   (exit $ac_status); } && {
    12516          test -z "$ac_cxx_werror_flag" ||
    12517          test ! -s conftest.err
    12518        } && test -s conftest.$ac_objext; then
    12519   ac_header_compiler=yes
    12520 else
    12521   $as_echo "$as_me: failed program was:" >&5
    12522 sed 's/^/| /' conftest.$ac_ext >&5
    12523 
    12524         ac_header_compiler=no
    12525 fi
    12526 
    12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    12528 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    12529 $as_echo "$ac_header_compiler" >&6; }
    12530 
    12531 # Is the header present?
    12532 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    12533 $as_echo_n "checking $ac_header presence... " >&6; }
    12534 cat >conftest.$ac_ext <<_ACEOF
    12535 /* confdefs.h.  */
    12536 _ACEOF
    12537 cat confdefs.h >>conftest.$ac_ext
    12538 cat >>conftest.$ac_ext <<_ACEOF
    12539 /* end confdefs.h.  */
    12540 #include <$ac_header>
    12541 _ACEOF
    12542 if { (ac_try="$ac_cpp conftest.$ac_ext"
    12543 case "(($ac_try" in
    12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12545   *) ac_try_echo=$ac_try;;
    12546 esac
    12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12548 $as_echo "$ac_try_echo") >&5
    12549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    12550   ac_status=$?
    12551   grep -v '^ *+' conftest.er1 >conftest.err
    12552   rm -f conftest.er1
    12553   cat conftest.err >&5
    12554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12555   (exit $ac_status); } >/dev/null && {
    12556          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    12557          test ! -s conftest.err
    12558        }; then
    12559   ac_header_preproc=yes
    12560 else
    12561   $as_echo "$as_me: failed program was:" >&5
    12562 sed 's/^/| /' conftest.$ac_ext >&5
    12563 
    12564   ac_header_preproc=no
    12565 fi
    12566 
    12567 rm -f conftest.err conftest.$ac_ext
    12568 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    12569 $as_echo "$ac_header_preproc" >&6; }
    12570 
    12571 # So?  What about this header?
    12572 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    12573   yes:no: )
    12574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    12575 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    12576     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    12577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    12578     ac_header_preproc=yes
    12579     ;;
    12580   no:yes:* )
    12581     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    12582 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    12583     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    12584 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    12585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    12586 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    12587     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    12588 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    12589     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    12590 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    12591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    12592 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    12593     ( cat <<\_ASBOX
    12594 ## ----------------------------------- ##
    12595 ## Report this to rappture@nanohub.org ##
    12596 ## ----------------------------------- ##
    12597 _ASBOX
    12598      ) | sed "s/^/$as_me: WARNING:     /" >&2
    12599     ;;
    12600 esac
    12601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12602 $as_echo_n "checking for $ac_header... " >&6; }
    12603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12604   $as_echo_n "(cached) " >&6
    12605 else
    12606   eval "$as_ac_Header=\$ac_header_preproc"
    12607 fi
    12608 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12609                  $as_echo "$as_val"'`
    12610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12611 $as_echo "$ac_res" >&6; }
    12612 
    12613 fi
    12614 as_val=`eval 'as_val=${'$as_ac_Header'}
    12615                  $as_echo "$as_val"'`
    12616    if test "x$as_val" = x""yes; then
     8393do :
     8394  ac_fn_cxx_check_header_mongrel "$LINENO" "dx/dx.h" "ac_cv_header_dx_dx_h" "$ac_includes_default"
     8395if test "x$ac_cv_header_dx_dx_h" = xyes; then :
    126178396  cat >>confdefs.h <<_ACEOF
    12618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     8397#define HAVE_DX_DX_H 1
    126198398_ACEOF
    126208399
     
    126378416  LDFLAGS="-L$dir $LDFLAGS"
    126388417  unset ac_cv_lib_DXcallm_DXGetComponentValue
    12639   { $as_echo "$as_me:$LINENO: checking for DXGetComponentValue in -lDXcallm" >&5
     8418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DXGetComponentValue in -lDXcallm" >&5
    126408419$as_echo_n "checking for DXGetComponentValue in -lDXcallm... " >&6; }
    12641 if test "${ac_cv_lib_DXcallm_DXGetComponentValue+set}" = set; then
     8420if ${ac_cv_lib_DXcallm_DXGetComponentValue+:} false; then :
    126428421  $as_echo_n "(cached) " >&6
    126438422else
    126448423  ac_check_lib_save_LIBS=$LIBS
    126458424LIBS="-lDXcallm -lX11 $LIBS"
    12646 cat >conftest.$ac_ext <<_ACEOF
    12647 /* confdefs.h.  */
    12648 _ACEOF
    12649 cat confdefs.h >>conftest.$ac_ext
    12650 cat >>conftest.$ac_ext <<_ACEOF
     8425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    126518426/* end confdefs.h.  */
    126528427
     
    126668441}
    126678442_ACEOF
    12668 rm -f conftest.$ac_objext conftest$ac_exeext
    12669 if { (ac_try="$ac_link"
    12670 case "(($ac_try" in
    12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12672   *) ac_try_echo=$ac_try;;
    12673 esac
    12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12675 $as_echo "$ac_try_echo") >&5
    12676   (eval "$ac_link") 2>conftest.er1
    12677   ac_status=$?
    12678   grep -v '^ *+' conftest.er1 >conftest.err
    12679   rm -f conftest.er1
    12680   cat conftest.err >&5
    12681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12682   (exit $ac_status); } && {
    12683          test -z "$ac_cxx_werror_flag" ||
    12684          test ! -s conftest.err
    12685        } && test -s conftest$ac_exeext && {
    12686          test "$cross_compiling" = yes ||
    12687          $as_test_x conftest$ac_exeext
    12688        }; then
     8443if ac_fn_cxx_try_link "$LINENO"; then :
    126898444  ac_cv_lib_DXcallm_DXGetComponentValue=yes
    126908445else
    12691   $as_echo "$as_me: failed program was:" >&5
    12692 sed 's/^/| /' conftest.$ac_ext >&5
    12693 
    12694         ac_cv_lib_DXcallm_DXGetComponentValue=no
    12695 fi
    12696 
    12697 rm -rf conftest.dSYM
    12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    12699       conftest$ac_exeext conftest.$ac_ext
     8446  ac_cv_lib_DXcallm_DXGetComponentValue=no
     8447fi
     8448rm -f core conftest.err conftest.$ac_objext \
     8449    conftest$ac_exeext conftest.$ac_ext
    127008450LIBS=$ac_check_lib_save_LIBS
    127018451fi
    12702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&5
     8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_DXcallm_DXGetComponentValue" >&5
    127038453$as_echo "$ac_cv_lib_DXcallm_DXGetComponentValue" >&6; }
    12704 if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = x""yes; then
     8454if test "x$ac_cv_lib_DXcallm_DXGetComponentValue" = xyes; then :
    127058455  found=yes
    127068456else
     
    127158465done
    127168466if test "x${DX_LIB_DIR}" = "x" ; then
    12717   { $as_echo "$as_me:$LINENO: WARNING: cannot find OpenDX libraries" >&5
     8467  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find OpenDX libraries" >&5
    127188468$as_echo "$as_me: WARNING: cannot find OpenDX libraries" >&2;}
    127198469fi
    127208470
    12721 { $as_echo "$as_me:$LINENO: checking for libDXcallm library" >&5
     8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libDXcallm library" >&5
    127228472$as_echo_n "checking for libDXcallm library... " >&6; }
    127238473if test "x${DX_LIB_DIR}" = "x" -o "${DX_LIB_DIR}" = "/usr/lib" -o "${DX_LIB_DIR}" = "/usr/lib64"; then
     
    127268476  DX_LIB_SPEC="-L${DX_LIB_DIR} -lDXcallm"
    127278477fi
    12728 { $as_echo "$as_me:$LINENO: result: $DX_LIB_SPEC" >&5
     8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LIB_SPEC" >&5
    127298479$as_echo "$DX_LIB_SPEC" >&6; }
    127308480
     
    127368486fi
    127378487
    12738 
    12739 
    12740 
    12741 
    12742 
    12743 
    127448488for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h
    12745 do
    12746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12748 $as_echo_n "checking for $ac_header... " >&6; }
    12749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12750   $as_echo_n "(cached) " >&6
    12751 else
    12752   cat >conftest.$ac_ext <<_ACEOF
    12753 /* confdefs.h.  */
    12754 _ACEOF
    12755 cat confdefs.h >>conftest.$ac_ext
    12756 cat >>conftest.$ac_ext <<_ACEOF
    12757 /* end confdefs.h.  */
    12758 
     8489do :
     8490  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     8491ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    127598492#define __STDC_CONSTANT_MACROS 1
    127608493
    12761 
    12762 #include <$ac_header>
    12763 _ACEOF
    12764 rm -f conftest.$ac_objext
    12765 if { (ac_try="$ac_compile"
    12766 case "(($ac_try" in
    12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12768   *) ac_try_echo=$ac_try;;
    12769 esac
    12770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12771 $as_echo "$ac_try_echo") >&5
    12772   (eval "$ac_compile") 2>conftest.er1
    12773   ac_status=$?
    12774   grep -v '^ *+' conftest.er1 >conftest.err
    12775   rm -f conftest.er1
    12776   cat conftest.err >&5
    12777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12778   (exit $ac_status); } && {
    12779          test -z "$ac_cxx_werror_flag" ||
    12780          test ! -s conftest.err
    12781        } && test -s conftest.$ac_objext; then
    12782   eval "$as_ac_Header=yes"
    12783 else
    12784   $as_echo "$as_me: failed program was:" >&5
    12785 sed 's/^/| /' conftest.$ac_ext >&5
    12786 
    12787         eval "$as_ac_Header=no"
    12788 fi
    12789 
    12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    12791 fi
    12792 ac_res=`eval 'as_val=${'$as_ac_Header'}
    12793                  $as_echo "$as_val"'`
    12794                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    12795 $as_echo "$ac_res" >&6; }
    12796 as_val=`eval 'as_val=${'$as_ac_Header'}
    12797                  $as_echo "$as_val"'`
    12798    if test "x$as_val" = x""yes; then
     8494"
     8495if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    127998496  cat >>confdefs.h <<_ACEOF
    128008497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    128078504CPPFLAGS=$save_CPPFLAGS
    128088505
    12809 
    12810 { $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5
     8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
    128118507$as_echo_n "checking for main in -lavcodec... " >&6; }
    12812 if test "${ac_cv_lib_avcodec_main+set}" = set; then
     8508if ${ac_cv_lib_avcodec_main+:} false; then :
    128138509  $as_echo_n "(cached) " >&6
    128148510else
    128158511  ac_check_lib_save_LIBS=$LIBS
    128168512LIBS="-lavcodec  $LIBS"
    12817 cat >conftest.$ac_ext <<_ACEOF
    12818 /* confdefs.h.  */
    12819 _ACEOF
    12820 cat confdefs.h >>conftest.$ac_ext
    12821 cat >>conftest.$ac_ext <<_ACEOF
     8513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    128228514/* end confdefs.h.  */
    128238515
     
    128318523}
    128328524_ACEOF
    12833 rm -f conftest.$ac_objext conftest$ac_exeext
    12834 if { (ac_try="$ac_link"
    12835 case "(($ac_try" in
    12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12837   *) ac_try_echo=$ac_try;;
    12838 esac
    12839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12840 $as_echo "$ac_try_echo") >&5
    12841   (eval "$ac_link") 2>conftest.er1
    12842   ac_status=$?
    12843   grep -v '^ *+' conftest.er1 >conftest.err
    12844   rm -f conftest.er1
    12845   cat conftest.err >&5
    12846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12847   (exit $ac_status); } && {
    12848          test -z "$ac_cxx_werror_flag" ||
    12849          test ! -s conftest.err
    12850        } && test -s conftest$ac_exeext && {
    12851          test "$cross_compiling" = yes ||
    12852          $as_test_x conftest$ac_exeext
    12853        }; then
     8525if ac_fn_cxx_try_link "$LINENO"; then :
    128548526  ac_cv_lib_avcodec_main=yes
    128558527else
    12856   $as_echo "$as_me: failed program was:" >&5
    12857 sed 's/^/| /' conftest.$ac_ext >&5
    12858 
    12859         ac_cv_lib_avcodec_main=no
    12860 fi
    12861 
    12862 rm -rf conftest.dSYM
    12863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    12864       conftest$ac_exeext conftest.$ac_ext
     8528  ac_cv_lib_avcodec_main=no
     8529fi
     8530rm -f core conftest.err conftest.$ac_objext \
     8531    conftest$ac_exeext conftest.$ac_ext
    128658532LIBS=$ac_check_lib_save_LIBS
    128668533fi
    12867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5
     8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
    128688535$as_echo "$ac_cv_lib_avcodec_main" >&6; }
    12869 if test "x$ac_cv_lib_avcodec_main" = x""yes; then
     8536if test "x$ac_cv_lib_avcodec_main" = xyes; then :
    128708537  cat >>confdefs.h <<_ACEOF
    128718538#define HAVE_LIBAVCODEC 1
     
    128758542
    128768543else
    12877   { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5
    12878 $as_echo "$as_me: error: requires libavcodec" >&2;}
    12879    { (exit 1); exit 1; }; }
    12880 fi
    12881 
    12882 
    12883 { $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5
     8544  as_fn_error $? "requires libavcodec" "$LINENO" 5
     8545fi
     8546
     8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
    128848548$as_echo_n "checking for main in -lavutil... " >&6; }
    12885 if test "${ac_cv_lib_avutil_main+set}" = set; then
     8549if ${ac_cv_lib_avutil_main+:} false; then :
    128868550  $as_echo_n "(cached) " >&6
    128878551else
    128888552  ac_check_lib_save_LIBS=$LIBS
    128898553LIBS="-lavutil  $LIBS"
    12890 cat >conftest.$ac_ext <<_ACEOF
    12891 /* confdefs.h.  */
    12892 _ACEOF
    12893 cat confdefs.h >>conftest.$ac_ext
    12894 cat >>conftest.$ac_ext <<_ACEOF
     8554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    128958555/* end confdefs.h.  */
    128968556
     
    129048564}
    129058565_ACEOF
    12906 rm -f conftest.$ac_objext conftest$ac_exeext
    12907 if { (ac_try="$ac_link"
    12908 case "(($ac_try" in
    12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12910   *) ac_try_echo=$ac_try;;
    12911 esac
    12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12913 $as_echo "$ac_try_echo") >&5
    12914   (eval "$ac_link") 2>conftest.er1
    12915   ac_status=$?
    12916   grep -v '^ *+' conftest.er1 >conftest.err
    12917   rm -f conftest.er1
    12918   cat conftest.err >&5
    12919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12920   (exit $ac_status); } && {
    12921          test -z "$ac_cxx_werror_flag" ||
    12922          test ! -s conftest.err
    12923        } && test -s conftest$ac_exeext && {
    12924          test "$cross_compiling" = yes ||
    12925          $as_test_x conftest$ac_exeext
    12926        }; then
     8566if ac_fn_cxx_try_link "$LINENO"; then :
    129278567  ac_cv_lib_avutil_main=yes
    129288568else
    12929   $as_echo "$as_me: failed program was:" >&5
    12930 sed 's/^/| /' conftest.$ac_ext >&5
    12931 
    12932         ac_cv_lib_avutil_main=no
    12933 fi
    12934 
    12935 rm -rf conftest.dSYM
    12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    12937       conftest$ac_exeext conftest.$ac_ext
     8569  ac_cv_lib_avutil_main=no
     8570fi
     8571rm -f core conftest.err conftest.$ac_objext \
     8572    conftest$ac_exeext conftest.$ac_ext
    129388573LIBS=$ac_check_lib_save_LIBS
    129398574fi
    12940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
     8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
    129418576$as_echo "$ac_cv_lib_avutil_main" >&6; }
    12942 if test "x$ac_cv_lib_avutil_main" = x""yes; then
     8577if test "x$ac_cv_lib_avutil_main" = xyes; then :
    129438578  cat >>confdefs.h <<_ACEOF
    129448579#define HAVE_LIBAVUTIL 1
     
    129488583
    129498584else
    12950   { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5
    12951 $as_echo "$as_me: error: requires libavutil" >&2;}
    12952    { (exit 1); exit 1; }; }
    12953 fi
    12954 
    12955 
    12956 { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
     8585  as_fn_error $? "requires libavutil" "$LINENO" 5
     8586fi
     8587
     8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
    129578589$as_echo_n "checking for main in -lavformat... " >&6; }
    12958 if test "${ac_cv_lib_avformat_main+set}" = set; then
     8590if ${ac_cv_lib_avformat_main+:} false; then :
    129598591  $as_echo_n "(cached) " >&6
    129608592else
    129618593  ac_check_lib_save_LIBS=$LIBS
    129628594LIBS="-lavformat  $LIBS"
    12963 cat >conftest.$ac_ext <<_ACEOF
    12964 /* confdefs.h.  */
    12965 _ACEOF
    12966 cat confdefs.h >>conftest.$ac_ext
    12967 cat >>conftest.$ac_ext <<_ACEOF
     8595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    129688596/* end confdefs.h.  */
    129698597
     
    129778605}
    129788606_ACEOF
    12979 rm -f conftest.$ac_objext conftest$ac_exeext
    12980 if { (ac_try="$ac_link"
    12981 case "(($ac_try" in
    12982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12983   *) ac_try_echo=$ac_try;;
    12984 esac
    12985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12986 $as_echo "$ac_try_echo") >&5
    12987   (eval "$ac_link") 2>conftest.er1
    12988   ac_status=$?
    12989   grep -v '^ *+' conftest.er1 >conftest.err
    12990   rm -f conftest.er1
    12991   cat conftest.err >&5
    12992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12993   (exit $ac_status); } && {
    12994          test -z "$ac_cxx_werror_flag" ||
    12995          test ! -s conftest.err
    12996        } && test -s conftest$ac_exeext && {
    12997          test "$cross_compiling" = yes ||
    12998          $as_test_x conftest$ac_exeext
    12999        }; then
     8607if ac_fn_cxx_try_link "$LINENO"; then :
    130008608  ac_cv_lib_avformat_main=yes
    130018609else
    13002   $as_echo "$as_me: failed program was:" >&5
    13003 sed 's/^/| /' conftest.$ac_ext >&5
    13004 
    13005         ac_cv_lib_avformat_main=no
    13006 fi
    13007 
    13008 rm -rf conftest.dSYM
    13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13010       conftest$ac_exeext conftest.$ac_ext
     8610  ac_cv_lib_avformat_main=no
     8611fi
     8612rm -f core conftest.err conftest.$ac_objext \
     8613    conftest$ac_exeext conftest.$ac_ext
    130118614LIBS=$ac_check_lib_save_LIBS
    130128615fi
    13013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
     8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
    130148617$as_echo "$ac_cv_lib_avformat_main" >&6; }
    13015 if test "x$ac_cv_lib_avformat_main" = x""yes; then
     8618if test "x$ac_cv_lib_avformat_main" = xyes; then :
    130168619  cat >>confdefs.h <<_ACEOF
    130178620#define HAVE_LIBAVFORMAT 1
     
    130218624
    130228625else
    13023   { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5
    13024 $as_echo "$as_me: error: requires libavformat" >&2;}
    13025    { (exit 1); exit 1; }; }
    13026 fi
    13027 
    13028 
    13029 { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
     8626  as_fn_error $? "requires libavformat" "$LINENO" 5
     8627fi
     8628
     8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
    130308630$as_echo_n "checking for main in -lswscale... " >&6; }
    13031 if test "${ac_cv_lib_swscale_main+set}" = set; then
     8631if ${ac_cv_lib_swscale_main+:} false; then :
    130328632  $as_echo_n "(cached) " >&6
    130338633else
    130348634  ac_check_lib_save_LIBS=$LIBS
    130358635LIBS="-lswscale  $LIBS"
    13036 cat >conftest.$ac_ext <<_ACEOF
    13037 /* confdefs.h.  */
    13038 _ACEOF
    13039 cat confdefs.h >>conftest.$ac_ext
    13040 cat >>conftest.$ac_ext <<_ACEOF
     8636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    130418637/* end confdefs.h.  */
    130428638
     
    130508646}
    130518647_ACEOF
    13052 rm -f conftest.$ac_objext conftest$ac_exeext
    13053 if { (ac_try="$ac_link"
    13054 case "(($ac_try" in
    13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13056   *) ac_try_echo=$ac_try;;
    13057 esac
    13058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13059 $as_echo "$ac_try_echo") >&5
    13060   (eval "$ac_link") 2>conftest.er1
    13061   ac_status=$?
    13062   grep -v '^ *+' conftest.er1 >conftest.err
    13063   rm -f conftest.er1
    13064   cat conftest.err >&5
    13065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13066   (exit $ac_status); } && {
    13067          test -z "$ac_cxx_werror_flag" ||
    13068          test ! -s conftest.err
    13069        } && test -s conftest$ac_exeext && {
    13070          test "$cross_compiling" = yes ||
    13071          $as_test_x conftest$ac_exeext
    13072        }; then
     8648if ac_fn_cxx_try_link "$LINENO"; then :
    130738649  ac_cv_lib_swscale_main=yes
    130748650else
    13075   $as_echo "$as_me: failed program was:" >&5
    13076 sed 's/^/| /' conftest.$ac_ext >&5
    13077 
    13078         ac_cv_lib_swscale_main=no
    13079 fi
    13080 
    13081 rm -rf conftest.dSYM
    13082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13083       conftest$ac_exeext conftest.$ac_ext
     8651  ac_cv_lib_swscale_main=no
     8652fi
     8653rm -f core conftest.err conftest.$ac_objext \
     8654    conftest$ac_exeext conftest.$ac_ext
    130848655LIBS=$ac_check_lib_save_LIBS
    130858656fi
    13086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
     8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
    130878658$as_echo "$ac_cv_lib_swscale_main" >&6; }
    13088 if test "x$ac_cv_lib_swscale_main" = x""yes; then
     8659if test "x$ac_cv_lib_swscale_main" = xyes; then :
    130898660  cat >>confdefs.h <<_ACEOF
    130908661#define HAVE_LIBSWSCALE 1
     
    130958666fi
    130968667
    13097 
    130988668for ac_func in avcodec_decode_video2
    13099 do
    13100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13102 $as_echo_n "checking for $ac_func... " >&6; }
    13103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13104   $as_echo_n "(cached) " >&6
    13105 else
    13106   cat >conftest.$ac_ext <<_ACEOF
    13107 /* confdefs.h.  */
    13108 _ACEOF
    13109 cat confdefs.h >>conftest.$ac_ext
    13110 cat >>conftest.$ac_ext <<_ACEOF
    13111 /* end confdefs.h.  */
    13112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13114 #define $ac_func innocuous_$ac_func
    13115 
    13116 /* System header to define __stub macros and hopefully few prototypes,
    13117     which can conflict with char $ac_func (); below.
    13118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13119     <limits.h> exists even on freestanding compilers.  */
    13120 
    13121 #ifdef __STDC__
    13122 # include <limits.h>
    13123 #else
    13124 # include <assert.h>
    13125 #endif
    13126 
    13127 #undef $ac_func
    13128 
    13129 /* Override any GCC internal prototype to avoid an error.
    13130    Use char because int might match the return type of a GCC
    13131    builtin and then its argument prototype would still apply.  */
    13132 #ifdef __cplusplus
    13133 extern "C"
    13134 #endif
    13135 char $ac_func ();
    13136 /* The GNU C library defines this for functions which it implements
    13137     to always fail with ENOSYS.  Some functions are actually named
    13138     something starting with __ and the normal name is an alias.  */
    13139 #if defined __stub_$ac_func || defined __stub___$ac_func
    13140 choke me
    13141 #endif
    13142 
    13143 int
    13144 main ()
    13145 {
    13146 return $ac_func ();
    13147   ;
    13148   return 0;
    13149 }
    13150 _ACEOF
    13151 rm -f conftest.$ac_objext conftest$ac_exeext
    13152 if { (ac_try="$ac_link"
    13153 case "(($ac_try" in
    13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13155   *) ac_try_echo=$ac_try;;
    13156 esac
    13157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13158 $as_echo "$ac_try_echo") >&5
    13159   (eval "$ac_link") 2>conftest.er1
    13160   ac_status=$?
    13161   grep -v '^ *+' conftest.er1 >conftest.err
    13162   rm -f conftest.er1
    13163   cat conftest.err >&5
    13164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13165   (exit $ac_status); } && {
    13166          test -z "$ac_cxx_werror_flag" ||
    13167          test ! -s conftest.err
    13168        } && test -s conftest$ac_exeext && {
    13169          test "$cross_compiling" = yes ||
    13170          $as_test_x conftest$ac_exeext
    13171        }; then
    13172   eval "$as_ac_var=yes"
    13173 else
    13174   $as_echo "$as_me: failed program was:" >&5
    13175 sed 's/^/| /' conftest.$ac_ext >&5
    13176 
    13177         eval "$as_ac_var=no"
    13178 fi
    13179 
    13180 rm -rf conftest.dSYM
    13181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13182       conftest$ac_exeext conftest.$ac_ext
    13183 fi
    13184 ac_res=`eval 'as_val=${'$as_ac_var'}
    13185                  $as_echo "$as_val"'`
    13186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13187 $as_echo "$ac_res" >&6; }
    13188 as_val=`eval 'as_val=${'$as_ac_var'}
    13189                  $as_echo "$as_val"'`
    13190    if test "x$as_val" = x""yes; then
     8669do :
     8670  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
     8671if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
    131918672  cat >>confdefs.h <<_ACEOF
    13192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8673#define HAVE_AVCODEC_DECODE_VIDEO2 1
    131938674_ACEOF
    131948675
     
    131968677done
    131978678
    13198 
    131998679for ac_func in avcodec_decode_video
    13200 do
    13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13203 $as_echo_n "checking for $ac_func... " >&6; }
    13204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13205   $as_echo_n "(cached) " >&6
    13206 else
    13207   cat >conftest.$ac_ext <<_ACEOF
    13208 /* confdefs.h.  */
    13209 _ACEOF
    13210 cat confdefs.h >>conftest.$ac_ext
    13211 cat >>conftest.$ac_ext <<_ACEOF
    13212 /* end confdefs.h.  */
    13213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13215 #define $ac_func innocuous_$ac_func
    13216 
    13217 /* System header to define __stub macros and hopefully few prototypes,
    13218     which can conflict with char $ac_func (); below.
    13219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13220     <limits.h> exists even on freestanding compilers.  */
    13221 
    13222 #ifdef __STDC__
    13223 # include <limits.h>
    13224 #else
    13225 # include <assert.h>
    13226 #endif
    13227 
    13228 #undef $ac_func
    13229 
    13230 /* Override any GCC internal prototype to avoid an error.
    13231    Use char because int might match the return type of a GCC
    13232    builtin and then its argument prototype would still apply.  */
    13233 #ifdef __cplusplus
    13234 extern "C"
    13235 #endif
    13236 char $ac_func ();
    13237 /* The GNU C library defines this for functions which it implements
    13238     to always fail with ENOSYS.  Some functions are actually named
    13239     something starting with __ and the normal name is an alias.  */
    13240 #if defined __stub_$ac_func || defined __stub___$ac_func
    13241 choke me
    13242 #endif
    13243 
    13244 int
    13245 main ()
    13246 {
    13247 return $ac_func ();
    13248   ;
    13249   return 0;
    13250 }
    13251 _ACEOF
    13252 rm -f conftest.$ac_objext conftest$ac_exeext
    13253 if { (ac_try="$ac_link"
    13254 case "(($ac_try" in
    13255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13256   *) ac_try_echo=$ac_try;;
    13257 esac
    13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13259 $as_echo "$ac_try_echo") >&5
    13260   (eval "$ac_link") 2>conftest.er1
    13261   ac_status=$?
    13262   grep -v '^ *+' conftest.er1 >conftest.err
    13263   rm -f conftest.er1
    13264   cat conftest.err >&5
    13265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13266   (exit $ac_status); } && {
    13267          test -z "$ac_cxx_werror_flag" ||
    13268          test ! -s conftest.err
    13269        } && test -s conftest$ac_exeext && {
    13270          test "$cross_compiling" = yes ||
    13271          $as_test_x conftest$ac_exeext
    13272        }; then
    13273   eval "$as_ac_var=yes"
    13274 else
    13275   $as_echo "$as_me: failed program was:" >&5
    13276 sed 's/^/| /' conftest.$ac_ext >&5
    13277 
    13278         eval "$as_ac_var=no"
    13279 fi
    13280 
    13281 rm -rf conftest.dSYM
    13282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13283       conftest$ac_exeext conftest.$ac_ext
    13284 fi
    13285 ac_res=`eval 'as_val=${'$as_ac_var'}
    13286                  $as_echo "$as_val"'`
    13287                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13288 $as_echo "$ac_res" >&6; }
    13289 as_val=`eval 'as_val=${'$as_ac_var'}
    13290                  $as_echo "$as_val"'`
    13291    if test "x$as_val" = x""yes; then
     8680do :
     8681  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
     8682if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
    132928683  cat >>confdefs.h <<_ACEOF
    13293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8684#define HAVE_AVCODEC_DECODE_VIDEO 1
    132948685_ACEOF
    132958686
     
    132978688done
    132988689
    13299 
    133008690for ac_func in avformat_open_input
    13301 do
    13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13304 $as_echo_n "checking for $ac_func... " >&6; }
    13305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13306   $as_echo_n "(cached) " >&6
    13307 else
    13308   cat >conftest.$ac_ext <<_ACEOF
    13309 /* confdefs.h.  */
    13310 _ACEOF
    13311 cat confdefs.h >>conftest.$ac_ext
    13312 cat >>conftest.$ac_ext <<_ACEOF
    13313 /* end confdefs.h.  */
    13314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13316 #define $ac_func innocuous_$ac_func
    13317 
    13318 /* System header to define __stub macros and hopefully few prototypes,
    13319     which can conflict with char $ac_func (); below.
    13320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13321     <limits.h> exists even on freestanding compilers.  */
    13322 
    13323 #ifdef __STDC__
    13324 # include <limits.h>
    13325 #else
    13326 # include <assert.h>
    13327 #endif
    13328 
    13329 #undef $ac_func
    13330 
    13331 /* Override any GCC internal prototype to avoid an error.
    13332    Use char because int might match the return type of a GCC
    13333    builtin and then its argument prototype would still apply.  */
    13334 #ifdef __cplusplus
    13335 extern "C"
    13336 #endif
    13337 char $ac_func ();
    13338 /* The GNU C library defines this for functions which it implements
    13339     to always fail with ENOSYS.  Some functions are actually named
    13340     something starting with __ and the normal name is an alias.  */
    13341 #if defined __stub_$ac_func || defined __stub___$ac_func
    13342 choke me
    13343 #endif
    13344 
    13345 int
    13346 main ()
    13347 {
    13348 return $ac_func ();
    13349   ;
    13350   return 0;
    13351 }
    13352 _ACEOF
    13353 rm -f conftest.$ac_objext conftest$ac_exeext
    13354 if { (ac_try="$ac_link"
    13355 case "(($ac_try" in
    13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13357   *) ac_try_echo=$ac_try;;
    13358 esac
    13359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13360 $as_echo "$ac_try_echo") >&5
    13361   (eval "$ac_link") 2>conftest.er1
    13362   ac_status=$?
    13363   grep -v '^ *+' conftest.er1 >conftest.err
    13364   rm -f conftest.er1
    13365   cat conftest.err >&5
    13366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13367   (exit $ac_status); } && {
    13368          test -z "$ac_cxx_werror_flag" ||
    13369          test ! -s conftest.err
    13370        } && test -s conftest$ac_exeext && {
    13371          test "$cross_compiling" = yes ||
    13372          $as_test_x conftest$ac_exeext
    13373        }; then
    13374   eval "$as_ac_var=yes"
    13375 else
    13376   $as_echo "$as_me: failed program was:" >&5
    13377 sed 's/^/| /' conftest.$ac_ext >&5
    13378 
    13379         eval "$as_ac_var=no"
    13380 fi
    13381 
    13382 rm -rf conftest.dSYM
    13383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13384       conftest$ac_exeext conftest.$ac_ext
    13385 fi
    13386 ac_res=`eval 'as_val=${'$as_ac_var'}
    13387                  $as_echo "$as_val"'`
    13388                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13389 $as_echo "$ac_res" >&6; }
    13390 as_val=`eval 'as_val=${'$as_ac_var'}
    13391                  $as_echo "$as_val"'`
    13392    if test "x$as_val" = x""yes; then
     8691do :
     8692  ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
     8693if test "x$ac_cv_func_avformat_open_input" = xyes; then :
    133938694  cat >>confdefs.h <<_ACEOF
    13394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8695#define HAVE_AVFORMAT_OPEN_INPUT 1
    133958696_ACEOF
    133968697
     
    133988699done
    133998700
    13400 
    134018701for ac_func in av_open_input_file
    13402 do
    13403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13404 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13405 $as_echo_n "checking for $ac_func... " >&6; }
    13406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13407   $as_echo_n "(cached) " >&6
    13408 else
    13409   cat >conftest.$ac_ext <<_ACEOF
    13410 /* confdefs.h.  */
    13411 _ACEOF
    13412 cat confdefs.h >>conftest.$ac_ext
    13413 cat >>conftest.$ac_ext <<_ACEOF
    13414 /* end confdefs.h.  */
    13415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13417 #define $ac_func innocuous_$ac_func
    13418 
    13419 /* System header to define __stub macros and hopefully few prototypes,
    13420     which can conflict with char $ac_func (); below.
    13421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13422     <limits.h> exists even on freestanding compilers.  */
    13423 
    13424 #ifdef __STDC__
    13425 # include <limits.h>
    13426 #else
    13427 # include <assert.h>
    13428 #endif
    13429 
    13430 #undef $ac_func
    13431 
    13432 /* Override any GCC internal prototype to avoid an error.
    13433    Use char because int might match the return type of a GCC
    13434    builtin and then its argument prototype would still apply.  */
    13435 #ifdef __cplusplus
    13436 extern "C"
    13437 #endif
    13438 char $ac_func ();
    13439 /* The GNU C library defines this for functions which it implements
    13440     to always fail with ENOSYS.  Some functions are actually named
    13441     something starting with __ and the normal name is an alias.  */
    13442 #if defined __stub_$ac_func || defined __stub___$ac_func
    13443 choke me
    13444 #endif
    13445 
    13446 int
    13447 main ()
    13448 {
    13449 return $ac_func ();
    13450   ;
    13451   return 0;
    13452 }
    13453 _ACEOF
    13454 rm -f conftest.$ac_objext conftest$ac_exeext
    13455 if { (ac_try="$ac_link"
    13456 case "(($ac_try" in
    13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13458   *) ac_try_echo=$ac_try;;
    13459 esac
    13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13461 $as_echo "$ac_try_echo") >&5
    13462   (eval "$ac_link") 2>conftest.er1
    13463   ac_status=$?
    13464   grep -v '^ *+' conftest.er1 >conftest.err
    13465   rm -f conftest.er1
    13466   cat conftest.err >&5
    13467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13468   (exit $ac_status); } && {
    13469          test -z "$ac_cxx_werror_flag" ||
    13470          test ! -s conftest.err
    13471        } && test -s conftest$ac_exeext && {
    13472          test "$cross_compiling" = yes ||
    13473          $as_test_x conftest$ac_exeext
    13474        }; then
    13475   eval "$as_ac_var=yes"
    13476 else
    13477   $as_echo "$as_me: failed program was:" >&5
    13478 sed 's/^/| /' conftest.$ac_ext >&5
    13479 
    13480         eval "$as_ac_var=no"
    13481 fi
    13482 
    13483 rm -rf conftest.dSYM
    13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13485       conftest$ac_exeext conftest.$ac_ext
    13486 fi
    13487 ac_res=`eval 'as_val=${'$as_ac_var'}
    13488                  $as_echo "$as_val"'`
    13489                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13490 $as_echo "$ac_res" >&6; }
    13491 as_val=`eval 'as_val=${'$as_ac_var'}
    13492                  $as_echo "$as_val"'`
    13493    if test "x$as_val" = x""yes; then
     8702do :
     8703  ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
     8704if test "x$ac_cv_func_av_open_input_file" = xyes; then :
    134948705  cat >>confdefs.h <<_ACEOF
    13495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8706#define HAVE_AV_OPEN_INPUT_FILE 1
    134968707_ACEOF
    134978708
     
    134998710done
    135008711
    13501 
    135028712for ac_func in av_guess_format
    13503 do
    13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13505 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13506 $as_echo_n "checking for $ac_func... " >&6; }
    13507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13508   $as_echo_n "(cached) " >&6
    13509 else
    13510   cat >conftest.$ac_ext <<_ACEOF
    13511 /* confdefs.h.  */
    13512 _ACEOF
    13513 cat confdefs.h >>conftest.$ac_ext
    13514 cat >>conftest.$ac_ext <<_ACEOF
    13515 /* end confdefs.h.  */
    13516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13518 #define $ac_func innocuous_$ac_func
    13519 
    13520 /* System header to define __stub macros and hopefully few prototypes,
    13521     which can conflict with char $ac_func (); below.
    13522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13523     <limits.h> exists even on freestanding compilers.  */
    13524 
    13525 #ifdef __STDC__
    13526 # include <limits.h>
    13527 #else
    13528 # include <assert.h>
    13529 #endif
    13530 
    13531 #undef $ac_func
    13532 
    13533 /* Override any GCC internal prototype to avoid an error.
    13534    Use char because int might match the return type of a GCC
    13535    builtin and then its argument prototype would still apply.  */
    13536 #ifdef __cplusplus
    13537 extern "C"
    13538 #endif
    13539 char $ac_func ();
    13540 /* The GNU C library defines this for functions which it implements
    13541     to always fail with ENOSYS.  Some functions are actually named
    13542     something starting with __ and the normal name is an alias.  */
    13543 #if defined __stub_$ac_func || defined __stub___$ac_func
    13544 choke me
    13545 #endif
    13546 
    13547 int
    13548 main ()
    13549 {
    13550 return $ac_func ();
    13551   ;
    13552   return 0;
    13553 }
    13554 _ACEOF
    13555 rm -f conftest.$ac_objext conftest$ac_exeext
    13556 if { (ac_try="$ac_link"
    13557 case "(($ac_try" in
    13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13559   *) ac_try_echo=$ac_try;;
    13560 esac
    13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13562 $as_echo "$ac_try_echo") >&5
    13563   (eval "$ac_link") 2>conftest.er1
    13564   ac_status=$?
    13565   grep -v '^ *+' conftest.er1 >conftest.err
    13566   rm -f conftest.er1
    13567   cat conftest.err >&5
    13568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13569   (exit $ac_status); } && {
    13570          test -z "$ac_cxx_werror_flag" ||
    13571          test ! -s conftest.err
    13572        } && test -s conftest$ac_exeext && {
    13573          test "$cross_compiling" = yes ||
    13574          $as_test_x conftest$ac_exeext
    13575        }; then
    13576   eval "$as_ac_var=yes"
    13577 else
    13578   $as_echo "$as_me: failed program was:" >&5
    13579 sed 's/^/| /' conftest.$ac_ext >&5
    13580 
    13581         eval "$as_ac_var=no"
    13582 fi
    13583 
    13584 rm -rf conftest.dSYM
    13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13586       conftest$ac_exeext conftest.$ac_ext
    13587 fi
    13588 ac_res=`eval 'as_val=${'$as_ac_var'}
    13589                  $as_echo "$as_val"'`
    13590                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13591 $as_echo "$ac_res" >&6; }
    13592 as_val=`eval 'as_val=${'$as_ac_var'}
    13593                  $as_echo "$as_val"'`
    13594    if test "x$as_val" = x""yes; then
     8713do :
     8714  ac_fn_cxx_check_func "$LINENO" "av_guess_format" "ac_cv_func_av_guess_format"
     8715if test "x$ac_cv_func_av_guess_format" = xyes; then :
    135958716  cat >>confdefs.h <<_ACEOF
    13596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8717#define HAVE_AV_GUESS_FORMAT 1
    135978718_ACEOF
    135988719
     
    136008721done
    136018722
    13602 
    136038723for ac_func in guess_format
    13604 do
    13605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13607 $as_echo_n "checking for $ac_func... " >&6; }
    13608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13609   $as_echo_n "(cached) " >&6
    13610 else
    13611   cat >conftest.$ac_ext <<_ACEOF
    13612 /* confdefs.h.  */
    13613 _ACEOF
    13614 cat confdefs.h >>conftest.$ac_ext
    13615 cat >>conftest.$ac_ext <<_ACEOF
    13616 /* end confdefs.h.  */
    13617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13619 #define $ac_func innocuous_$ac_func
    13620 
    13621 /* System header to define __stub macros and hopefully few prototypes,
    13622     which can conflict with char $ac_func (); below.
    13623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13624     <limits.h> exists even on freestanding compilers.  */
    13625 
    13626 #ifdef __STDC__
    13627 # include <limits.h>
    13628 #else
    13629 # include <assert.h>
    13630 #endif
    13631 
    13632 #undef $ac_func
    13633 
    13634 /* Override any GCC internal prototype to avoid an error.
    13635    Use char because int might match the return type of a GCC
    13636    builtin and then its argument prototype would still apply.  */
    13637 #ifdef __cplusplus
    13638 extern "C"
    13639 #endif
    13640 char $ac_func ();
    13641 /* The GNU C library defines this for functions which it implements
    13642     to always fail with ENOSYS.  Some functions are actually named
    13643     something starting with __ and the normal name is an alias.  */
    13644 #if defined __stub_$ac_func || defined __stub___$ac_func
    13645 choke me
    13646 #endif
    13647 
    13648 int
    13649 main ()
    13650 {
    13651 return $ac_func ();
    13652   ;
    13653   return 0;
    13654 }
    13655 _ACEOF
    13656 rm -f conftest.$ac_objext conftest$ac_exeext
    13657 if { (ac_try="$ac_link"
    13658 case "(($ac_try" in
    13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13660   *) ac_try_echo=$ac_try;;
    13661 esac
    13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13663 $as_echo "$ac_try_echo") >&5
    13664   (eval "$ac_link") 2>conftest.er1
    13665   ac_status=$?
    13666   grep -v '^ *+' conftest.er1 >conftest.err
    13667   rm -f conftest.er1
    13668   cat conftest.err >&5
    13669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13670   (exit $ac_status); } && {
    13671          test -z "$ac_cxx_werror_flag" ||
    13672          test ! -s conftest.err
    13673        } && test -s conftest$ac_exeext && {
    13674          test "$cross_compiling" = yes ||
    13675          $as_test_x conftest$ac_exeext
    13676        }; then
    13677   eval "$as_ac_var=yes"
    13678 else
    13679   $as_echo "$as_me: failed program was:" >&5
    13680 sed 's/^/| /' conftest.$ac_ext >&5
    13681 
    13682         eval "$as_ac_var=no"
    13683 fi
    13684 
    13685 rm -rf conftest.dSYM
    13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13687       conftest$ac_exeext conftest.$ac_ext
    13688 fi
    13689 ac_res=`eval 'as_val=${'$as_ac_var'}
    13690                  $as_echo "$as_val"'`
    13691                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13692 $as_echo "$ac_res" >&6; }
    13693 as_val=`eval 'as_val=${'$as_ac_var'}
    13694                  $as_echo "$as_val"'`
    13695    if test "x$as_val" = x""yes; then
     8724do :
     8725  ac_fn_cxx_check_func "$LINENO" "guess_format" "ac_cv_func_guess_format"
     8726if test "x$ac_cv_func_guess_format" = xyes; then :
    136968727  cat >>confdefs.h <<_ACEOF
    13697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8728#define HAVE_GUESS_FORMAT 1
    136988729_ACEOF
    136998730
     
    137018732done
    137028733
    13703 
    137048734for ac_func in av_dump_format
    13705 do
    13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13708 $as_echo_n "checking for $ac_func... " >&6; }
    13709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13710   $as_echo_n "(cached) " >&6
    13711 else
    13712   cat >conftest.$ac_ext <<_ACEOF
    13713 /* confdefs.h.  */
    13714 _ACEOF
    13715 cat confdefs.h >>conftest.$ac_ext
    13716 cat >>conftest.$ac_ext <<_ACEOF
    13717 /* end confdefs.h.  */
    13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13720 #define $ac_func innocuous_$ac_func
    13721 
    13722 /* System header to define __stub macros and hopefully few prototypes,
    13723     which can conflict with char $ac_func (); below.
    13724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13725     <limits.h> exists even on freestanding compilers.  */
    13726 
    13727 #ifdef __STDC__
    13728 # include <limits.h>
    13729 #else
    13730 # include <assert.h>
    13731 #endif
    13732 
    13733 #undef $ac_func
    13734 
    13735 /* Override any GCC internal prototype to avoid an error.
    13736    Use char because int might match the return type of a GCC
    13737    builtin and then its argument prototype would still apply.  */
    13738 #ifdef __cplusplus
    13739 extern "C"
    13740 #endif
    13741 char $ac_func ();
    13742 /* The GNU C library defines this for functions which it implements
    13743     to always fail with ENOSYS.  Some functions are actually named
    13744     something starting with __ and the normal name is an alias.  */
    13745 #if defined __stub_$ac_func || defined __stub___$ac_func
    13746 choke me
    13747 #endif
    13748 
    13749 int
    13750 main ()
    13751 {
    13752 return $ac_func ();
    13753   ;
    13754   return 0;
    13755 }
    13756 _ACEOF
    13757 rm -f conftest.$ac_objext conftest$ac_exeext
    13758 if { (ac_try="$ac_link"
    13759 case "(($ac_try" in
    13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13761   *) ac_try_echo=$ac_try;;
    13762 esac
    13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13764 $as_echo "$ac_try_echo") >&5
    13765   (eval "$ac_link") 2>conftest.er1
    13766   ac_status=$?
    13767   grep -v '^ *+' conftest.er1 >conftest.err
    13768   rm -f conftest.er1
    13769   cat conftest.err >&5
    13770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13771   (exit $ac_status); } && {
    13772          test -z "$ac_cxx_werror_flag" ||
    13773          test ! -s conftest.err
    13774        } && test -s conftest$ac_exeext && {
    13775          test "$cross_compiling" = yes ||
    13776          $as_test_x conftest$ac_exeext
    13777        }; then
    13778   eval "$as_ac_var=yes"
    13779 else
    13780   $as_echo "$as_me: failed program was:" >&5
    13781 sed 's/^/| /' conftest.$ac_ext >&5
    13782 
    13783         eval "$as_ac_var=no"
    13784 fi
    13785 
    13786 rm -rf conftest.dSYM
    13787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13788       conftest$ac_exeext conftest.$ac_ext
    13789 fi
    13790 ac_res=`eval 'as_val=${'$as_ac_var'}
    13791                  $as_echo "$as_val"'`
    13792                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13793 $as_echo "$ac_res" >&6; }
    13794 as_val=`eval 'as_val=${'$as_ac_var'}
    13795                  $as_echo "$as_val"'`
    13796    if test "x$as_val" = x""yes; then
     8735do :
     8736  ac_fn_cxx_check_func "$LINENO" "av_dump_format" "ac_cv_func_av_dump_format"
     8737if test "x$ac_cv_func_av_dump_format" = xyes; then :
    137978738  cat >>confdefs.h <<_ACEOF
    13798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8739#define HAVE_AV_DUMP_FORMAT 1
    137998740_ACEOF
    138008741
     
    138028743done
    138038744
    13804 
    138058745for ac_func in dump_format
    13806 do
    13807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13809 $as_echo_n "checking for $ac_func... " >&6; }
    13810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13811   $as_echo_n "(cached) " >&6
    13812 else
    13813   cat >conftest.$ac_ext <<_ACEOF
    13814 /* confdefs.h.  */
    13815 _ACEOF
    13816 cat confdefs.h >>conftest.$ac_ext
    13817 cat >>conftest.$ac_ext <<_ACEOF
    13818 /* end confdefs.h.  */
    13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13821 #define $ac_func innocuous_$ac_func
    13822 
    13823 /* System header to define __stub macros and hopefully few prototypes,
    13824     which can conflict with char $ac_func (); below.
    13825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13826     <limits.h> exists even on freestanding compilers.  */
    13827 
    13828 #ifdef __STDC__
    13829 # include <limits.h>
    13830 #else
    13831 # include <assert.h>
    13832 #endif
    13833 
    13834 #undef $ac_func
    13835 
    13836 /* Override any GCC internal prototype to avoid an error.
    13837    Use char because int might match the return type of a GCC
    13838    builtin and then its argument prototype would still apply.  */
    13839 #ifdef __cplusplus
    13840 extern "C"
    13841 #endif
    13842 char $ac_func ();
    13843 /* The GNU C library defines this for functions which it implements
    13844     to always fail with ENOSYS.  Some functions are actually named
    13845     something starting with __ and the normal name is an alias.  */
    13846 #if defined __stub_$ac_func || defined __stub___$ac_func
    13847 choke me
    13848 #endif
    13849 
    13850 int
    13851 main ()
    13852 {
    13853 return $ac_func ();
    13854   ;
    13855   return 0;
    13856 }
    13857 _ACEOF
    13858 rm -f conftest.$ac_objext conftest$ac_exeext
    13859 if { (ac_try="$ac_link"
    13860 case "(($ac_try" in
    13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13862   *) ac_try_echo=$ac_try;;
    13863 esac
    13864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13865 $as_echo "$ac_try_echo") >&5
    13866   (eval "$ac_link") 2>conftest.er1
    13867   ac_status=$?
    13868   grep -v '^ *+' conftest.er1 >conftest.err
    13869   rm -f conftest.er1
    13870   cat conftest.err >&5
    13871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13872   (exit $ac_status); } && {
    13873          test -z "$ac_cxx_werror_flag" ||
    13874          test ! -s conftest.err
    13875        } && test -s conftest$ac_exeext && {
    13876          test "$cross_compiling" = yes ||
    13877          $as_test_x conftest$ac_exeext
    13878        }; then
    13879   eval "$as_ac_var=yes"
    13880 else
    13881   $as_echo "$as_me: failed program was:" >&5
    13882 sed 's/^/| /' conftest.$ac_ext >&5
    13883 
    13884         eval "$as_ac_var=no"
    13885 fi
    13886 
    13887 rm -rf conftest.dSYM
    13888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13889       conftest$ac_exeext conftest.$ac_ext
    13890 fi
    13891 ac_res=`eval 'as_val=${'$as_ac_var'}
    13892                  $as_echo "$as_val"'`
    13893                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13894 $as_echo "$ac_res" >&6; }
    13895 as_val=`eval 'as_val=${'$as_ac_var'}
    13896                  $as_echo "$as_val"'`
    13897    if test "x$as_val" = x""yes; then
     8746do :
     8747  ac_fn_cxx_check_func "$LINENO" "dump_format" "ac_cv_func_dump_format"
     8748if test "x$ac_cv_func_dump_format" = xyes; then :
    138988749  cat >>confdefs.h <<_ACEOF
    13899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8750#define HAVE_DUMP_FORMAT 1
    139008751_ACEOF
    139018752
     
    139038754done
    139048755
    13905 
    139068756for ac_func in avio_open
    13907 do
    13908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13910 $as_echo_n "checking for $ac_func... " >&6; }
    13911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13912   $as_echo_n "(cached) " >&6
    13913 else
    13914   cat >conftest.$ac_ext <<_ACEOF
    13915 /* confdefs.h.  */
    13916 _ACEOF
    13917 cat confdefs.h >>conftest.$ac_ext
    13918 cat >>conftest.$ac_ext <<_ACEOF
    13919 /* end confdefs.h.  */
    13920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13922 #define $ac_func innocuous_$ac_func
    13923 
    13924 /* System header to define __stub macros and hopefully few prototypes,
    13925     which can conflict with char $ac_func (); below.
    13926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13927     <limits.h> exists even on freestanding compilers.  */
    13928 
    13929 #ifdef __STDC__
    13930 # include <limits.h>
    13931 #else
    13932 # include <assert.h>
    13933 #endif
    13934 
    13935 #undef $ac_func
    13936 
    13937 /* Override any GCC internal prototype to avoid an error.
    13938    Use char because int might match the return type of a GCC
    13939    builtin and then its argument prototype would still apply.  */
    13940 #ifdef __cplusplus
    13941 extern "C"
    13942 #endif
    13943 char $ac_func ();
    13944 /* The GNU C library defines this for functions which it implements
    13945     to always fail with ENOSYS.  Some functions are actually named
    13946     something starting with __ and the normal name is an alias.  */
    13947 #if defined __stub_$ac_func || defined __stub___$ac_func
    13948 choke me
    13949 #endif
    13950 
    13951 int
    13952 main ()
    13953 {
    13954 return $ac_func ();
    13955   ;
    13956   return 0;
    13957 }
    13958 _ACEOF
    13959 rm -f conftest.$ac_objext conftest$ac_exeext
    13960 if { (ac_try="$ac_link"
    13961 case "(($ac_try" in
    13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13963   *) ac_try_echo=$ac_try;;
    13964 esac
    13965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13966 $as_echo "$ac_try_echo") >&5
    13967   (eval "$ac_link") 2>conftest.er1
    13968   ac_status=$?
    13969   grep -v '^ *+' conftest.er1 >conftest.err
    13970   rm -f conftest.er1
    13971   cat conftest.err >&5
    13972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13973   (exit $ac_status); } && {
    13974          test -z "$ac_cxx_werror_flag" ||
    13975          test ! -s conftest.err
    13976        } && test -s conftest$ac_exeext && {
    13977          test "$cross_compiling" = yes ||
    13978          $as_test_x conftest$ac_exeext
    13979        }; then
    13980   eval "$as_ac_var=yes"
    13981 else
    13982   $as_echo "$as_me: failed program was:" >&5
    13983 sed 's/^/| /' conftest.$ac_ext >&5
    13984 
    13985         eval "$as_ac_var=no"
    13986 fi
    13987 
    13988 rm -rf conftest.dSYM
    13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13990       conftest$ac_exeext conftest.$ac_ext
    13991 fi
    13992 ac_res=`eval 'as_val=${'$as_ac_var'}
    13993                  $as_echo "$as_val"'`
    13994                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13995 $as_echo "$ac_res" >&6; }
    13996 as_val=`eval 'as_val=${'$as_ac_var'}
    13997                  $as_echo "$as_val"'`
    13998    if test "x$as_val" = x""yes; then
     8757do :
     8758  ac_fn_cxx_check_func "$LINENO" "avio_open" "ac_cv_func_avio_open"
     8759if test "x$ac_cv_func_avio_open" = xyes; then :
    139998760  cat >>confdefs.h <<_ACEOF
    14000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8761#define HAVE_AVIO_OPEN 1
    140018762_ACEOF
    140028763
     
    140048765done
    140058766
    14006 
    140078767for ac_func in url_fopen
    14008 do
    14009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14011 $as_echo_n "checking for $ac_func... " >&6; }
    14012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14013   $as_echo_n "(cached) " >&6
    14014 else
    14015   cat >conftest.$ac_ext <<_ACEOF
    14016 /* confdefs.h.  */
    14017 _ACEOF
    14018 cat confdefs.h >>conftest.$ac_ext
    14019 cat >>conftest.$ac_ext <<_ACEOF
    14020 /* end confdefs.h.  */
    14021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14023 #define $ac_func innocuous_$ac_func
    14024 
    14025 /* System header to define __stub macros and hopefully few prototypes,
    14026     which can conflict with char $ac_func (); below.
    14027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14028     <limits.h> exists even on freestanding compilers.  */
    14029 
    14030 #ifdef __STDC__
    14031 # include <limits.h>
    14032 #else
    14033 # include <assert.h>
    14034 #endif
    14035 
    14036 #undef $ac_func
    14037 
    14038 /* Override any GCC internal prototype to avoid an error.
    14039    Use char because int might match the return type of a GCC
    14040    builtin and then its argument prototype would still apply.  */
    14041 #ifdef __cplusplus
    14042 extern "C"
    14043 #endif
    14044 char $ac_func ();
    14045 /* The GNU C library defines this for functions which it implements
    14046     to always fail with ENOSYS.  Some functions are actually named
    14047     something starting with __ and the normal name is an alias.  */
    14048 #if defined __stub_$ac_func || defined __stub___$ac_func
    14049 choke me
    14050 #endif
    14051 
    14052 int
    14053 main ()
    14054 {
    14055 return $ac_func ();
    14056   ;
    14057   return 0;
    14058 }
    14059 _ACEOF
    14060 rm -f conftest.$ac_objext conftest$ac_exeext
    14061 if { (ac_try="$ac_link"
    14062 case "(($ac_try" in
    14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14064   *) ac_try_echo=$ac_try;;
    14065 esac
    14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14067 $as_echo "$ac_try_echo") >&5
    14068   (eval "$ac_link") 2>conftest.er1
    14069   ac_status=$?
    14070   grep -v '^ *+' conftest.er1 >conftest.err
    14071   rm -f conftest.er1
    14072   cat conftest.err >&5
    14073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14074   (exit $ac_status); } && {
    14075          test -z "$ac_cxx_werror_flag" ||
    14076          test ! -s conftest.err
    14077        } && test -s conftest$ac_exeext && {
    14078          test "$cross_compiling" = yes ||
    14079          $as_test_x conftest$ac_exeext
    14080        }; then
    14081   eval "$as_ac_var=yes"
    14082 else
    14083   $as_echo "$as_me: failed program was:" >&5
    14084 sed 's/^/| /' conftest.$ac_ext >&5
    14085 
    14086         eval "$as_ac_var=no"
    14087 fi
    14088 
    14089 rm -rf conftest.dSYM
    14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14091       conftest$ac_exeext conftest.$ac_ext
    14092 fi
    14093 ac_res=`eval 'as_val=${'$as_ac_var'}
    14094                  $as_echo "$as_val"'`
    14095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14096 $as_echo "$ac_res" >&6; }
    14097 as_val=`eval 'as_val=${'$as_ac_var'}
    14098                  $as_echo "$as_val"'`
    14099    if test "x$as_val" = x""yes; then
     8768do :
     8769  ac_fn_cxx_check_func "$LINENO" "url_fopen" "ac_cv_func_url_fopen"
     8770if test "x$ac_cv_func_url_fopen" = xyes; then :
    141008771  cat >>confdefs.h <<_ACEOF
    14101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8772#define HAVE_URL_FOPEN 1
    141028773_ACEOF
    141038774
     
    141058776done
    141068777
    14107 
    141088778for ac_func in avio_close
    14109 do
    14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14112 $as_echo_n "checking for $ac_func... " >&6; }
    14113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14114   $as_echo_n "(cached) " >&6
    14115 else
    14116   cat >conftest.$ac_ext <<_ACEOF
    14117 /* confdefs.h.  */
    14118 _ACEOF
    14119 cat confdefs.h >>conftest.$ac_ext
    14120 cat >>conftest.$ac_ext <<_ACEOF
    14121 /* end confdefs.h.  */
    14122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14124 #define $ac_func innocuous_$ac_func
    14125 
    14126 /* System header to define __stub macros and hopefully few prototypes,
    14127     which can conflict with char $ac_func (); below.
    14128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14129     <limits.h> exists even on freestanding compilers.  */
    14130 
    14131 #ifdef __STDC__
    14132 # include <limits.h>
    14133 #else
    14134 # include <assert.h>
    14135 #endif
    14136 
    14137 #undef $ac_func
    14138 
    14139 /* Override any GCC internal prototype to avoid an error.
    14140    Use char because int might match the return type of a GCC
    14141    builtin and then its argument prototype would still apply.  */
    14142 #ifdef __cplusplus
    14143 extern "C"
    14144 #endif
    14145 char $ac_func ();
    14146 /* The GNU C library defines this for functions which it implements
    14147     to always fail with ENOSYS.  Some functions are actually named
    14148     something starting with __ and the normal name is an alias.  */
    14149 #if defined __stub_$ac_func || defined __stub___$ac_func
    14150 choke me
    14151 #endif
    14152 
    14153 int
    14154 main ()
    14155 {
    14156 return $ac_func ();
    14157   ;
    14158   return 0;
    14159 }
    14160 _ACEOF
    14161 rm -f conftest.$ac_objext conftest$ac_exeext
    14162 if { (ac_try="$ac_link"
    14163 case "(($ac_try" in
    14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14165   *) ac_try_echo=$ac_try;;
    14166 esac
    14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14168 $as_echo "$ac_try_echo") >&5
    14169   (eval "$ac_link") 2>conftest.er1
    14170   ac_status=$?
    14171   grep -v '^ *+' conftest.er1 >conftest.err
    14172   rm -f conftest.er1
    14173   cat conftest.err >&5
    14174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14175   (exit $ac_status); } && {
    14176          test -z "$ac_cxx_werror_flag" ||
    14177          test ! -s conftest.err
    14178        } && test -s conftest$ac_exeext && {
    14179          test "$cross_compiling" = yes ||
    14180          $as_test_x conftest$ac_exeext
    14181        }; then
    14182   eval "$as_ac_var=yes"
    14183 else
    14184   $as_echo "$as_me: failed program was:" >&5
    14185 sed 's/^/| /' conftest.$ac_ext >&5
    14186 
    14187         eval "$as_ac_var=no"
    14188 fi
    14189 
    14190 rm -rf conftest.dSYM
    14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14192       conftest$ac_exeext conftest.$ac_ext
    14193 fi
    14194 ac_res=`eval 'as_val=${'$as_ac_var'}
    14195                  $as_echo "$as_val"'`
    14196                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14197 $as_echo "$ac_res" >&6; }
    14198 as_val=`eval 'as_val=${'$as_ac_var'}
    14199                  $as_echo "$as_val"'`
    14200    if test "x$as_val" = x""yes; then
     8779do :
     8780  ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
     8781if test "x$ac_cv_func_avio_close" = xyes; then :
    142018782  cat >>confdefs.h <<_ACEOF
    14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8783#define HAVE_AVIO_CLOSE 1
    142038784_ACEOF
    142048785
     
    142068787done
    142078788
    14208 
    142098789for ac_func in url_fclose
    14210 do
    14211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14212 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14213 $as_echo_n "checking for $ac_func... " >&6; }
    14214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14215   $as_echo_n "(cached) " >&6
    14216 else
    14217   cat >conftest.$ac_ext <<_ACEOF
    14218 /* confdefs.h.  */
    14219 _ACEOF
    14220 cat confdefs.h >>conftest.$ac_ext
    14221 cat >>conftest.$ac_ext <<_ACEOF
    14222 /* end confdefs.h.  */
    14223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14225 #define $ac_func innocuous_$ac_func
    14226 
    14227 /* System header to define __stub macros and hopefully few prototypes,
    14228     which can conflict with char $ac_func (); below.
    14229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14230     <limits.h> exists even on freestanding compilers.  */
    14231 
    14232 #ifdef __STDC__
    14233 # include <limits.h>
    14234 #else
    14235 # include <assert.h>
    14236 #endif
    14237 
    14238 #undef $ac_func
    14239 
    14240 /* Override any GCC internal prototype to avoid an error.
    14241    Use char because int might match the return type of a GCC
    14242    builtin and then its argument prototype would still apply.  */
    14243 #ifdef __cplusplus
    14244 extern "C"
    14245 #endif
    14246 char $ac_func ();
    14247 /* The GNU C library defines this for functions which it implements
    14248     to always fail with ENOSYS.  Some functions are actually named
    14249     something starting with __ and the normal name is an alias.  */
    14250 #if defined __stub_$ac_func || defined __stub___$ac_func
    14251 choke me
    14252 #endif
    14253 
    14254 int
    14255 main ()
    14256 {
    14257 return $ac_func ();
    14258   ;
    14259   return 0;
    14260 }
    14261 _ACEOF
    14262 rm -f conftest.$ac_objext conftest$ac_exeext
    14263 if { (ac_try="$ac_link"
    14264 case "(($ac_try" in
    14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14266   *) ac_try_echo=$ac_try;;
    14267 esac
    14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14269 $as_echo "$ac_try_echo") >&5
    14270   (eval "$ac_link") 2>conftest.er1
    14271   ac_status=$?
    14272   grep -v '^ *+' conftest.er1 >conftest.err
    14273   rm -f conftest.er1
    14274   cat conftest.err >&5
    14275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14276   (exit $ac_status); } && {
    14277          test -z "$ac_cxx_werror_flag" ||
    14278          test ! -s conftest.err
    14279        } && test -s conftest$ac_exeext && {
    14280          test "$cross_compiling" = yes ||
    14281          $as_test_x conftest$ac_exeext
    14282        }; then
    14283   eval "$as_ac_var=yes"
    14284 else
    14285   $as_echo "$as_me: failed program was:" >&5
    14286 sed 's/^/| /' conftest.$ac_ext >&5
    14287 
    14288         eval "$as_ac_var=no"
    14289 fi
    14290 
    14291 rm -rf conftest.dSYM
    14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14293       conftest$ac_exeext conftest.$ac_ext
    14294 fi
    14295 ac_res=`eval 'as_val=${'$as_ac_var'}
    14296                  $as_echo "$as_val"'`
    14297                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14298 $as_echo "$ac_res" >&6; }
    14299 as_val=`eval 'as_val=${'$as_ac_var'}
    14300                  $as_echo "$as_val"'`
    14301    if test "x$as_val" = x""yes; then
     8790do :
     8791  ac_fn_cxx_check_func "$LINENO" "url_fclose" "ac_cv_func_url_fclose"
     8792if test "x$ac_cv_func_url_fclose" = xyes; then :
    143028793  cat >>confdefs.h <<_ACEOF
    14303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8794#define HAVE_URL_FCLOSE 1
    143048795_ACEOF
    143058796
     
    143078798done
    143088799
    14309 
    143108800for ac_func in avformat_alloc_context
    14311 do
    14312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14314 $as_echo_n "checking for $ac_func... " >&6; }
    14315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14316   $as_echo_n "(cached) " >&6
    14317 else
    14318   cat >conftest.$ac_ext <<_ACEOF
    14319 /* confdefs.h.  */
    14320 _ACEOF
    14321 cat confdefs.h >>conftest.$ac_ext
    14322 cat >>conftest.$ac_ext <<_ACEOF
    14323 /* end confdefs.h.  */
    14324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14326 #define $ac_func innocuous_$ac_func
    14327 
    14328 /* System header to define __stub macros and hopefully few prototypes,
    14329     which can conflict with char $ac_func (); below.
    14330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14331     <limits.h> exists even on freestanding compilers.  */
    14332 
    14333 #ifdef __STDC__
    14334 # include <limits.h>
    14335 #else
    14336 # include <assert.h>
    14337 #endif
    14338 
    14339 #undef $ac_func
    14340 
    14341 /* Override any GCC internal prototype to avoid an error.
    14342    Use char because int might match the return type of a GCC
    14343    builtin and then its argument prototype would still apply.  */
    14344 #ifdef __cplusplus
    14345 extern "C"
    14346 #endif
    14347 char $ac_func ();
    14348 /* The GNU C library defines this for functions which it implements
    14349     to always fail with ENOSYS.  Some functions are actually named
    14350     something starting with __ and the normal name is an alias.  */
    14351 #if defined __stub_$ac_func || defined __stub___$ac_func
    14352 choke me
    14353 #endif
    14354 
    14355 int
    14356 main ()
    14357 {
    14358 return $ac_func ();
    14359   ;
    14360   return 0;
    14361 }
    14362 _ACEOF
    14363 rm -f conftest.$ac_objext conftest$ac_exeext
    14364 if { (ac_try="$ac_link"
    14365 case "(($ac_try" in
    14366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14367   *) ac_try_echo=$ac_try;;
    14368 esac
    14369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14370 $as_echo "$ac_try_echo") >&5
    14371   (eval "$ac_link") 2>conftest.er1
    14372   ac_status=$?
    14373   grep -v '^ *+' conftest.er1 >conftest.err
    14374   rm -f conftest.er1
    14375   cat conftest.err >&5
    14376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14377   (exit $ac_status); } && {
    14378          test -z "$ac_cxx_werror_flag" ||
    14379          test ! -s conftest.err
    14380        } && test -s conftest$ac_exeext && {
    14381          test "$cross_compiling" = yes ||
    14382          $as_test_x conftest$ac_exeext
    14383        }; then
    14384   eval "$as_ac_var=yes"
    14385 else
    14386   $as_echo "$as_me: failed program was:" >&5
    14387 sed 's/^/| /' conftest.$ac_ext >&5
    14388 
    14389         eval "$as_ac_var=no"
    14390 fi
    14391 
    14392 rm -rf conftest.dSYM
    14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14394       conftest$ac_exeext conftest.$ac_ext
    14395 fi
    14396 ac_res=`eval 'as_val=${'$as_ac_var'}
    14397                  $as_echo "$as_val"'`
    14398                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14399 $as_echo "$ac_res" >&6; }
    14400 as_val=`eval 'as_val=${'$as_ac_var'}
    14401                  $as_echo "$as_val"'`
    14402    if test "x$as_val" = x""yes; then
     8801do :
     8802  ac_fn_cxx_check_func "$LINENO" "avformat_alloc_context" "ac_cv_func_avformat_alloc_context"
     8803if test "x$ac_cv_func_avformat_alloc_context" = xyes; then :
    144038804  cat >>confdefs.h <<_ACEOF
    14404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8805#define HAVE_AVFORMAT_ALLOC_CONTEXT 1
    144058806_ACEOF
    144068807
     
    144088809done
    144098810
    14410 
    144118811for ac_func in av_alloc_format_context
    14412 do
    14413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14415 $as_echo_n "checking for $ac_func... " >&6; }
    14416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14417   $as_echo_n "(cached) " >&6
    14418 else
    14419   cat >conftest.$ac_ext <<_ACEOF
    14420 /* confdefs.h.  */
    14421 _ACEOF
    14422 cat confdefs.h >>conftest.$ac_ext
    14423 cat >>conftest.$ac_ext <<_ACEOF
    14424 /* end confdefs.h.  */
    14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14427 #define $ac_func innocuous_$ac_func
    14428 
    14429 /* System header to define __stub macros and hopefully few prototypes,
    14430     which can conflict with char $ac_func (); below.
    14431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14432     <limits.h> exists even on freestanding compilers.  */
    14433 
    14434 #ifdef __STDC__
    14435 # include <limits.h>
    14436 #else
    14437 # include <assert.h>
    14438 #endif
    14439 
    14440 #undef $ac_func
    14441 
    14442 /* Override any GCC internal prototype to avoid an error.
    14443    Use char because int might match the return type of a GCC
    14444    builtin and then its argument prototype would still apply.  */
    14445 #ifdef __cplusplus
    14446 extern "C"
    14447 #endif
    14448 char $ac_func ();
    14449 /* The GNU C library defines this for functions which it implements
    14450     to always fail with ENOSYS.  Some functions are actually named
    14451     something starting with __ and the normal name is an alias.  */
    14452 #if defined __stub_$ac_func || defined __stub___$ac_func
    14453 choke me
    14454 #endif
    14455 
    14456 int
    14457 main ()
    14458 {
    14459 return $ac_func ();
    14460   ;
    14461   return 0;
    14462 }
    14463 _ACEOF
    14464 rm -f conftest.$ac_objext conftest$ac_exeext
    14465 if { (ac_try="$ac_link"
    14466 case "(($ac_try" in
    14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14468   *) ac_try_echo=$ac_try;;
    14469 esac
    14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14471 $as_echo "$ac_try_echo") >&5
    14472   (eval "$ac_link") 2>conftest.er1
    14473   ac_status=$?
    14474   grep -v '^ *+' conftest.er1 >conftest.err
    14475   rm -f conftest.er1
    14476   cat conftest.err >&5
    14477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14478   (exit $ac_status); } && {
    14479          test -z "$ac_cxx_werror_flag" ||
    14480          test ! -s conftest.err
    14481        } && test -s conftest$ac_exeext && {
    14482          test "$cross_compiling" = yes ||
    14483          $as_test_x conftest$ac_exeext
    14484        }; then
    14485   eval "$as_ac_var=yes"
    14486 else
    14487   $as_echo "$as_me: failed program was:" >&5
    14488 sed 's/^/| /' conftest.$ac_ext >&5
    14489 
    14490         eval "$as_ac_var=no"
    14491 fi
    14492 
    14493 rm -rf conftest.dSYM
    14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14495       conftest$ac_exeext conftest.$ac_ext
    14496 fi
    14497 ac_res=`eval 'as_val=${'$as_ac_var'}
    14498                  $as_echo "$as_val"'`
    14499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14500 $as_echo "$ac_res" >&6; }
    14501 as_val=`eval 'as_val=${'$as_ac_var'}
    14502                  $as_echo "$as_val"'`
    14503    if test "x$as_val" = x""yes; then
     8812do :
     8813  ac_fn_cxx_check_func "$LINENO" "av_alloc_format_context" "ac_cv_func_av_alloc_format_context"
     8814if test "x$ac_cv_func_av_alloc_format_context" = xyes; then :
    145048815  cat >>confdefs.h <<_ACEOF
    14505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8816#define HAVE_AV_ALLOC_FORMAT_CONTEXT 1
    145068817_ACEOF
    145078818
     
    145098820done
    145108821
    14511 
    145128822for ac_func in av_set_parameters
    14513 do
    14514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14516 $as_echo_n "checking for $ac_func... " >&6; }
    14517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14518   $as_echo_n "(cached) " >&6
    14519 else
    14520   cat >conftest.$ac_ext <<_ACEOF
    14521 /* confdefs.h.  */
    14522 _ACEOF
    14523 cat confdefs.h >>conftest.$ac_ext
    14524 cat >>conftest.$ac_ext <<_ACEOF
    14525 /* end confdefs.h.  */
    14526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14528 #define $ac_func innocuous_$ac_func
    14529 
    14530 /* System header to define __stub macros and hopefully few prototypes,
    14531     which can conflict with char $ac_func (); below.
    14532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14533     <limits.h> exists even on freestanding compilers.  */
    14534 
    14535 #ifdef __STDC__
    14536 # include <limits.h>
    14537 #else
    14538 # include <assert.h>
    14539 #endif
    14540 
    14541 #undef $ac_func
    14542 
    14543 /* Override any GCC internal prototype to avoid an error.
    14544    Use char because int might match the return type of a GCC
    14545    builtin and then its argument prototype would still apply.  */
    14546 #ifdef __cplusplus
    14547 extern "C"
    14548 #endif
    14549 char $ac_func ();
    14550 /* The GNU C library defines this for functions which it implements
    14551     to always fail with ENOSYS.  Some functions are actually named
    14552     something starting with __ and the normal name is an alias.  */
    14553 #if defined __stub_$ac_func || defined __stub___$ac_func
    14554 choke me
    14555 #endif
    14556 
    14557 int
    14558 main ()
    14559 {
    14560 return $ac_func ();
    14561   ;
    14562   return 0;
    14563 }
    14564 _ACEOF
    14565 rm -f conftest.$ac_objext conftest$ac_exeext
    14566 if { (ac_try="$ac_link"
    14567 case "(($ac_try" in
    14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14569   *) ac_try_echo=$ac_try;;
    14570 esac
    14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14572 $as_echo "$ac_try_echo") >&5
    14573   (eval "$ac_link") 2>conftest.er1
    14574   ac_status=$?
    14575   grep -v '^ *+' conftest.er1 >conftest.err
    14576   rm -f conftest.er1
    14577   cat conftest.err >&5
    14578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14579   (exit $ac_status); } && {
    14580          test -z "$ac_cxx_werror_flag" ||
    14581          test ! -s conftest.err
    14582        } && test -s conftest$ac_exeext && {
    14583          test "$cross_compiling" = yes ||
    14584          $as_test_x conftest$ac_exeext
    14585        }; then
    14586   eval "$as_ac_var=yes"
    14587 else
    14588   $as_echo "$as_me: failed program was:" >&5
    14589 sed 's/^/| /' conftest.$ac_ext >&5
    14590 
    14591         eval "$as_ac_var=no"
    14592 fi
    14593 
    14594 rm -rf conftest.dSYM
    14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14596       conftest$ac_exeext conftest.$ac_ext
    14597 fi
    14598 ac_res=`eval 'as_val=${'$as_ac_var'}
    14599                  $as_echo "$as_val"'`
    14600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14601 $as_echo "$ac_res" >&6; }
    14602 as_val=`eval 'as_val=${'$as_ac_var'}
    14603                  $as_echo "$as_val"'`
    14604    if test "x$as_val" = x""yes; then
     8823do :
     8824  ac_fn_cxx_check_func "$LINENO" "av_set_parameters" "ac_cv_func_av_set_parameters"
     8825if test "x$ac_cv_func_av_set_parameters" = xyes; then :
    146058826  cat >>confdefs.h <<_ACEOF
    14606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8827#define HAVE_AV_SET_PARAMETERS 1
    146078828_ACEOF
    146088829
     
    146108831done
    146118832
    14612 
    146138833for ac_func in avformat_write_header
    14614 do
    14615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14616 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14617 $as_echo_n "checking for $ac_func... " >&6; }
    14618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14619   $as_echo_n "(cached) " >&6
    14620 else
    14621   cat >conftest.$ac_ext <<_ACEOF
    14622 /* confdefs.h.  */
    14623 _ACEOF
    14624 cat confdefs.h >>conftest.$ac_ext
    14625 cat >>conftest.$ac_ext <<_ACEOF
    14626 /* end confdefs.h.  */
    14627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14629 #define $ac_func innocuous_$ac_func
    14630 
    14631 /* System header to define __stub macros and hopefully few prototypes,
    14632     which can conflict with char $ac_func (); below.
    14633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14634     <limits.h> exists even on freestanding compilers.  */
    14635 
    14636 #ifdef __STDC__
    14637 # include <limits.h>
    14638 #else
    14639 # include <assert.h>
    14640 #endif
    14641 
    14642 #undef $ac_func
    14643 
    14644 /* Override any GCC internal prototype to avoid an error.
    14645    Use char because int might match the return type of a GCC
    14646    builtin and then its argument prototype would still apply.  */
    14647 #ifdef __cplusplus
    14648 extern "C"
    14649 #endif
    14650 char $ac_func ();
    14651 /* The GNU C library defines this for functions which it implements
    14652     to always fail with ENOSYS.  Some functions are actually named
    14653     something starting with __ and the normal name is an alias.  */
    14654 #if defined __stub_$ac_func || defined __stub___$ac_func
    14655 choke me
    14656 #endif
    14657 
    14658 int
    14659 main ()
    14660 {
    14661 return $ac_func ();
    14662   ;
    14663   return 0;
    14664 }
    14665 _ACEOF
    14666 rm -f conftest.$ac_objext conftest$ac_exeext
    14667 if { (ac_try="$ac_link"
    14668 case "(($ac_try" in
    14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14670   *) ac_try_echo=$ac_try;;
    14671 esac
    14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14673 $as_echo "$ac_try_echo") >&5
    14674   (eval "$ac_link") 2>conftest.er1
    14675   ac_status=$?
    14676   grep -v '^ *+' conftest.er1 >conftest.err
    14677   rm -f conftest.er1
    14678   cat conftest.err >&5
    14679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14680   (exit $ac_status); } && {
    14681          test -z "$ac_cxx_werror_flag" ||
    14682          test ! -s conftest.err
    14683        } && test -s conftest$ac_exeext && {
    14684          test "$cross_compiling" = yes ||
    14685          $as_test_x conftest$ac_exeext
    14686        }; then
    14687   eval "$as_ac_var=yes"
    14688 else
    14689   $as_echo "$as_me: failed program was:" >&5
    14690 sed 's/^/| /' conftest.$ac_ext >&5
    14691 
    14692         eval "$as_ac_var=no"
    14693 fi
    14694 
    14695 rm -rf conftest.dSYM
    14696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14697       conftest$ac_exeext conftest.$ac_ext
    14698 fi
    14699 ac_res=`eval 'as_val=${'$as_ac_var'}
    14700                  $as_echo "$as_val"'`
    14701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14702 $as_echo "$ac_res" >&6; }
    14703 as_val=`eval 'as_val=${'$as_ac_var'}
    14704                  $as_echo "$as_val"'`
    14705    if test "x$as_val" = x""yes; then
     8834do :
     8835  ac_fn_cxx_check_func "$LINENO" "avformat_write_header" "ac_cv_func_avformat_write_header"
     8836if test "x$ac_cv_func_avformat_write_header" = xyes; then :
    147068837  cat >>confdefs.h <<_ACEOF
    14707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8838#define HAVE_AVFORMAT_WRITE_HEADER 1
    147088839_ACEOF
    147098840
     
    147118842done
    147128843
    14713 
    147148844for ac_func in av_write_header
    14715 do
    14716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14717 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14718 $as_echo_n "checking for $ac_func... " >&6; }
    14719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14720   $as_echo_n "(cached) " >&6
    14721 else
    14722   cat >conftest.$ac_ext <<_ACEOF
    14723 /* confdefs.h.  */
    14724 _ACEOF
    14725 cat confdefs.h >>conftest.$ac_ext
    14726 cat >>conftest.$ac_ext <<_ACEOF
    14727 /* end confdefs.h.  */
    14728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14730 #define $ac_func innocuous_$ac_func
    14731 
    14732 /* System header to define __stub macros and hopefully few prototypes,
    14733     which can conflict with char $ac_func (); below.
    14734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14735     <limits.h> exists even on freestanding compilers.  */
    14736 
    14737 #ifdef __STDC__
    14738 # include <limits.h>
    14739 #else
    14740 # include <assert.h>
    14741 #endif
    14742 
    14743 #undef $ac_func
    14744 
    14745 /* Override any GCC internal prototype to avoid an error.
    14746    Use char because int might match the return type of a GCC
    14747    builtin and then its argument prototype would still apply.  */
    14748 #ifdef __cplusplus
    14749 extern "C"
    14750 #endif
    14751 char $ac_func ();
    14752 /* The GNU C library defines this for functions which it implements
    14753     to always fail with ENOSYS.  Some functions are actually named
    14754     something starting with __ and the normal name is an alias.  */
    14755 #if defined __stub_$ac_func || defined __stub___$ac_func
    14756 choke me
    14757 #endif
    14758 
    14759 int
    14760 main ()
    14761 {
    14762 return $ac_func ();
    14763   ;
    14764   return 0;
    14765 }
    14766 _ACEOF
    14767 rm -f conftest.$ac_objext conftest$ac_exeext
    14768 if { (ac_try="$ac_link"
    14769 case "(($ac_try" in
    14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14771   *) ac_try_echo=$ac_try;;
    14772 esac
    14773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14774 $as_echo "$ac_try_echo") >&5
    14775   (eval "$ac_link") 2>conftest.er1
    14776   ac_status=$?
    14777   grep -v '^ *+' conftest.er1 >conftest.err
    14778   rm -f conftest.er1
    14779   cat conftest.err >&5
    14780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14781   (exit $ac_status); } && {
    14782          test -z "$ac_cxx_werror_flag" ||
    14783          test ! -s conftest.err
    14784        } && test -s conftest$ac_exeext && {
    14785          test "$cross_compiling" = yes ||
    14786          $as_test_x conftest$ac_exeext
    14787        }; then
    14788   eval "$as_ac_var=yes"
    14789 else
    14790   $as_echo "$as_me: failed program was:" >&5
    14791 sed 's/^/| /' conftest.$ac_ext >&5
    14792 
    14793         eval "$as_ac_var=no"
    14794 fi
    14795 
    14796 rm -rf conftest.dSYM
    14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14798       conftest$ac_exeext conftest.$ac_ext
    14799 fi
    14800 ac_res=`eval 'as_val=${'$as_ac_var'}
    14801                  $as_echo "$as_val"'`
    14802                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14803 $as_echo "$ac_res" >&6; }
    14804 as_val=`eval 'as_val=${'$as_ac_var'}
    14805                  $as_echo "$as_val"'`
    14806    if test "x$as_val" = x""yes; then
     8845do :
     8846  ac_fn_cxx_check_func "$LINENO" "av_write_header" "ac_cv_func_av_write_header"
     8847if test "x$ac_cv_func_av_write_header" = xyes; then :
    148078848  cat >>confdefs.h <<_ACEOF
    14808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8849#define HAVE_AV_WRITE_HEADER 1
    148098850_ACEOF
    148108851
     
    148128853done
    148138854
    14814 { $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5
    14815 $as_echo_n "checking for av_write_trailer... " >&6; }
    14816 if test "${ac_cv_func_av_write_trailer+set}" = set; then
    14817   $as_echo_n "(cached) " >&6
    14818 else
    14819   cat >conftest.$ac_ext <<_ACEOF
    14820 /* confdefs.h.  */
    14821 _ACEOF
    14822 cat confdefs.h >>conftest.$ac_ext
    14823 cat >>conftest.$ac_ext <<_ACEOF
    14824 /* end confdefs.h.  */
    14825 /* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer.
    14826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14827 #define av_write_trailer innocuous_av_write_trailer
    14828 
    14829 /* System header to define __stub macros and hopefully few prototypes,
    14830     which can conflict with char av_write_trailer (); below.
    14831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14832     <limits.h> exists even on freestanding compilers.  */
    14833 
    14834 #ifdef __STDC__
    14835 # include <limits.h>
    14836 #else
    14837 # include <assert.h>
    14838 #endif
    14839 
    14840 #undef av_write_trailer
    14841 
    14842 /* Override any GCC internal prototype to avoid an error.
    14843    Use char because int might match the return type of a GCC
    14844    builtin and then its argument prototype would still apply.  */
    14845 #ifdef __cplusplus
    14846 extern "C"
    14847 #endif
    14848 char av_write_trailer ();
    14849 /* The GNU C library defines this for functions which it implements
    14850     to always fail with ENOSYS.  Some functions are actually named
    14851     something starting with __ and the normal name is an alias.  */
    14852 #if defined __stub_av_write_trailer || defined __stub___av_write_trailer
    14853 choke me
    14854 #endif
    14855 
    14856 int
    14857 main ()
    14858 {
    14859 return av_write_trailer ();
    14860   ;
    14861   return 0;
    14862 }
    14863 _ACEOF
    14864 rm -f conftest.$ac_objext conftest$ac_exeext
    14865 if { (ac_try="$ac_link"
    14866 case "(($ac_try" in
    14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14868   *) ac_try_echo=$ac_try;;
    14869 esac
    14870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14871 $as_echo "$ac_try_echo") >&5
    14872   (eval "$ac_link") 2>conftest.er1
    14873   ac_status=$?
    14874   grep -v '^ *+' conftest.er1 >conftest.err
    14875   rm -f conftest.er1
    14876   cat conftest.err >&5
    14877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14878   (exit $ac_status); } && {
    14879          test -z "$ac_cxx_werror_flag" ||
    14880          test ! -s conftest.err
    14881        } && test -s conftest$ac_exeext && {
    14882          test "$cross_compiling" = yes ||
    14883          $as_test_x conftest$ac_exeext
    14884        }; then
    14885   ac_cv_func_av_write_trailer=yes
    14886 else
    14887   $as_echo "$as_me: failed program was:" >&5
    14888 sed 's/^/| /' conftest.$ac_ext >&5
    14889 
    14890         ac_cv_func_av_write_trailer=no
    14891 fi
    14892 
    14893 rm -rf conftest.dSYM
    14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14895       conftest$ac_exeext conftest.$ac_ext
    14896 fi
    14897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5
    14898 $as_echo "$ac_cv_func_av_write_trailer" >&6; }
    14899 if test "x$ac_cv_func_av_write_trailer" = x""yes; then
    14900   :
    14901 else
    14902   { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5
    14903 $as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;}
    14904    { (exit 1); exit 1; }; }
    14905 fi
    14906 
    14907 { $as_echo "$as_me:$LINENO: checking for av_freep" >&5
    14908 $as_echo_n "checking for av_freep... " >&6; }
    14909 if test "${ac_cv_func_av_freep+set}" = set; then
    14910   $as_echo_n "(cached) " >&6
    14911 else
    14912   cat >conftest.$ac_ext <<_ACEOF
    14913 /* confdefs.h.  */
    14914 _ACEOF
    14915 cat confdefs.h >>conftest.$ac_ext
    14916 cat >>conftest.$ac_ext <<_ACEOF
    14917 /* end confdefs.h.  */
    14918 /* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep.
    14919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14920 #define av_freep innocuous_av_freep
    14921 
    14922 /* System header to define __stub macros and hopefully few prototypes,
    14923     which can conflict with char av_freep (); below.
    14924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14925     <limits.h> exists even on freestanding compilers.  */
    14926 
    14927 #ifdef __STDC__
    14928 # include <limits.h>
    14929 #else
    14930 # include <assert.h>
    14931 #endif
    14932 
    14933 #undef av_freep
    14934 
    14935 /* Override any GCC internal prototype to avoid an error.
    14936    Use char because int might match the return type of a GCC
    14937    builtin and then its argument prototype would still apply.  */
    14938 #ifdef __cplusplus
    14939 extern "C"
    14940 #endif
    14941 char av_freep ();
    14942 /* The GNU C library defines this for functions which it implements
    14943     to always fail with ENOSYS.  Some functions are actually named
    14944     something starting with __ and the normal name is an alias.  */
    14945 #if defined __stub_av_freep || defined __stub___av_freep
    14946 choke me
    14947 #endif
    14948 
    14949 int
    14950 main ()
    14951 {
    14952 return av_freep ();
    14953   ;
    14954   return 0;
    14955 }
    14956 _ACEOF
    14957 rm -f conftest.$ac_objext conftest$ac_exeext
    14958 if { (ac_try="$ac_link"
    14959 case "(($ac_try" in
    14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14961   *) ac_try_echo=$ac_try;;
    14962 esac
    14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14964 $as_echo "$ac_try_echo") >&5
    14965   (eval "$ac_link") 2>conftest.er1
    14966   ac_status=$?
    14967   grep -v '^ *+' conftest.er1 >conftest.err
    14968   rm -f conftest.er1
    14969   cat conftest.err >&5
    14970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14971   (exit $ac_status); } && {
    14972          test -z "$ac_cxx_werror_flag" ||
    14973          test ! -s conftest.err
    14974        } && test -s conftest$ac_exeext && {
    14975          test "$cross_compiling" = yes ||
    14976          $as_test_x conftest$ac_exeext
    14977        }; then
    14978   ac_cv_func_av_freep=yes
    14979 else
    14980   $as_echo "$as_me: failed program was:" >&5
    14981 sed 's/^/| /' conftest.$ac_ext >&5
    14982 
    14983         ac_cv_func_av_freep=no
    14984 fi
    14985 
    14986 rm -rf conftest.dSYM
    14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14988       conftest$ac_exeext conftest.$ac_ext
    14989 fi
    14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5
    14991 $as_echo "$ac_cv_func_av_freep" >&6; }
    14992 if test "x$ac_cv_func_av_freep" = x""yes; then
    14993   :
    14994 else
    14995   { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5
    14996 $as_echo "$as_me: error: oops! no av_freep ?!?" >&2;}
    14997    { (exit 1); exit 1; }; }
    14998 fi
    14999 
    15000 { $as_echo "$as_me:$LINENO: checking for av_free" >&5
    15001 $as_echo_n "checking for av_free... " >&6; }
    15002 if test "${ac_cv_func_av_free+set}" = set; then
    15003   $as_echo_n "(cached) " >&6
    15004 else
    15005   cat >conftest.$ac_ext <<_ACEOF
    15006 /* confdefs.h.  */
    15007 _ACEOF
    15008 cat confdefs.h >>conftest.$ac_ext
    15009 cat >>conftest.$ac_ext <<_ACEOF
    15010 /* end confdefs.h.  */
    15011 /* Define av_free to an innocuous variant, in case <limits.h> declares av_free.
    15012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15013 #define av_free innocuous_av_free
    15014 
    15015 /* System header to define __stub macros and hopefully few prototypes,
    15016     which can conflict with char av_free (); below.
    15017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15018     <limits.h> exists even on freestanding compilers.  */
    15019 
    15020 #ifdef __STDC__
    15021 # include <limits.h>
    15022 #else
    15023 # include <assert.h>
    15024 #endif
    15025 
    15026 #undef av_free
    15027 
    15028 /* Override any GCC internal prototype to avoid an error.
    15029    Use char because int might match the return type of a GCC
    15030    builtin and then its argument prototype would still apply.  */
    15031 #ifdef __cplusplus
    15032 extern "C"
    15033 #endif
    15034 char av_free ();
    15035 /* The GNU C library defines this for functions which it implements
    15036     to always fail with ENOSYS.  Some functions are actually named
    15037     something starting with __ and the normal name is an alias.  */
    15038 #if defined __stub_av_free || defined __stub___av_free
    15039 choke me
    15040 #endif
    15041 
    15042 int
    15043 main ()
    15044 {
    15045 return av_free ();
    15046   ;
    15047   return 0;
    15048 }
    15049 _ACEOF
    15050 rm -f conftest.$ac_objext conftest$ac_exeext
    15051 if { (ac_try="$ac_link"
    15052 case "(($ac_try" in
    15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15054   *) ac_try_echo=$ac_try;;
    15055 esac
    15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15057 $as_echo "$ac_try_echo") >&5
    15058   (eval "$ac_link") 2>conftest.er1
    15059   ac_status=$?
    15060   grep -v '^ *+' conftest.er1 >conftest.err
    15061   rm -f conftest.er1
    15062   cat conftest.err >&5
    15063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15064   (exit $ac_status); } && {
    15065          test -z "$ac_cxx_werror_flag" ||
    15066          test ! -s conftest.err
    15067        } && test -s conftest$ac_exeext && {
    15068          test "$cross_compiling" = yes ||
    15069          $as_test_x conftest$ac_exeext
    15070        }; then
    15071   ac_cv_func_av_free=yes
    15072 else
    15073   $as_echo "$as_me: failed program was:" >&5
    15074 sed 's/^/| /' conftest.$ac_ext >&5
    15075 
    15076         ac_cv_func_av_free=no
    15077 fi
    15078 
    15079 rm -rf conftest.dSYM
    15080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15081       conftest$ac_exeext conftest.$ac_ext
    15082 fi
    15083 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5
    15084 $as_echo "$ac_cv_func_av_free" >&6; }
    15085 if test "x$ac_cv_func_av_free" = x""yes; then
    15086   :
    15087 else
    15088   { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5
    15089 $as_echo "$as_me: error: oops! no av_free ?!?" >&2;}
    15090    { (exit 1); exit 1; }; }
    15091 fi
    15092 
    15093 { $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5
    15094 $as_echo_n "checking for av_new_stream... " >&6; }
    15095 if test "${ac_cv_func_av_new_stream+set}" = set; then
    15096   $as_echo_n "(cached) " >&6
    15097 else
    15098   cat >conftest.$ac_ext <<_ACEOF
    15099 /* confdefs.h.  */
    15100 _ACEOF
    15101 cat confdefs.h >>conftest.$ac_ext
    15102 cat >>conftest.$ac_ext <<_ACEOF
    15103 /* end confdefs.h.  */
    15104 /* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream.
    15105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15106 #define av_new_stream innocuous_av_new_stream
    15107 
    15108 /* System header to define __stub macros and hopefully few prototypes,
    15109     which can conflict with char av_new_stream (); below.
    15110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15111     <limits.h> exists even on freestanding compilers.  */
    15112 
    15113 #ifdef __STDC__
    15114 # include <limits.h>
    15115 #else
    15116 # include <assert.h>
    15117 #endif
    15118 
    15119 #undef av_new_stream
    15120 
    15121 /* Override any GCC internal prototype to avoid an error.
    15122    Use char because int might match the return type of a GCC
    15123    builtin and then its argument prototype would still apply.  */
    15124 #ifdef __cplusplus
    15125 extern "C"
    15126 #endif
    15127 char av_new_stream ();
    15128 /* The GNU C library defines this for functions which it implements
    15129     to always fail with ENOSYS.  Some functions are actually named
    15130     something starting with __ and the normal name is an alias.  */
    15131 #if defined __stub_av_new_stream || defined __stub___av_new_stream
    15132 choke me
    15133 #endif
    15134 
    15135 int
    15136 main ()
    15137 {
    15138 return av_new_stream ();
    15139   ;
    15140   return 0;
    15141 }
    15142 _ACEOF
    15143 rm -f conftest.$ac_objext conftest$ac_exeext
    15144 if { (ac_try="$ac_link"
    15145 case "(($ac_try" in
    15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15147   *) ac_try_echo=$ac_try;;
    15148 esac
    15149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15150 $as_echo "$ac_try_echo") >&5
    15151   (eval "$ac_link") 2>conftest.er1
    15152   ac_status=$?
    15153   grep -v '^ *+' conftest.er1 >conftest.err
    15154   rm -f conftest.er1
    15155   cat conftest.err >&5
    15156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15157   (exit $ac_status); } && {
    15158          test -z "$ac_cxx_werror_flag" ||
    15159          test ! -s conftest.err
    15160        } && test -s conftest$ac_exeext && {
    15161          test "$cross_compiling" = yes ||
    15162          $as_test_x conftest$ac_exeext
    15163        }; then
    15164   ac_cv_func_av_new_stream=yes
    15165 else
    15166   $as_echo "$as_me: failed program was:" >&5
    15167 sed 's/^/| /' conftest.$ac_ext >&5
    15168 
    15169         ac_cv_func_av_new_stream=no
    15170 fi
    15171 
    15172 rm -rf conftest.dSYM
    15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15174       conftest$ac_exeext conftest.$ac_ext
    15175 fi
    15176 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5
    15177 $as_echo "$ac_cv_func_av_new_stream" >&6; }
    15178 if test "x$ac_cv_func_av_new_stream" = x""yes; then
    15179   :
    15180 else
    15181   { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5
    15182 $as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;}
    15183    { (exit 1); exit 1; }; }
    15184 fi
    15185 
    15186 { $as_echo "$as_me:$LINENO: checking for av_malloc" >&5
    15187 $as_echo_n "checking for av_malloc... " >&6; }
    15188 if test "${ac_cv_func_av_malloc+set}" = set; then
    15189   $as_echo_n "(cached) " >&6
    15190 else
    15191   cat >conftest.$ac_ext <<_ACEOF
    15192 /* confdefs.h.  */
    15193 _ACEOF
    15194 cat confdefs.h >>conftest.$ac_ext
    15195 cat >>conftest.$ac_ext <<_ACEOF
    15196 /* end confdefs.h.  */
    15197 /* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc.
    15198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15199 #define av_malloc innocuous_av_malloc
    15200 
    15201 /* System header to define __stub macros and hopefully few prototypes,
    15202     which can conflict with char av_malloc (); below.
    15203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15204     <limits.h> exists even on freestanding compilers.  */
    15205 
    15206 #ifdef __STDC__
    15207 # include <limits.h>
    15208 #else
    15209 # include <assert.h>
    15210 #endif
    15211 
    15212 #undef av_malloc
    15213 
    15214 /* Override any GCC internal prototype to avoid an error.
    15215    Use char because int might match the return type of a GCC
    15216    builtin and then its argument prototype would still apply.  */
    15217 #ifdef __cplusplus
    15218 extern "C"
    15219 #endif
    15220 char av_malloc ();
    15221 /* The GNU C library defines this for functions which it implements
    15222     to always fail with ENOSYS.  Some functions are actually named
    15223     something starting with __ and the normal name is an alias.  */
    15224 #if defined __stub_av_malloc || defined __stub___av_malloc
    15225 choke me
    15226 #endif
    15227 
    15228 int
    15229 main ()
    15230 {
    15231 return av_malloc ();
    15232   ;
    15233   return 0;
    15234 }
    15235 _ACEOF
    15236 rm -f conftest.$ac_objext conftest$ac_exeext
    15237 if { (ac_try="$ac_link"
    15238 case "(($ac_try" in
    15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15240   *) ac_try_echo=$ac_try;;
    15241 esac
    15242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15243 $as_echo "$ac_try_echo") >&5
    15244   (eval "$ac_link") 2>conftest.er1
    15245   ac_status=$?
    15246   grep -v '^ *+' conftest.er1 >conftest.err
    15247   rm -f conftest.er1
    15248   cat conftest.err >&5
    15249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15250   (exit $ac_status); } && {
    15251          test -z "$ac_cxx_werror_flag" ||
    15252          test ! -s conftest.err
    15253        } && test -s conftest$ac_exeext && {
    15254          test "$cross_compiling" = yes ||
    15255          $as_test_x conftest$ac_exeext
    15256        }; then
    15257   ac_cv_func_av_malloc=yes
    15258 else
    15259   $as_echo "$as_me: failed program was:" >&5
    15260 sed 's/^/| /' conftest.$ac_ext >&5
    15261 
    15262         ac_cv_func_av_malloc=no
    15263 fi
    15264 
    15265 rm -rf conftest.dSYM
    15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15267       conftest$ac_exeext conftest.$ac_ext
    15268 fi
    15269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5
    15270 $as_echo "$ac_cv_func_av_malloc" >&6; }
    15271 if test "x$ac_cv_func_av_malloc" = x""yes; then
    15272   :
    15273 else
    15274   { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5
    15275 $as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;}
    15276    { (exit 1); exit 1; }; }
    15277 fi
    15278 
    15279 { $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5
    15280 $as_echo_n "checking for av_init_packet... " >&6; }
    15281 if test "${ac_cv_func_av_init_packet+set}" = set; then
    15282   $as_echo_n "(cached) " >&6
    15283 else
    15284   cat >conftest.$ac_ext <<_ACEOF
    15285 /* confdefs.h.  */
    15286 _ACEOF
    15287 cat confdefs.h >>conftest.$ac_ext
    15288 cat >>conftest.$ac_ext <<_ACEOF
    15289 /* end confdefs.h.  */
    15290 /* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet.
    15291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15292 #define av_init_packet innocuous_av_init_packet
    15293 
    15294 /* System header to define __stub macros and hopefully few prototypes,
    15295     which can conflict with char av_init_packet (); below.
    15296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15297     <limits.h> exists even on freestanding compilers.  */
    15298 
    15299 #ifdef __STDC__
    15300 # include <limits.h>
    15301 #else
    15302 # include <assert.h>
    15303 #endif
    15304 
    15305 #undef av_init_packet
    15306 
    15307 /* Override any GCC internal prototype to avoid an error.
    15308    Use char because int might match the return type of a GCC
    15309    builtin and then its argument prototype would still apply.  */
    15310 #ifdef __cplusplus
    15311 extern "C"
    15312 #endif
    15313 char av_init_packet ();
    15314 /* The GNU C library defines this for functions which it implements
    15315     to always fail with ENOSYS.  Some functions are actually named
    15316     something starting with __ and the normal name is an alias.  */
    15317 #if defined __stub_av_init_packet || defined __stub___av_init_packet
    15318 choke me
    15319 #endif
    15320 
    15321 int
    15322 main ()
    15323 {
    15324 return av_init_packet ();
    15325   ;
    15326   return 0;
    15327 }
    15328 _ACEOF
    15329 rm -f conftest.$ac_objext conftest$ac_exeext
    15330 if { (ac_try="$ac_link"
    15331 case "(($ac_try" in
    15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15333   *) ac_try_echo=$ac_try;;
    15334 esac
    15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15336 $as_echo "$ac_try_echo") >&5
    15337   (eval "$ac_link") 2>conftest.er1
    15338   ac_status=$?
    15339   grep -v '^ *+' conftest.er1 >conftest.err
    15340   rm -f conftest.er1
    15341   cat conftest.err >&5
    15342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15343   (exit $ac_status); } && {
    15344          test -z "$ac_cxx_werror_flag" ||
    15345          test ! -s conftest.err
    15346        } && test -s conftest$ac_exeext && {
    15347          test "$cross_compiling" = yes ||
    15348          $as_test_x conftest$ac_exeext
    15349        }; then
    15350   ac_cv_func_av_init_packet=yes
    15351 else
    15352   $as_echo "$as_me: failed program was:" >&5
    15353 sed 's/^/| /' conftest.$ac_ext >&5
    15354 
    15355         ac_cv_func_av_init_packet=no
    15356 fi
    15357 
    15358 rm -rf conftest.dSYM
    15359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15360       conftest$ac_exeext conftest.$ac_ext
    15361 fi
    15362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5
    15363 $as_echo "$ac_cv_func_av_init_packet" >&6; }
    15364 if test "x$ac_cv_func_av_init_packet" = x""yes; then
    15365   :
    15366 else
    15367   { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5
    15368 $as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;}
    15369    { (exit 1); exit 1; }; }
    15370 fi
    15371 
    15372 { $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5
    15373 $as_echo_n "checking for av_rescale_q... " >&6; }
    15374 if test "${ac_cv_func_av_rescale_q+set}" = set; then
    15375   $as_echo_n "(cached) " >&6
    15376 else
    15377   cat >conftest.$ac_ext <<_ACEOF
    15378 /* confdefs.h.  */
    15379 _ACEOF
    15380 cat confdefs.h >>conftest.$ac_ext
    15381 cat >>conftest.$ac_ext <<_ACEOF
    15382 /* end confdefs.h.  */
    15383 /* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q.
    15384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15385 #define av_rescale_q innocuous_av_rescale_q
    15386 
    15387 /* System header to define __stub macros and hopefully few prototypes,
    15388     which can conflict with char av_rescale_q (); below.
    15389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15390     <limits.h> exists even on freestanding compilers.  */
    15391 
    15392 #ifdef __STDC__
    15393 # include <limits.h>
    15394 #else
    15395 # include <assert.h>
    15396 #endif
    15397 
    15398 #undef av_rescale_q
    15399 
    15400 /* Override any GCC internal prototype to avoid an error.
    15401    Use char because int might match the return type of a GCC
    15402    builtin and then its argument prototype would still apply.  */
    15403 #ifdef __cplusplus
    15404 extern "C"
    15405 #endif
    15406 char av_rescale_q ();
    15407 /* The GNU C library defines this for functions which it implements
    15408     to always fail with ENOSYS.  Some functions are actually named
    15409     something starting with __ and the normal name is an alias.  */
    15410 #if defined __stub_av_rescale_q || defined __stub___av_rescale_q
    15411 choke me
    15412 #endif
    15413 
    15414 int
    15415 main ()
    15416 {
    15417 return av_rescale_q ();
    15418   ;
    15419   return 0;
    15420 }
    15421 _ACEOF
    15422 rm -f conftest.$ac_objext conftest$ac_exeext
    15423 if { (ac_try="$ac_link"
    15424 case "(($ac_try" in
    15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15426   *) ac_try_echo=$ac_try;;
    15427 esac
    15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15429 $as_echo "$ac_try_echo") >&5
    15430   (eval "$ac_link") 2>conftest.er1
    15431   ac_status=$?
    15432   grep -v '^ *+' conftest.er1 >conftest.err
    15433   rm -f conftest.er1
    15434   cat conftest.err >&5
    15435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15436   (exit $ac_status); } && {
    15437          test -z "$ac_cxx_werror_flag" ||
    15438          test ! -s conftest.err
    15439        } && test -s conftest$ac_exeext && {
    15440          test "$cross_compiling" = yes ||
    15441          $as_test_x conftest$ac_exeext
    15442        }; then
    15443   ac_cv_func_av_rescale_q=yes
    15444 else
    15445   $as_echo "$as_me: failed program was:" >&5
    15446 sed 's/^/| /' conftest.$ac_ext >&5
    15447 
    15448         ac_cv_func_av_rescale_q=no
    15449 fi
    15450 
    15451 rm -rf conftest.dSYM
    15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15453       conftest$ac_exeext conftest.$ac_ext
    15454 fi
    15455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5
    15456 $as_echo "$ac_cv_func_av_rescale_q" >&6; }
    15457 if test "x$ac_cv_func_av_rescale_q" = x""yes; then
    15458   :
    15459 else
    15460   { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5
    15461 $as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;}
    15462    { (exit 1); exit 1; }; }
    15463 fi
    15464 
    15465 { $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5
    15466 $as_echo_n "checking for av_write_frame... " >&6; }
    15467 if test "${ac_cv_func_av_write_frame+set}" = set; then
    15468   $as_echo_n "(cached) " >&6
    15469 else
    15470   cat >conftest.$ac_ext <<_ACEOF
    15471 /* confdefs.h.  */
    15472 _ACEOF
    15473 cat confdefs.h >>conftest.$ac_ext
    15474 cat >>conftest.$ac_ext <<_ACEOF
    15475 /* end confdefs.h.  */
    15476 /* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame.
    15477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15478 #define av_write_frame innocuous_av_write_frame
    15479 
    15480 /* System header to define __stub macros and hopefully few prototypes,
    15481     which can conflict with char av_write_frame (); below.
    15482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15483     <limits.h> exists even on freestanding compilers.  */
    15484 
    15485 #ifdef __STDC__
    15486 # include <limits.h>
    15487 #else
    15488 # include <assert.h>
    15489 #endif
    15490 
    15491 #undef av_write_frame
    15492 
    15493 /* Override any GCC internal prototype to avoid an error.
    15494    Use char because int might match the return type of a GCC
    15495    builtin and then its argument prototype would still apply.  */
    15496 #ifdef __cplusplus
    15497 extern "C"
    15498 #endif
    15499 char av_write_frame ();
    15500 /* The GNU C library defines this for functions which it implements
    15501     to always fail with ENOSYS.  Some functions are actually named
    15502     something starting with __ and the normal name is an alias.  */
    15503 #if defined __stub_av_write_frame || defined __stub___av_write_frame
    15504 choke me
    15505 #endif
    15506 
    15507 int
    15508 main ()
    15509 {
    15510 return av_write_frame ();
    15511   ;
    15512   return 0;
    15513 }
    15514 _ACEOF
    15515 rm -f conftest.$ac_objext conftest$ac_exeext
    15516 if { (ac_try="$ac_link"
    15517 case "(($ac_try" in
    15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15519   *) ac_try_echo=$ac_try;;
    15520 esac
    15521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15522 $as_echo "$ac_try_echo") >&5
    15523   (eval "$ac_link") 2>conftest.er1
    15524   ac_status=$?
    15525   grep -v '^ *+' conftest.er1 >conftest.err
    15526   rm -f conftest.er1
    15527   cat conftest.err >&5
    15528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15529   (exit $ac_status); } && {
    15530          test -z "$ac_cxx_werror_flag" ||
    15531          test ! -s conftest.err
    15532        } && test -s conftest$ac_exeext && {
    15533          test "$cross_compiling" = yes ||
    15534          $as_test_x conftest$ac_exeext
    15535        }; then
    15536   ac_cv_func_av_write_frame=yes
    15537 else
    15538   $as_echo "$as_me: failed program was:" >&5
    15539 sed 's/^/| /' conftest.$ac_ext >&5
    15540 
    15541         ac_cv_func_av_write_frame=no
    15542 fi
    15543 
    15544 rm -rf conftest.dSYM
    15545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15546       conftest$ac_exeext conftest.$ac_ext
    15547 fi
    15548 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5
    15549 $as_echo "$ac_cv_func_av_write_frame" >&6; }
    15550 if test "x$ac_cv_func_av_write_frame" = x""yes; then
    15551   :
    15552 else
    15553   { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5
    15554 $as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;}
    15555    { (exit 1); exit 1; }; }
    15556 fi
    15557 
     8855ac_fn_cxx_check_func "$LINENO" "av_write_trailer" "ac_cv_func_av_write_trailer"
     8856if test "x$ac_cv_func_av_write_trailer" = xyes; then :
     8857
     8858else
     8859  as_fn_error $? "oops! no av_write_trailer?!?" "$LINENO" 5
     8860fi
     8861
     8862ac_fn_cxx_check_func "$LINENO" "av_freep" "ac_cv_func_av_freep"
     8863if test "x$ac_cv_func_av_freep" = xyes; then :
     8864
     8865else
     8866  as_fn_error $? "oops! no av_freep ?!?" "$LINENO" 5
     8867fi
     8868
     8869ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
     8870if test "x$ac_cv_func_av_free" = xyes; then :
     8871
     8872else
     8873  as_fn_error $? "oops! no av_free ?!?" "$LINENO" 5
     8874fi
     8875
     8876ac_fn_cxx_check_func "$LINENO" "av_new_stream" "ac_cv_func_av_new_stream"
     8877if test "x$ac_cv_func_av_new_stream" = xyes; then :
     8878
     8879else
     8880  as_fn_error $? "oops! av_new_stream ?!?" "$LINENO" 5
     8881fi
     8882
     8883ac_fn_cxx_check_func "$LINENO" "av_malloc" "ac_cv_func_av_malloc"
     8884if test "x$ac_cv_func_av_malloc" = xyes; then :
     8885
     8886else
     8887  as_fn_error $? "oops! no av_malloc ?!?" "$LINENO" 5
     8888fi
     8889
     8890ac_fn_cxx_check_func "$LINENO" "av_init_packet" "ac_cv_func_av_init_packet"
     8891if test "x$ac_cv_func_av_init_packet" = xyes; then :
     8892
     8893else
     8894  as_fn_error $? "oops! no av_init_packet ?!?" "$LINENO" 5
     8895fi
     8896
     8897ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
     8898if test "x$ac_cv_func_av_rescale_q" = xyes; then :
     8899
     8900else
     8901  as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
     8902fi
     8903
     8904ac_fn_cxx_check_func "$LINENO" "av_write_frame" "ac_cv_func_av_write_frame"
     8905if test "x$ac_cv_func_av_write_frame" = xyes; then :
     8906
     8907else
     8908  as_fn_error $? "oops! av_write_frame ?!?" "$LINENO" 5
     8909fi
    155588910
    155598911for ac_func in img_convert
    15560 do
    15561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    15562 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    15563 $as_echo_n "checking for $ac_func... " >&6; }
    15564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    15565   $as_echo_n "(cached) " >&6
    15566 else
    15567   cat >conftest.$ac_ext <<_ACEOF
    15568 /* confdefs.h.  */
    15569 _ACEOF
    15570 cat confdefs.h >>conftest.$ac_ext
    15571 cat >>conftest.$ac_ext <<_ACEOF
    15572 /* end confdefs.h.  */
    15573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    15574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15575 #define $ac_func innocuous_$ac_func
    15576 
    15577 /* System header to define __stub macros and hopefully few prototypes,
    15578     which can conflict with char $ac_func (); below.
    15579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15580     <limits.h> exists even on freestanding compilers.  */
    15581 
    15582 #ifdef __STDC__
    15583 # include <limits.h>
    15584 #else
    15585 # include <assert.h>
    15586 #endif
    15587 
    15588 #undef $ac_func
    15589 
    15590 /* Override any GCC internal prototype to avoid an error.
    15591    Use char because int might match the return type of a GCC
    15592    builtin and then its argument prototype would still apply.  */
    15593 #ifdef __cplusplus
    15594 extern "C"
    15595 #endif
    15596 char $ac_func ();
    15597 /* The GNU C library defines this for functions which it implements
    15598     to always fail with ENOSYS.  Some functions are actually named
    15599     something starting with __ and the normal name is an alias.  */
    15600 #if defined __stub_$ac_func || defined __stub___$ac_func
    15601 choke me
    15602 #endif
    15603 
    15604 int
    15605 main ()
    15606 {
    15607 return $ac_func ();
    15608   ;
    15609   return 0;
    15610 }
    15611 _ACEOF
    15612 rm -f conftest.$ac_objext conftest$ac_exeext
    15613 if { (ac_try="$ac_link"
    15614 case "(($ac_try" in
    15615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15616   *) ac_try_echo=$ac_try;;
    15617 esac
    15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15619 $as_echo "$ac_try_echo") >&5
    15620   (eval "$ac_link") 2>conftest.er1
    15621   ac_status=$?
    15622   grep -v '^ *+' conftest.er1 >conftest.err
    15623   rm -f conftest.er1
    15624   cat conftest.err >&5
    15625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15626   (exit $ac_status); } && {
    15627          test -z "$ac_cxx_werror_flag" ||
    15628          test ! -s conftest.err
    15629        } && test -s conftest$ac_exeext && {
    15630          test "$cross_compiling" = yes ||
    15631          $as_test_x conftest$ac_exeext
    15632        }; then
    15633   eval "$as_ac_var=yes"
    15634 else
    15635   $as_echo "$as_me: failed program was:" >&5
    15636 sed 's/^/| /' conftest.$ac_ext >&5
    15637 
    15638         eval "$as_ac_var=no"
    15639 fi
    15640 
    15641 rm -rf conftest.dSYM
    15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15643       conftest$ac_exeext conftest.$ac_ext
    15644 fi
    15645 ac_res=`eval 'as_val=${'$as_ac_var'}
    15646                  $as_echo "$as_val"'`
    15647                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    15648 $as_echo "$ac_res" >&6; }
    15649 as_val=`eval 'as_val=${'$as_ac_var'}
    15650                  $as_echo "$as_val"'`
    15651    if test "x$as_val" = x""yes; then
     8912do :
     8913  ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
     8914if test "x$ac_cv_func_img_convert" = xyes; then :
    156528915  cat >>confdefs.h <<_ACEOF
    15653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8916#define HAVE_IMG_CONVERT 1
    156548917_ACEOF
    156558918
     
    156578920done
    156588921
    15659 
    156608922for ac_func in sws_scale
    15661 do
    15662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    15663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    15664 $as_echo_n "checking for $ac_func... " >&6; }
    15665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    15666   $as_echo_n "(cached) " >&6
    15667 else
    15668   cat >conftest.$ac_ext <<_ACEOF
    15669 /* confdefs.h.  */
    15670 _ACEOF
    15671 cat confdefs.h >>conftest.$ac_ext
    15672 cat >>conftest.$ac_ext <<_ACEOF
    15673 /* end confdefs.h.  */
    15674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    15675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15676 #define $ac_func innocuous_$ac_func
    15677 
    15678 /* System header to define __stub macros and hopefully few prototypes,
    15679     which can conflict with char $ac_func (); below.
    15680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15681     <limits.h> exists even on freestanding compilers.  */
    15682 
    15683 #ifdef __STDC__
    15684 # include <limits.h>
    15685 #else
    15686 # include <assert.h>
    15687 #endif
    15688 
    15689 #undef $ac_func
    15690 
    15691 /* Override any GCC internal prototype to avoid an error.
    15692    Use char because int might match the return type of a GCC
    15693    builtin and then its argument prototype would still apply.  */
    15694 #ifdef __cplusplus
    15695 extern "C"
    15696 #endif
    15697 char $ac_func ();
    15698 /* The GNU C library defines this for functions which it implements
    15699     to always fail with ENOSYS.  Some functions are actually named
    15700     something starting with __ and the normal name is an alias.  */
    15701 #if defined __stub_$ac_func || defined __stub___$ac_func
    15702 choke me
    15703 #endif
    15704 
    15705 int
    15706 main ()
    15707 {
    15708 return $ac_func ();
    15709   ;
    15710   return 0;
    15711 }
    15712 _ACEOF
    15713 rm -f conftest.$ac_objext conftest$ac_exeext
    15714 if { (ac_try="$ac_link"
    15715 case "(($ac_try" in
    15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15717   *) ac_try_echo=$ac_try;;
    15718 esac
    15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15720 $as_echo "$ac_try_echo") >&5
    15721   (eval "$ac_link") 2>conftest.er1
    15722   ac_status=$?
    15723   grep -v '^ *+' conftest.er1 >conftest.err
    15724   rm -f conftest.er1
    15725   cat conftest.err >&5
    15726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15727   (exit $ac_status); } && {
    15728          test -z "$ac_cxx_werror_flag" ||
    15729          test ! -s conftest.err
    15730        } && test -s conftest$ac_exeext && {
    15731          test "$cross_compiling" = yes ||
    15732          $as_test_x conftest$ac_exeext
    15733        }; then
    15734   eval "$as_ac_var=yes"
    15735 else
    15736   $as_echo "$as_me: failed program was:" >&5
    15737 sed 's/^/| /' conftest.$ac_ext >&5
    15738 
    15739         eval "$as_ac_var=no"
    15740 fi
    15741 
    15742 rm -rf conftest.dSYM
    15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15744       conftest$ac_exeext conftest.$ac_ext
    15745 fi
    15746 ac_res=`eval 'as_val=${'$as_ac_var'}
    15747                  $as_echo "$as_val"'`
    15748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    15749 $as_echo "$ac_res" >&6; }
    15750 as_val=`eval 'as_val=${'$as_ac_var'}
    15751                  $as_echo "$as_val"'`
    15752    if test "x$as_val" = x""yes; then
     8923do :
     8924  ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
     8925if test "x$ac_cv_func_sws_scale" = xyes; then :
    157538926  cat >>confdefs.h <<_ACEOF
    15754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8927#define HAVE_SWS_SCALE 1
    157558928_ACEOF
    157568929
     
    157588931done
    157598932
    15760 cat >conftest.$ac_ext <<_ACEOF
    15761 /* confdefs.h.  */
    15762 _ACEOF
    15763 cat confdefs.h >>conftest.$ac_ext
    15764 cat >>conftest.$ac_ext <<_ACEOF
     8933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    157658934/* end confdefs.h.  */
    157668935
     
    157838952}
    157848953_ACEOF
    15785 rm -f conftest.$ac_objext
    15786 if { (ac_try="$ac_compile"
    15787 case "(($ac_try" in
    15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15789   *) ac_try_echo=$ac_try;;
    15790 esac
    15791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15792 $as_echo "$ac_try_echo") >&5
    15793   (eval "$ac_compile") 2>conftest.er1
    15794   ac_status=$?
    15795   grep -v '^ *+' conftest.er1 >conftest.err
    15796   rm -f conftest.er1
    15797   cat conftest.err >&5
    15798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15799   (exit $ac_status); } && {
    15800          test -z "$ac_cxx_werror_flag" ||
    15801          test ! -s conftest.err
    15802        } && test -s conftest.$ac_objext; then
     8954if ac_fn_cxx_try_compile "$LINENO"; then :
    158038955  ac_avmedia_type_video="yes"
    158048956else
    15805   $as_echo "$as_me: failed program was:" >&5
    15806 sed 's/^/| /' conftest.$ac_ext >&5
    15807 
    15808         ac_avmedia_type_video="no"
    15809 fi
    15810 
     8957  ac_avmedia_type_video="no"
     8958fi
    158118959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    158128960if test "$ac_avmedia_type_video" == "yes" ; then
    158138961
    15814 cat >>confdefs.h <<\_ACEOF
    15815 #define HAVE_AVMEDIA_TYPE_VIDEO 1
    15816 _ACEOF
    15817 
    15818 fi
    15819 
    15820 
    15821 { $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5
     8962$as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
     8963
     8964fi
     8965
     8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_alloc_frame in -lavcodec" >&5
    158228967$as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; }
    15823 if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then
     8968if ${ac_cv_lib_avcodec_avcodec_alloc_frame+:} false; then :
    158248969  $as_echo_n "(cached) " >&6
    158258970else
    158268971  ac_check_lib_save_LIBS=$LIBS
    158278972LIBS="-lavcodec  $LIBS"
    15828 cat >conftest.$ac_ext <<_ACEOF
    15829 /* confdefs.h.  */
    15830 _ACEOF
    15831 cat confdefs.h >>conftest.$ac_ext
    15832 cat >>conftest.$ac_ext <<_ACEOF
     8973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    158338974/* end confdefs.h.  */
    158348975
     
    158488989}
    158498990_ACEOF
    15850 rm -f conftest.$ac_objext conftest$ac_exeext
    15851 if { (ac_try="$ac_link"
    15852 case "(($ac_try" in
    15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15854   *) ac_try_echo=$ac_try;;
    15855 esac
    15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15857 $as_echo "$ac_try_echo") >&5
    15858   (eval "$ac_link") 2>conftest.er1
    15859   ac_status=$?
    15860   grep -v '^ *+' conftest.er1 >conftest.err
    15861   rm -f conftest.er1
    15862   cat conftest.err >&5
    15863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15864   (exit $ac_status); } && {
    15865          test -z "$ac_cxx_werror_flag" ||
    15866          test ! -s conftest.err
    15867        } && test -s conftest$ac_exeext && {
    15868          test "$cross_compiling" = yes ||
    15869          $as_test_x conftest$ac_exeext
    15870        }; then
     8991if ac_fn_cxx_try_link "$LINENO"; then :
    158718992  ac_cv_lib_avcodec_avcodec_alloc_frame=yes
    158728993else
    15873   $as_echo "$as_me: failed program was:" >&5
    15874 sed 's/^/| /' conftest.$ac_ext >&5
    15875 
    15876         ac_cv_lib_avcodec_avcodec_alloc_frame=no
    15877 fi
    15878 
    15879 rm -rf conftest.dSYM
    15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15881       conftest$ac_exeext conftest.$ac_ext
     8994  ac_cv_lib_avcodec_avcodec_alloc_frame=no
     8995fi
     8996rm -f core conftest.err conftest.$ac_objext \
     8997    conftest$ac_exeext conftest.$ac_ext
    158828998LIBS=$ac_check_lib_save_LIBS
    158838999fi
    15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
     9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
    158859001$as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; }
    15886 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then
     9002if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = xyes; then :
    158879003  cat >>confdefs.h <<_ACEOF
    158889004#define HAVE_LIBAVCODEC 1
     
    158949010
    158959011# Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found
    15896 
    15897 { $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5
     9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_alloc_context in -lavformat" >&5
    158989013$as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; }
    15899 if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then
     9014if ${ac_cv_lib_avformat_avformat_alloc_context+:} false; then :
    159009015  $as_echo_n "(cached) " >&6
    159019016else
    159029017  ac_check_lib_save_LIBS=$LIBS
    159039018LIBS="-lavformat  $LIBS"
    15904 cat >conftest.$ac_ext <<_ACEOF
    15905 /* confdefs.h.  */
    15906 _ACEOF
    15907 cat confdefs.h >>conftest.$ac_ext
    15908 cat >>conftest.$ac_ext <<_ACEOF
     9019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    159099020/* end confdefs.h.  */
    159109021
     
    159249035}
    159259036_ACEOF
    15926 rm -f conftest.$ac_objext conftest$ac_exeext
    15927 if { (ac_try="$ac_link"
    15928 case "(($ac_try" in
    15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15930   *) ac_try_echo=$ac_try;;
    15931 esac
    15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15933 $as_echo "$ac_try_echo") >&5
    15934   (eval "$ac_link") 2>conftest.er1
    15935   ac_status=$?
    15936   grep -v '^ *+' conftest.er1 >conftest.err
    15937   rm -f conftest.er1
    15938   cat conftest.err >&5
    15939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15940   (exit $ac_status); } && {
    15941          test -z "$ac_cxx_werror_flag" ||
    15942          test ! -s conftest.err
    15943        } && test -s conftest$ac_exeext && {
    15944          test "$cross_compiling" = yes ||
    15945          $as_test_x conftest$ac_exeext
    15946        }; then
     9037if ac_fn_cxx_try_link "$LINENO"; then :
    159479038  ac_cv_lib_avformat_avformat_alloc_context=yes
    159489039else
    15949   $as_echo "$as_me: failed program was:" >&5
    15950 sed 's/^/| /' conftest.$ac_ext >&5
    15951 
    15952         ac_cv_lib_avformat_avformat_alloc_context=no
    15953 fi
    15954 
    15955 rm -rf conftest.dSYM
    15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15957       conftest$ac_exeext conftest.$ac_ext
     9040  ac_cv_lib_avformat_avformat_alloc_context=no
     9041fi
     9042rm -f core conftest.err conftest.$ac_objext \
     9043    conftest$ac_exeext conftest.$ac_ext
    159589044LIBS=$ac_check_lib_save_LIBS
    159599045fi
    15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
     9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
    159619047$as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; }
    15962 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then
     9048if test "x$ac_cv_lib_avformat_avformat_alloc_context" = xyes; then :
    159639049  cat >>confdefs.h <<_ACEOF
    159649050#define HAVE_LIBAVFORMAT 1
     
    159689054
    159699055else
    15970 
    15971 { $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5
     9056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_alloc_format_context in -lavformat" >&5
    159729057$as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; }
    15973 if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then
     9058if ${ac_cv_lib_avformat_av_alloc_format_context+:} false; then :
    159749059  $as_echo_n "(cached) " >&6
    159759060else
    159769061  ac_check_lib_save_LIBS=$LIBS
    159779062LIBS="-lavformat  $LIBS"
    15978 cat >conftest.$ac_ext <<_ACEOF
    15979 /* confdefs.h.  */
    15980 _ACEOF
    15981 cat confdefs.h >>conftest.$ac_ext
    15982 cat >>conftest.$ac_ext <<_ACEOF
     9063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    159839064/* end confdefs.h.  */
    159849065
     
    159989079}
    159999080_ACEOF
    16000 rm -f conftest.$ac_objext conftest$ac_exeext
    16001 if { (ac_try="$ac_link"
    16002 case "(($ac_try" in
    16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16004   *) ac_try_echo=$ac_try;;
    16005 esac
    16006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16007 $as_echo "$ac_try_echo") >&5
    16008   (eval "$ac_link") 2>conftest.er1
    16009   ac_status=$?
    16010   grep -v '^ *+' conftest.er1 >conftest.err
    16011   rm -f conftest.er1
    16012   cat conftest.err >&5
    16013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16014   (exit $ac_status); } && {
    16015          test -z "$ac_cxx_werror_flag" ||
    16016          test ! -s conftest.err
    16017        } && test -s conftest$ac_exeext && {
    16018          test "$cross_compiling" = yes ||
    16019          $as_test_x conftest$ac_exeext
    16020        }; then
     9081if ac_fn_cxx_try_link "$LINENO"; then :
    160219082  ac_cv_lib_avformat_av_alloc_format_context=yes
    160229083else
    16023   $as_echo "$as_me: failed program was:" >&5
    16024 sed 's/^/| /' conftest.$ac_ext >&5
    16025 
    16026         ac_cv_lib_avformat_av_alloc_format_context=no
    16027 fi
    16028 
    16029 rm -rf conftest.dSYM
    16030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    16031       conftest$ac_exeext conftest.$ac_ext
     9084  ac_cv_lib_avformat_av_alloc_format_context=no
     9085fi
     9086rm -f core conftest.err conftest.$ac_objext \
     9087    conftest$ac_exeext conftest.$ac_ext
    160329088LIBS=$ac_check_lib_save_LIBS
    160339089fi
    16034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
     9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
    160359091$as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; }
    16036 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then
     9092if test "x$ac_cv_lib_avformat_av_alloc_format_context" = xyes; then :
    160379093  cat >>confdefs.h <<_ACEOF
    160389094#define HAVE_LIBAVFORMAT 1
     
    160429098
    160439099else
    16044   { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&5
     9100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libavformat not usable" >&5
    160459101$as_echo "$as_me: WARNING: libavformat not usable" >&2;}
    160469102fi
     
    160509106
    160519107
    16052 { $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&5
     9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5
    160539109$as_echo_n "checking for nVidia Cg installation... " >&6; }
    160549110CG_DIR=""
     
    160639119  fi
    160649120done
    16065 { $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&5
     9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5
    160669122$as_echo "${CG_DIR}" >&6; }
    160679123
     
    160719127save_CPPFLAGS=$CPPFLAGS
    160729128CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"
    16073 
    160749129for ac_header in Cg/cgGL.h
    16075 do
    16076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    16077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16078   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    16079 $as_echo_n "checking for $ac_header... " >&6; }
    16080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16081   $as_echo_n "(cached) " >&6
    16082 fi
    16083 ac_res=`eval 'as_val=${'$as_ac_Header'}
    16084                  $as_echo "$as_val"'`
    16085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    16086 $as_echo "$ac_res" >&6; }
    16087 else
    16088   # Is the header compilable?
    16089 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    16090 $as_echo_n "checking $ac_header usability... " >&6; }
    16091 cat >conftest.$ac_ext <<_ACEOF
    16092 /* confdefs.h.  */
    16093 _ACEOF
    16094 cat confdefs.h >>conftest.$ac_ext
    16095 cat >>conftest.$ac_ext <<_ACEOF
    16096 /* end confdefs.h.  */
    16097 $ac_includes_default
    16098 #include <$ac_header>
    16099 _ACEOF
    16100 rm -f conftest.$ac_objext
    16101 if { (ac_try="$ac_compile"
    16102 case "(($ac_try" in
    16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16104   *) ac_try_echo=$ac_try;;
    16105 esac
    16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16107 $as_echo "$ac_try_echo") >&5
    16108   (eval "$ac_compile") 2>conftest.er1
    16109   ac_status=$?
    16110   grep -v '^ *+' conftest.er1 >conftest.err
    16111   rm -f conftest.er1
    16112   cat conftest.err >&5
    16113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16114   (exit $ac_status); } && {
    16115          test -z "$ac_cxx_werror_flag" ||
    16116          test ! -s conftest.err
    16117        } && test -s conftest.$ac_objext; then
    16118   ac_header_compiler=yes
    16119 else
    16120   $as_echo "$as_me: failed program was:" >&5
    16121 sed 's/^/| /' conftest.$ac_ext >&5
    16122 
    16123         ac_header_compiler=no
    16124 fi
    16125 
    16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    16127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    16128 $as_echo "$ac_header_compiler" >&6; }
    16129 
    16130 # Is the header present?
    16131 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    16132 $as_echo_n "checking $ac_header presence... " >&6; }
    16133 cat >conftest.$ac_ext <<_ACEOF
    16134 /* confdefs.h.  */
    16135 _ACEOF
    16136 cat confdefs.h >>conftest.$ac_ext
    16137 cat >>conftest.$ac_ext <<_ACEOF
    16138 /* end confdefs.h.  */
    16139 #include <$ac_header>
    16140 _ACEOF
    16141 if { (ac_try="$ac_cpp conftest.$ac_ext"
    16142 case "(($ac_try" in
    16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16144   *) ac_try_echo=$ac_try;;
    16145 esac
    16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16147 $as_echo "$ac_try_echo") >&5
    16148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    16149   ac_status=$?
    16150   grep -v '^ *+' conftest.er1 >conftest.err
    16151   rm -f conftest.er1
    16152   cat conftest.err >&5
    16153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16154   (exit $ac_status); } >/dev/null && {
    16155          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    16156          test ! -s conftest.err
    16157        }; then
    16158   ac_header_preproc=yes
    16159 else
    16160   $as_echo "$as_me: failed program was:" >&5
    16161 sed 's/^/| /' conftest.$ac_ext >&5
    16162 
    16163   ac_header_preproc=no
    16164 fi
    16165 
    16166 rm -f conftest.err conftest.$ac_ext
    16167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    16168 $as_echo "$ac_header_preproc" >&6; }
    16169 
    16170 # So?  What about this header?
    16171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    16172   yes:no: )
    16173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    16174 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    16175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    16176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    16177     ac_header_preproc=yes
    16178     ;;
    16179   no:yes:* )
    16180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    16181 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    16182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    16183 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    16184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    16185 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    16186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    16187 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    16188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    16189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    16190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    16191 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    16192     ( cat <<\_ASBOX
    16193 ## ----------------------------------- ##
    16194 ## Report this to rappture@nanohub.org ##
    16195 ## ----------------------------------- ##
    16196 _ASBOX
    16197      ) | sed "s/^/$as_me: WARNING:     /" >&2
    16198     ;;
    16199 esac
    16200 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    16201 $as_echo_n "checking for $ac_header... " >&6; }
    16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16203   $as_echo_n "(cached) " >&6
    16204 else
    16205   eval "$as_ac_Header=\$ac_header_preproc"
    16206 fi
    16207 ac_res=`eval 'as_val=${'$as_ac_Header'}
    16208                  $as_echo "$as_val"'`
    16209                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    16210 $as_echo "$ac_res" >&6; }
    16211 
    16212 fi
    16213 as_val=`eval 'as_val=${'$as_ac_Header'}
    16214                  $as_echo "$as_val"'`
    16215    if test "x$as_val" = x""yes; then
     9130do :
     9131  ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default"
     9132if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then :
    162169133  cat >>confdefs.h <<_ACEOF
    16217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    16218 _ACEOF
    16219 
    16220 else
    16221   { $as_echo "$as_me:$LINENO: WARNING: cannot find nVidia Cg headers" >&5
     9134#define HAVE_CG_CGGL_H 1
     9135_ACEOF
     9136
     9137else
     9138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5
    162229139$as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;}
    162239140fi
     
    162679184
    162689185
    16269 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrutil/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
     9186ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
    162709187
    162719188cat >confcache <<\_ACEOF
     
    162969213    *${as_nl}*)
    162979214      case $ac_var in #(
    16298       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
     9215      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
    162999216$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
    163009217      esac
     
    163029219      _ | IFS | as_nl) ;; #(
    163039220      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
    16304       *) $as_unset $ac_var ;;
     9221      *) { eval $ac_var=; unset $ac_var;} ;;
    163059222      esac ;;
    163069223    esac
     
    163109227    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    163119228    *${as_nl}ac_space=\ *)
    16312       # `set' does not quote correctly, so add quotes (double-quote
    16313       # substitution turns \\\\ into \\, and sed turns \\ into \).
     9229      # `set' does not quote correctly, so add quotes: double-quote
     9230      # substitution turns \\\\ into \\, and sed turns \\ into \.
    163149231      sed -n \
    163159232        "s/'/'\\\\''/g;
     
    163339250if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
    163349251  if test -w "$cache_file"; then
    16335     test "x$cache_file" != "x/dev/null" &&
    16336       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
     9252    if test "x$cache_file" != "x/dev/null"; then
     9253      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
    163379254$as_echo "$as_me: updating cache $cache_file" >&6;}
    16338     cat confcache >$cache_file
     9255      if test ! -f "$cache_file" || test -h "$cache_file"; then
     9256        cat confcache >"$cache_file"
     9257      else
     9258        case $cache_file in #(
     9259        */* | ?:*)
     9260          mv -f confcache "$cache_file"$$ &&
     9261          mv -f "$cache_file"$$ "$cache_file" ;; #(
     9262        *)
     9263          mv -f confcache "$cache_file" ;;
     9264        esac
     9265      fi
     9266    fi
    163399267  else
    16340     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
     9268    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
    163419269$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
    163429270  fi
     
    163529280ac_libobjs=
    163539281ac_ltlibobjs=
     9282U=
    163549283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    163559284  # 1. Remove the extension, and $U if already installed.
     
    163589287  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
    163599288  #    will be set to the directory where LIBOBJS objects are built.
    16360   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
    16361   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
     9289  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     9290  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    163629291done
    163639292LIBOBJS=$ac_libobjs
     
    163689297
    163699298
    16370 : ${CONFIG_STATUS=./config.status}
     9299: "${CONFIG_STATUS=./config.status}"
    163719300ac_write_fail=0
    163729301ac_clean_files_save=$ac_clean_files
    163739302ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    16374 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
     9303{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
    163759304$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
    16376 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     9305as_write_fail=0
     9306cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    163779307#! $SHELL
    163789308# Generated by $as_me.
     
    163849314ac_cs_recheck=false
    163859315ac_cs_silent=false
     9316
    163869317SHELL=\${CONFIG_SHELL-$SHELL}
    16387 _ACEOF
    16388 
    16389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    16390 ## --------------------- ##
    16391 ## M4sh Initialization.  ##
    16392 ## --------------------- ##
     9318export SHELL
     9319_ASEOF
     9320cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     9321## -------------------- ##
     9322## M4sh Initialization. ##
     9323## -------------------- ##
    163939324
    163949325# Be more Bourne compatible
    163959326DUALCASE=1; export DUALCASE # for MKS sh
    16396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     9327if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    163979328  emulate sh
    163989329  NULLCMD=:
     
    164029333  setopt NO_GLOB_SUBST
    164039334else
    16404   case `(set -o) 2>/dev/null` in
    16405   *posix*) set -o posix ;;
     9335  case `(set -o) 2>/dev/null` in #(
     9336  *posix*) :
     9337    set -o posix ;; #(
     9338  *) :
     9339     ;;
    164069340esac
    16407 
    16408 fi
    16409 
    16410 
    16411 
    16412 
    16413 # PATH needs CR
    16414 # Avoid depending upon Character Ranges.
    16415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    16416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    16417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    16418 as_cr_digits='0123456789'
    16419 as_cr_alnum=$as_cr_Letters$as_cr_digits
     9341fi
     9342
    164209343
    164219344as_nl='
     
    164269349as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    164279350as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    16428 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     9351# Prefer a ksh shell builtin over an external printf program on Solaris,
     9352# but without wasting forks for bash or zsh.
     9353if test -z "$BASH_VERSION$ZSH_VERSION" \
     9354    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     9355  as_echo='print -r --'
     9356  as_echo_n='print -rn --'
     9357elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    164299358  as_echo='printf %s\n'
    164309359  as_echo_n='printf %s'
     
    164379366    as_echo_n_body='eval
    164389367      arg=$1;
    16439       case $arg in
     9368      case $arg in #(
    164409369      *"$as_nl"*)
    164419370        expr "X$arg" : "X\\(.*\\)$as_nl";
     
    164609389fi
    164619390
    16462 # Support unset when possible.
    16463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    16464   as_unset=unset
    16465 else
    16466   as_unset=false
    16467 fi
    16468 
    164699391
    164709392# IFS
     
    164769398
    164779399# Find who we are.  Look in the path if we contain no directory separator.
    16478 case $0 in
     9400as_myself=
     9401case $0 in #((
    164799402  *[\\/]* ) as_myself=$0 ;;
    164809403  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    164839406  IFS=$as_save_IFS
    164849407  test -z "$as_dir" && as_dir=.
    16485   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    16486 done
     9408    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     9409  done
    164879410IFS=$as_save_IFS
    164889411
     
    164969419if test ! -f "$as_myself"; then
    164979420  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    16498   { (exit 1); exit 1; }
    16499 fi
    16500 
    16501 # Work around bugs in pre-3.0 UWIN ksh.
    16502 for as_var in ENV MAIL MAILPATH
    16503 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     9421  exit 1
     9422fi
     9423
     9424# Unset variables that we do not need and which cause bugs (e.g. in
     9425# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     9426# suppresses any "Segmentation fault" message there.  '((' could
     9427# trigger a bug in pdksh 5.2.14.
     9428for as_var in BASH_ENV ENV MAIL MAILPATH
     9429do eval test x\${$as_var+set} = xset \
     9430  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    165049431done
    165059432PS1='$ '
     
    165139440export LANGUAGE
    165149441
    16515 # Required to use basename.
     9442# CDPATH.
     9443(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     9444
     9445
     9446# as_fn_error STATUS ERROR [LINENO LOG_FD]
     9447# ----------------------------------------
     9448# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     9449# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     9450# script with STATUS, using 1 if that was 0.
     9451as_fn_error ()
     9452{
     9453  as_status=$1; test $as_status -eq 0 && as_status=1
     9454  if test "$4"; then
     9455    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     9456    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     9457  fi
     9458  $as_echo "$as_me: error: $2" >&2
     9459  as_fn_exit $as_status
     9460} # as_fn_error
     9461
     9462
     9463# as_fn_set_status STATUS
     9464# -----------------------
     9465# Set $? to STATUS, without forking.
     9466as_fn_set_status ()
     9467{
     9468  return $1
     9469} # as_fn_set_status
     9470
     9471# as_fn_exit STATUS
     9472# -----------------
     9473# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     9474as_fn_exit ()
     9475{
     9476  set +e
     9477  as_fn_set_status $1
     9478  exit $1
     9479} # as_fn_exit
     9480
     9481# as_fn_unset VAR
     9482# ---------------
     9483# Portably unset VAR.
     9484as_fn_unset ()
     9485{
     9486  { eval $1=; unset $1;}
     9487}
     9488as_unset=as_fn_unset
     9489# as_fn_append VAR VALUE
     9490# ----------------------
     9491# Append the text in VALUE to the end of the definition contained in VAR. Take
     9492# advantage of any shell optimizations that allow amortized linear growth over
     9493# repeated appends, instead of the typical quadratic growth present in naive
     9494# implementations.
     9495if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     9496  eval 'as_fn_append ()
     9497  {
     9498    eval $1+=\$2
     9499  }'
     9500else
     9501  as_fn_append ()
     9502  {
     9503    eval $1=\$$1\$2
     9504  }
     9505fi # as_fn_append
     9506
     9507# as_fn_arith ARG...
     9508# ------------------
     9509# Perform arithmetic evaluation on the ARGs, and store the result in the
     9510# global $as_val. Take advantage of shells that can avoid forks. The arguments
     9511# must be portable across $(()) and expr.
     9512if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     9513  eval 'as_fn_arith ()
     9514  {
     9515    as_val=$(( $* ))
     9516  }'
     9517else
     9518  as_fn_arith ()
     9519  {
     9520    as_val=`expr "$@" || test $? -eq 1`
     9521  }
     9522fi # as_fn_arith
     9523
     9524
    165169525if expr a : '\(a\)' >/dev/null 2>&1 &&
    165179526   test "X`expr 00001 : '.*\(...\)'`" = X001; then
     
    165279536fi
    165289537
    16529 
    16530 # Name of the executable.
     9538if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     9539  as_dirname=dirname
     9540else
     9541  as_dirname=false
     9542fi
     9543
    165319544as_me=`$as_basename -- "$0" ||
    165329545$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     
    165489561          s/.*/./; q'`
    165499562
    16550 # CDPATH.
    16551 $as_unset CDPATH
    16552 
    16553 
    16554 
    16555   as_lineno_1=$LINENO
    16556   as_lineno_2=$LINENO
    16557   test "x$as_lineno_1" != "x$as_lineno_2" &&
    16558   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    16559 
    16560   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    16561   # uniformly replaced by the line number.  The first 'sed' inserts a
    16562   # line-number line after each line using $LINENO; the second 'sed'
    16563   # does the real work.  The second script uses 'N' to pair each
    16564   # line-number line with the line containing $LINENO, and appends
    16565   # trailing '-' during substitution so that $LINENO is not a special
    16566   # case at line end.
    16567   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    16568   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    16569   # E. McMahon (1931-1989) for sed's syntax.  :-)
    16570   sed -n '
    16571     p
    16572     /[$]LINENO/=
    16573   ' <$as_myself |
    16574     sed '
    16575       s/[$]LINENO.*/&-/
    16576       t lineno
    16577       b
    16578       :lineno
    16579       N
    16580       :loop
    16581       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    16582       t loop
    16583       s/-\n.*//
    16584     ' >$as_me.lineno &&
    16585   chmod +x "$as_me.lineno" ||
    16586     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    16587    { (exit 1); exit 1; }; }
    16588 
    16589   # Don't try to exec as it changes $[0], causing all sort of problems
    16590   # (the dirname of $[0] is not the place where we might find the
    16591   # original and so on.  Autoconf is especially sensitive to this).
    16592   . "./$as_me.lineno"
    16593   # Exit status is that of the last command.
    16594   exit
    16595 }
    16596 
    16597 
    16598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    16599   as_dirname=dirname
    16600 else
    16601   as_dirname=false
    16602 fi
     9563# Avoid depending upon Character Ranges.
     9564as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     9565as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     9566as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     9567as_cr_digits='0123456789'
     9568as_cr_alnum=$as_cr_Letters$as_cr_digits
    166039569
    166049570ECHO_C= ECHO_N= ECHO_T=
    16605 case `echo -n x` in
     9571case `echo -n x` in #(((((
    166069572-n*)
    16607   case `echo 'x\c'` in
     9573  case `echo 'xy\c'` in
    166089574  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    16609   *)   ECHO_C='\c';;
     9575  xy)  ECHO_C='\c';;
     9576  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     9577       ECHO_T=' ';;
    166109578  esac;;
    166119579*)
    166129580  ECHO_N='-n';;
    166139581esac
    16614 if expr a : '\(a\)' >/dev/null 2>&1 &&
    16615    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    16616   as_expr=expr
    16617 else
    16618   as_expr=false
    16619 fi
    166209582
    166219583rm -f conf$$ conf$$.exe conf$$.file
     
    166329594    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    166339595    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    16634     # In both cases, we have to default to `cp -p'.
     9596    # In both cases, we have to default to `cp -pR'.
    166359597    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    16636       as_ln_s='cp -p'
     9598      as_ln_s='cp -pR'
    166379599  elif ln conf$$.file conf$$ 2>/dev/null; then
    166389600    as_ln_s=ln
    166399601  else
    16640     as_ln_s='cp -p'
     9602    as_ln_s='cp -pR'
    166419603  fi
    166429604else
    16643   as_ln_s='cp -p'
     9605  as_ln_s='cp -pR'
    166449606fi
    166459607rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    166469608rmdir conf$$.dir 2>/dev/null
    166479609
     9610
     9611# as_fn_mkdir_p
     9612# -------------
     9613# Create "$as_dir" as a directory, including parents if necessary.
     9614as_fn_mkdir_p ()
     9615{
     9616
     9617  case $as_dir in #(
     9618  -*) as_dir=./$as_dir;;
     9619  esac
     9620  test -d "$as_dir" || eval $as_mkdir_p || {
     9621    as_dirs=
     9622    while :; do
     9623      case $as_dir in #(
     9624      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     9625      *) as_qdir=$as_dir;;
     9626      esac
     9627      as_dirs="'$as_qdir' $as_dirs"
     9628      as_dir=`$as_dirname -- "$as_dir" ||
     9629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     9630         X"$as_dir" : 'X\(//\)[^/]' \| \
     9631         X"$as_dir" : 'X\(//\)$' \| \
     9632         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     9633$as_echo X"$as_dir" |
     9634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     9635            s//\1/
     9636            q
     9637          }
     9638          /^X\(\/\/\)[^/].*/{
     9639            s//\1/
     9640            q
     9641          }
     9642          /^X\(\/\/\)$/{
     9643            s//\1/
     9644            q
     9645          }
     9646          /^X\(\/\).*/{
     9647            s//\1/
     9648            q
     9649          }
     9650          s/.*/./; q'`
     9651      test -d "$as_dir" && break
     9652    done
     9653    test -z "$as_dirs" || eval "mkdir $as_dirs"
     9654  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     9655
     9656
     9657} # as_fn_mkdir_p
    166489658if mkdir -p . 2>/dev/null; then
    16649   as_mkdir_p=:
     9659  as_mkdir_p='mkdir -p "$as_dir"'
    166509660else
    166519661  test -d ./-p && rmdir ./-p
     
    166539663fi
    166549664
    16655 if test -x / >/dev/null 2>&1; then
    16656   as_test_x='test -x'
    16657 else
    16658   if ls -dL / >/dev/null 2>&1; then
    16659     as_ls_L_option=L
    16660   else
    16661     as_ls_L_option=
    16662   fi
    16663   as_test_x='
    16664     eval sh -c '\''
    16665       if test -d "$1"; then
    16666         test -d "$1/.";
    16667       else
    16668         case $1 in
    16669         -*)set "./$1";;
    16670         esac;
    16671         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    16672         ???[sx]*):;;*)false;;esac;fi
    16673     '\'' sh
    16674   '
    16675 fi
    16676 as_executable_p=$as_test_x
     9665
     9666# as_fn_executable_p FILE
     9667# -----------------------
     9668# Test if FILE is an executable regular file.
     9669as_fn_executable_p ()
     9670{
     9671  test -f "$1" && test -x "$1"
     9672} # as_fn_executable_p
     9673as_test_x='test -x'
     9674as_executable_p=as_fn_executable_p
    166779675
    166789676# Sed expression to map a string onto a valid CPP name.
     
    166849682
    166859683exec 6>&1
    16686 
    16687 # Save the log message, to keep $[0] and so on meaningful, and to
     9684## ----------------------------------- ##
     9685## Main body of $CONFIG_STATUS script. ##
     9686## ----------------------------------- ##
     9687_ASEOF
     9688test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     9689
     9690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     9691# Save the log message, to keep $0 and so on meaningful, and to
    166889692# report actual input values of CONFIG_FILES etc. instead of their
    166899693# values after options handling.
    166909694ac_log="
    166919695This file was extended by vizservers $as_me 0.1, which was
    16692 generated by GNU Autoconf 2.63.  Invocation command line was
     9696generated by GNU Autoconf 2.69.  Invocation command line was
    166939697
    166949698  CONFIG_FILES    = $CONFIG_FILES
     
    167219725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    167229726ac_cs_usage="\
    16723 \`$as_me' instantiates files from templates according to the
    16724 current configuration.
    16725 
    16726 Usage: $0 [OPTION]... [FILE]...
     9727\`$as_me' instantiates files and other configuration actions
     9728from templates according to the current configuration.  Unless the files
     9729and actions are specified as TAGs, all are instantiated by default.
     9730
     9731Usage: $0 [OPTION]... [TAG]...
    167279732
    167289733  -h, --help       print this help, then exit
    167299734  -V, --version    print version number and configuration settings, then exit
     9735      --config     print configuration, then exit
    167309736  -q, --quiet, --silent
    167319737                   do not print progress messages
     
    167439749$config_headers
    167449750
    16745 Report bugs to <bug-autoconf@gnu.org>."
     9751Report bugs to <rappture@nanohub.org>."
    167469752
    167479753_ACEOF
    167489754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     9755ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    167499756ac_cs_version="\\
    167509757vizservers config.status 0.1
    16751 configured by $0, generated by GNU Autoconf 2.63,
    16752   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
    16753 
    16754 Copyright (C) 2008 Free Software Foundation, Inc.
     9758configured by $0, generated by GNU Autoconf 2.69,
     9759  with options \\"\$ac_cs_config\\"
     9760
     9761Copyright (C) 2012 Free Software Foundation, Inc.
    167559762This config.status script is free software; the Free Software Foundation
    167569763gives unlimited permission to copy, distribute and modify it."
     
    167699776do
    167709777  case $1 in
    16771   --*=*)
     9778  --*=?*)
    167729779    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    167739780    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     9781    ac_shift=:
     9782    ;;
     9783  --*=)
     9784    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     9785    ac_optarg=
    167749786    ac_shift=:
    167759787    ;;
     
    167879799  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    167889800    $as_echo "$ac_cs_version"; exit ;;
     9801  --config | --confi | --conf | --con | --co | --c )
     9802    $as_echo "$ac_cs_config"; exit ;;
    167899803  --debug | --debu | --deb | --de | --d | -d )
    167909804    debug=: ;;
     
    167939807    case $ac_optarg in
    167949808    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     9809    '') as_fn_error $? "missing file argument" ;;
    167959810    esac
    16796     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
     9811    as_fn_append CONFIG_FILES " '$ac_optarg'"
    167979812    ac_need_defaults=false;;
    167989813  --header | --heade | --head | --hea )
     
    168019816    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    168029817    esac
    16803     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
     9818    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    168049819    ac_need_defaults=false;;
    168059820  --he | --h)
    168069821    # Conflict between --help and --header
    16807     { $as_echo "$as_me: error: ambiguous option: $1
    16808 Try \`$0 --help' for more information." >&2
    16809    { (exit 1); exit 1; }; };;
     9822    as_fn_error $? "ambiguous option: \`$1'
     9823Try \`$0 --help' for more information.";;
    168109824  --help | --hel | -h )
    168119825    $as_echo "$ac_cs_usage"; exit ;;
     
    168159829
    168169830  # This is an error.
    16817   -*) { $as_echo "$as_me: error: unrecognized option: $1
    16818 Try \`$0 --help' for more information." >&2
    16819    { (exit 1); exit 1; }; } ;;
    16820 
    16821   *) ac_config_targets="$ac_config_targets $1"
     9831  -*) as_fn_error $? "unrecognized option: \`$1'
     9832Try \`$0 --help' for more information." ;;
     9833
     9834  *) as_fn_append ac_config_targets " $1"
    168229835     ac_need_defaults=false ;;
    168239836
     
    168369849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    168379850if \$ac_cs_recheck; then
    16838   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     9851  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    168399852  shift
    168409853  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     
    168739886    "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;;
    168749887    "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;;
    16875     "nanovis/vrutil/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrutil/Makefile" ;;
    168769888    "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;;
    168779889    "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;;
     
    168839895    "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;;
    168849896
    16885   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    16886 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    16887    { (exit 1); exit 1; }; };;
     9897  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
    168889898  esac
    168899899done
     
    169079917$debug ||
    169089918{
    16909   tmp=
     9919  tmp= ac_tmp=
    169109920  trap 'exit_status=$?
    16911   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     9921  : "${ac_tmp:=$tmp}"
     9922  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
    169129923' 0
    16913   trap '{ (exit 1); exit 1; }' 1 2 13 15
     9924  trap 'as_fn_exit 1' 1 2 13 15
    169149925}
    169159926# Create a (secure) tmp directory for tmp files.
     
    169179928{
    169189929  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    16919   test -n "$tmp" && test -d "$tmp"
     9930  test -d "$tmp"
    169209931}  ||
    169219932{
    169229933  tmp=./conf$$-$RANDOM
    169239934  (umask 077 && mkdir "$tmp")
    16924 } ||
    16925 {
    16926    $as_echo "$as_me: cannot create a temporary directory in ." >&2
    16927    { (exit 1); exit 1; }
    16928 }
     9935} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     9936ac_tmp=$tmp
    169299937
    169309938# Set up the scripts for CONFIG_FILES section.
     
    169349942
    169359943
    16936 ac_cr='
    16937 '
     9944ac_cr=`echo X | tr X '\015'`
     9945# On cygwin, bash can eat \r inside `` if the user requested igncr.
     9946# But we know of no other shell where ac_cr would be empty at this
     9947# point, so we can use a bashism as a fallback.
     9948if test "x$ac_cr" = x; then
     9949  eval ac_cr=\$\'\\r\'
     9950fi
    169389951ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    169399952if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     
    169439956fi
    169449957
    16945 echo 'BEGIN {' >"$tmp/subs1.awk" &&
     9958echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
    169469959_ACEOF
    169479960
     
    169529965  echo "_ACEOF"
    169539966} >conf$$subs.sh ||
    16954   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
    16955 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
    16956    { (exit 1); exit 1; }; }
    16957 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
     9967  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     9968ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
    169589969ac_delim='%!_!# '
    169599970for ac_last_try in false false false false false :; do
    169609971  . ./conf$$subs.sh ||
    16961     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
    16962 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
    16963    { (exit 1); exit 1; }; }
     9972    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    169649973
    169659974  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    169679976    break
    169689977  elif $ac_last_try; then
    16969     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
    16970 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
    16971    { (exit 1); exit 1; }; }
     9978    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    169729979  else
    169739980    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    169779984
    169789985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    16979 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     9986cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
    169809987_ACEOF
    169819988sed -n '
     
    169919998:nl
    169929999h
    16993 s/\(.\{148\}\).*/\1/
     10000s/\(.\{148\}\)..*/\1/
    1699410001t more1
    1699510002s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     
    1700510012:delim
    1700610013h
    17007 s/\(.\{148\}\).*/\1/
     10014s/\(.\{148\}\)..*/\1/
    1700810015t more2
    1700910016s/["\\]/\\&/g; s/^/"/; s/$/"/
     
    1702510032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    1702610033_ACAWK
    17027 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     10034cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
    1702810035  for (key in S) S_is_set[key] = 1
    1702910036  FS = ""
     
    1705710064else
    1705810065  cat
    17059 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
    17060   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
    17061 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
    17062    { (exit 1); exit 1; }; }
    17063 _ACEOF
    17064 
    17065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    17066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     10066fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
     10067  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
     10068_ACEOF
     10069
     10070# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     10071# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
    1706710072# trailing colons and then remove the whole line if VPATH becomes empty
    1706810073# (actually we leave an empty line to preserve line numbers).
    1706910074if test "x$srcdir" = x.; then
    17070   ac_vpsub='/^[  ]*VPATH[        ]*=/{
    17071 s/:*\$(srcdir):*/:/
    17072 s/:*\${srcdir}:*/:/
    17073 s/:*@srcdir@:*/:/
    17074 s/^\([^=]*=[     ]*\):*/\1/
     10075  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
     10076h
     10077s///
     10078s/^/:/
     10079s/[      ]*$/:/
     10080s/:\$(srcdir):/:/g
     10081s/:\${srcdir}:/:/g
     10082s/:@srcdir@:/:/g
     10083s/^:*//
    1707510084s/:*$//
     10085x
     10086s/\(=[   ]*\).*/\1/
     10087G
     10088s/\n//
    1707610089s/^[^=]*=[       ]*$//
    1707710090}'
     
    1708510098# This happens for instance with `./config.status Makefile'.
    1708610099if test -n "$CONFIG_HEADERS"; then
    17087 cat >"$tmp/defines.awk" <<\_ACAWK ||
     10100cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
    1708810101BEGIN {
    1708910102_ACEOF
     
    1709710110ac_delim='%!_!# '
    1709810111for ac_last_try in false false :; do
    17099   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
    17100   if test -z "$ac_t"; then
     10112  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     10113  if test -z "$ac_tt"; then
    1710110114    break
    1710210115  elif $ac_last_try; then
    17103     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
    17104 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
    17105    { (exit 1); exit 1; }; }
     10116    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
    1710610117  else
    1710710118    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    1718810199_ACEOF
    1718910200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    17190   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
    17191 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
    17192    { (exit 1); exit 1; }; }
     10201  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
    1719310202fi # test -n "$CONFIG_HEADERS"
    1719410203
     
    1720310212  case $ac_mode$ac_tag in
    1720410213  :[FHL]*:*);;
    17205   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
    17206 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
    17207    { (exit 1); exit 1; }; };;
     10214  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
    1720810215  :[FH]-) ac_tag=-:-;;
    1720910216  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    1722410231    do
    1722510232      case $ac_f in
    17226       -) ac_f="$tmp/stdin";;
     10233      -) ac_f="$ac_tmp/stdin";;
    1722710234      *) # Look for the file first in the build tree, then in the source tree
    1722810235         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     
    1723310240           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    1723410241           esac ||
    17235            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
    17236 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
    17237    { (exit 1); exit 1; }; };;
     10242           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
    1723810243      esac
    1723910244      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
    17240       ac_file_inputs="$ac_file_inputs '$ac_f'"
     10245      as_fn_append ac_file_inputs " '$ac_f'"
    1724110246    done
    1724210247
     
    1724910254    if test x"$ac_file" != x-; then
    1725010255      configure_input="$ac_file.  $configure_input"
    17251       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
     10256      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
    1725210257$as_echo "$as_me: creating $ac_file" >&6;}
    1725310258    fi
     
    1726110266
    1726210267    case $ac_tag in
    17263     *:-:* | *:-) cat >"$tmp/stdin" \
    17264       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
    17265 $as_echo "$as_me: error: could not create $ac_file" >&2;}
    17266    { (exit 1); exit 1; }; } ;;
     10268    *:-:* | *:-) cat >"$ac_tmp/stdin" \
     10269      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    1726710270    esac
    1726810271    ;;
     
    1729210295          }
    1729310296          s/.*/./; q'`
    17294   { as_dir="$ac_dir"
    17295   case $as_dir in #(
    17296   -*) as_dir=./$as_dir;;
    17297   esac
    17298   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    17299     as_dirs=
    17300     while :; do
    17301       case $as_dir in #(
    17302       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    17303       *) as_qdir=$as_dir;;
    17304       esac
    17305       as_dirs="'$as_qdir' $as_dirs"
    17306       as_dir=`$as_dirname -- "$as_dir" ||
    17307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    17308          X"$as_dir" : 'X\(//\)[^/]' \| \
    17309          X"$as_dir" : 'X\(//\)$' \| \
    17310          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    17311 $as_echo X"$as_dir" |
    17312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    17313             s//\1/
    17314             q
    17315           }
    17316           /^X\(\/\/\)[^/].*/{
    17317             s//\1/
    17318             q
    17319           }
    17320           /^X\(\/\/\)$/{
    17321             s//\1/
    17322             q
    17323           }
    17324           /^X\(\/\).*/{
    17325             s//\1/
    17326             q
    17327           }
    17328           s/.*/./; q'`
    17329       test -d "$as_dir" && break
    17330     done
    17331     test -z "$as_dirs" || eval "mkdir $as_dirs"
    17332   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
    17333 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
    17334    { (exit 1); exit 1; }; }; }
     10297  as_dir="$ac_dir"; as_fn_mkdir_p
    1733510298  ac_builddir=.
    1733610299
     
    1738910352# FIXME: This hack should be removed a few years after 2.60.
    1739010353ac_datarootdir_hack=; ac_datarootdir_seen=
    17391 
    1739210354ac_sed_dataroot='
    1739310355/datarootdir/ {
     
    1739910361/@infodir@/p
    1740010362/@localedir@/p
    17401 /@mandir@/p
    17402 '
     10363/@mandir@/p'
    1740310364case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
    1740410365*datarootdir*) ac_datarootdir_seen=yes;;
    1740510366*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
    17406   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     10367  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
    1740710368$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
    1740810369_ACEOF
     
    1741410375  s&@localedir@&$localedir&g
    1741510376  s&@mandir@&$mandir&g
    17416     s&\\\${datarootdir}&$datarootdir&g' ;;
     10377  s&\\\${datarootdir}&$datarootdir&g' ;;
    1741710378esac
    1741810379_ACEOF
     
    1744210403$ac_datarootdir_hack
    1744310404"
    17444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
    17445   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
    17446 $as_echo "$as_me: error: could not create $ac_file" >&2;}
    17447    { (exit 1); exit 1; }; }
     10405eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
     10406  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    1744810407
    1744910408test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    17450   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
    17451   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    17452   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    17453 which seems to be undefined.  Please make sure it is defined." >&5
     10409  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
     10410  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
     10411      "$ac_tmp/out"`; test -z "$ac_out"; } &&
     10412  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     10413which seems to be undefined.  Please make sure it is defined" >&5
    1745410414$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    17455 which seems to be undefined.  Please make sure it is defined." >&2;}
    17456 
    17457   rm -f "$tmp/stdin"
     10415which seems to be undefined.  Please make sure it is defined" >&2;}
     10416
     10417  rm -f "$ac_tmp/stdin"
    1745810418  case $ac_file in
    17459   -) cat "$tmp/out" && rm -f "$tmp/out";;
    17460   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     10419  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
     10420  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
    1746110421  esac \
    17462   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
    17463 $as_echo "$as_me: error: could not create $ac_file" >&2;}
    17464    { (exit 1); exit 1; }; }
     10422  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    1746510423 ;;
    1746610424  :H)
     
    1747110429    {
    1747210430      $as_echo "/* $configure_input  */" \
    17473       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    17474     } >"$tmp/config.h" \
    17475       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
    17476 $as_echo "$as_me: error: could not create $ac_file" >&2;}
    17477    { (exit 1); exit 1; }; }
    17478     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
    17479       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     10431      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     10432    } >"$ac_tmp/config.h" \
     10433      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     10434    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     10435      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    1748010436$as_echo "$as_me: $ac_file is unchanged" >&6;}
    1748110437    else
    1748210438      rm -f "$ac_file"
    17483       mv "$tmp/config.h" "$ac_file" \
    17484         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
    17485 $as_echo "$as_me: error: could not create $ac_file" >&2;}
    17486    { (exit 1); exit 1; }; }
     10439      mv "$ac_tmp/config.h" "$ac_file" \
     10440        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    1748710441    fi
    1748810442  else
    1748910443    $as_echo "/* $configure_input  */" \
    17490       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
    17491       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
    17492 $as_echo "$as_me: error: could not create -" >&2;}
    17493    { (exit 1); exit 1; }; }
     10444      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     10445      || as_fn_error $? "could not create -" "$LINENO" 5
    1749410446  fi
    1749510447 ;;
     
    1750110453
    1750210454
    17503 { (exit 0); exit 0; }
    17504 _ACEOF
    17505 chmod +x $CONFIG_STATUS
     10455as_fn_exit 0
     10456_ACEOF
    1750610457ac_clean_files=$ac_clean_files_save
    1750710458
    1750810459test $ac_write_fail = 0 ||
    17509   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
    17510 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
    17511    { (exit 1); exit 1; }; }
     10460  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    1751210461
    1751310462
     
    1753010479  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    1753110480  # would make configure fail if this is the last instruction.
    17532   $ac_cs_success || { (exit 1); exit 1; }
     10481  $ac_cs_success || as_fn_exit 1
    1753310482fi
    1753410483if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
    17535   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     10484  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
    1753610485$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    1753710486fi
  • branches/blt4/packages/vizservers/configure.in

    r2936 r3061  
    399399   nanovis/newmat11/Makefile \
    400400   nanovis/R2/src/Makefile \
    401    nanovis/vrutil/Makefile \
    402401   nanovis/vrmath/Makefile \
    403402   nanovis/imgLoaders/Makefile \
  • branches/blt4/packages/vizservers/nanovis/Axis.h

    r2966 r3061  
    44
    55#include <stdlib.h>
     6#include <string.h>
    67
    78#include <cmath>
  • branches/blt4/packages/vizservers/nanovis/Command.cpp

    r2966 r3061  
    14901490
    14911491static int
    1492 VolumeAxisOp(ClientData clientData, Tcl_Interp *interp, int objc,
    1493              Tcl_Obj *const *objv)
    1494 {
    1495     const char *string = Tcl_GetString(objv[2]);
    1496     char c;
    1497     c = string[0];
    1498     if ((c == 'l') && (strcmp(string, "label") == 0)) {
    1499         int axis;
    1500         if (GetAxisFromObj(interp, objv[3], &axis) != TCL_OK) {
    1501             return TCL_ERROR;
    1502         }
    1503         std::vector<Volume *> ivol;
    1504         if (GetVolumes(interp, objc - 5, objv + 5, &ivol) != TCL_OK) {
    1505             return TCL_ERROR;
    1506         }
    1507         std::vector<Volume *>::iterator iter;
    1508         const char *label;
    1509         label = Tcl_GetString(objv[4]);
    1510         for (iter = ivol.begin(); iter != ivol.end(); iter++) {
    1511             (*iter)->setLabel(axis, label);
    1512         }
    1513     } else {
    1514         Tcl_AppendResult(interp, "bad option \"", string,
    1515                          "\": should be label", (char*)NULL);
    1516         return TCL_ERROR;
    1517     }
    1518     return TCL_OK;
    1519 }
    1520 
    1521 static int
    15221492VolumeStateOp(ClientData clientData, Tcl_Interp *interp, int objc,
    15231493              Tcl_Obj *const *objv)
     
    15571527static Rappture::CmdSpec volumeOps[] = {
    15581528    {"animation", 2, VolumeAnimationOp,   3, 0, "oper ?args?",},
    1559     {"axis",      2, VolumeAxisOp,        4, 0, "label axis value ?indices?",},
    15601529    {"data",      2, VolumeDataOp,        3, 0, "oper ?args?",},
    15611530    {"delete",    2, VolumeDeleteOp,      3, 0, "?name...?",},
     
    15721541 * ----------------------------------------------------------------------
    15731542 * CLIENT COMMAND:
    1574  *   volume axis label x|y|z <value> ?<volumeId> ...?
    15751543 *   volume data state on|off ?<volumeId> ...?
    15761544 *   volume outline state on|off ?<volumeId> ...?
  • branches/blt4/packages/vizservers/nanovis/FlowCmd.cpp

    r2966 r3061  
    146146
    147147void
    148 FlowParticles::Render()
     148FlowParticles::render()
    149149{
    150150    TRACE("rendering particles %s\n", _name);
     
    161161
    162162void
    163 FlowParticles::Configure()
     163FlowParticles::configure()
    164164{
    165165    _rendererPtr->setPos(FlowCmd::GetRelativePosition(&_sv.position));
     
    343343{
    344344    FlowParticlesIterator iter;
    345     FlowParticles *particlesPtr;
    346     for (particlesPtr = FirstParticles(&iter); particlesPtr != NULL;
     345    for (FlowParticles *particlesPtr = FirstParticles(&iter);
     346        particlesPtr != NULL;
    347347         particlesPtr = NextParticles(&iter)) {
    348         particlesPtr->Reset();
     348        particlesPtr->reset();
    349349    }
    350350}
     
    353353FlowCmd::Advect()
    354354{
    355     NvVectorField *fieldPtr;
    356     fieldPtr = VectorField();
     355    NvVectorField *fieldPtr = VectorField();
    357356    fieldPtr->active(true);
    358357    FlowParticlesIterator iter;
    359     FlowParticles *particlesPtr;
    360     for (particlesPtr = FirstParticles(&iter); particlesPtr != NULL;
     358    for (FlowParticles *particlesPtr = FirstParticles(&iter);
     359        particlesPtr != NULL;
    361360         particlesPtr = NextParticles(&iter)) {
    362361        if (particlesPtr->visible()) {
    363             particlesPtr->Advect();
     362            particlesPtr->advect();
    364363        }
    365364    }
     
    372371    _fieldPtr->render();
    373372    FlowParticlesIterator iter;
    374     FlowParticles *particlesPtr;
    375     for (particlesPtr = FirstParticles(&iter); particlesPtr != NULL;
     373    for (FlowParticles *particlesPtr = FirstParticles(&iter);
     374        particlesPtr != NULL;
    376375         particlesPtr = NextParticles(&iter)) {
    377376        if (particlesPtr->visible()) {
    378             particlesPtr->Render();
     377            particlesPtr->render();
    379378        }
    380379    }
     
    517516FlowCmd::InitializeParticles()
    518517{
    519     FlowParticles *particlesPtr;
    520518    FlowParticlesIterator iter;
    521     for (particlesPtr = FirstParticles(&iter); particlesPtr != NULL;
     519    for (FlowParticles *particlesPtr = FirstParticles(&iter);
     520         particlesPtr != NULL;
    522521         particlesPtr = NextParticles(&iter)) {
    523         particlesPtr->Initialize();
     522        particlesPtr->initialize();
    524523    }
    525524}
     
    571570        NanoVis::licRenderer->
    572571            setVectorField(_volPtr->id, loc,
    573                            1.0f / _volPtr->aspectRatioWidth,
    574                            1.0f / _volPtr->aspectRatioHeight,
    575                            1.0f / _volPtr->aspectRatioDepth,
     572                           _volPtr->aspectRatioWidth,
     573                           _volPtr->aspectRatioHeight,
     574                           _volPtr->aspectRatioDepth,
    576575                           _volPtr->wAxis.max());
    577576        SetCurrentPosition();
     
    582581    if (NanoVis::velocityArrowsSlice != NULL) {
    583582        NanoVis::velocityArrowsSlice->
    584             vectorField(_volPtr->id,
    585                         //*(volPtr->get_location()),
    586                         1.0f,
    587                         _volPtr->aspectRatioHeight / _volPtr->aspectRatioWidth,
    588                         _volPtr->aspectRatioDepth / _volPtr->aspectRatioWidth
    589                         //,volPtr->wAxis.max()
    590                         );
    591         TRACE("Arrows enabled set to %d\n", _sv.showArrows);
     583            setVectorField(_volPtr->id, loc,
     584                           _volPtr->aspectRatioWidth,
     585                           _volPtr->aspectRatioHeight,
     586                           _volPtr->aspectRatioDepth,
     587                           _volPtr->wAxis.max());
    592588        NanoVis::velocityArrowsSlice->axis(_sv.slicePos.axis);
    593589        NanoVis::velocityArrowsSlice->slicePos(_sv.slicePos.value);
    594590        NanoVis::velocityArrowsSlice->enabled(_sv.showArrows);
    595591    }
    596     FlowParticles *particlesPtr;
     592
    597593    FlowParticlesIterator partIter;
    598     for (particlesPtr = FirstParticles(&partIter); particlesPtr != NULL;
     594    for (FlowParticles *particlesPtr = FirstParticles(&partIter);
     595         particlesPtr != NULL;
    599596         particlesPtr = NextParticles(&partIter)) {
    600         particlesPtr->SetVectorField(_volPtr);
     597        particlesPtr->setVectorField(_volPtr, loc,
     598                                     _volPtr->aspectRatioWidth,
     599                                     _volPtr->aspectRatioHeight,
     600                                     _volPtr->aspectRatioDepth,
     601                                     _volPtr->wAxis.max());
    601602    }
    602603    return true;
     
    13571358        return TCL_ERROR;
    13581359    }
    1359     if (particlesPtr->ParseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {
     1360    if (particlesPtr->parseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {
    13601361        delete particlesPtr;
    13611362        return TCL_ERROR;
    13621363    }
    1363     particlesPtr->Configure();
     1364    particlesPtr->configure();
    13641365    NanoVis::eventuallyRedraw();
    13651366    Tcl_SetObjResult(interp, objv[3]);
     
    13771378        return TCL_ERROR;
    13781379    }
    1379     if (particlesPtr->ParseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {
    1380         return TCL_ERROR;
    1381     }
    1382     particlesPtr->Configure();
     1380    if (particlesPtr->parseSwitches(interp, objc - 4, objv + 4) != TCL_OK) {
     1381        return TCL_ERROR;
     1382    }
     1383    particlesPtr->configure();
    13831384    NanoVis::eventuallyRedraw(NanoVis::MAP_FLOWS);
    13841385    return TCL_OK;
  • branches/blt4/packages/vizservers/nanovis/FlowCmd.h

    r2936 r3061  
    8383    }
    8484
    85     int ParseSwitches(Tcl_Interp *interp, int objc, Tcl_Obj *const *objv)
     85    int parseSwitches(Tcl_Interp *interp, int objc, Tcl_Obj *const *objv)
    8686    {
    8787        if (Rappture::ParseSwitches(interp, _switches, objc, objv, &_sv,
     
    9292    }
    9393
    94     void Advect()
     94    void advect()
    9595    {
    9696        assert(_rendererPtr->active());
     
    9898    }
    9999
    100     void Render();
    101 
    102     void Reset()
     100    void render();
     101
     102    void reset()
    103103    {
    104104        _rendererPtr->reset();
    105105    }
    106106
    107     void Initialize()
     107    void initialize()
    108108    {
    109109        _rendererPtr->initialize();
    110110    }
    111111
    112     void SetVectorField(Volume *volPtr)
     112    void setVectorField(Volume *volPtr, const Vector3& location,
     113                        float scaleX, float scaleY, float scaleZ,
     114                        float max)
    113115    {
    114116        _rendererPtr->
    115             setVectorField(volPtr->id, 
    116                            volPtr->location(),
    117                            1.0f,
    118                            volPtr->height / (float)volPtr->width,
    119                            volPtr->depth  / (float)volPtr->width,
    120                            volPtr->wAxis.max());
    121     }
    122 
    123     void Configure();
     117            setVectorField(volPtr->id,
     118                           location,
     119                           scaleX,
     120                           scaleY,
     121                           scaleZ,
     122                           max);
     123    }
     124
     125    void configure();
    124126
    125127private:
  • branches/blt4/packages/vizservers/nanovis/Makefile.in

    r2966 r3061  
    4444VRMATH_LIB      = $(VRMATH_DIR)/vrmath.a
    4545VRMATH_LIB_SPEC = $(VRMATH_LIB)
    46 VRUTIL_DIR      = ./vrutil
    47 VRUTIL_INC_SPEC = -I$(srcdir)/$(VRUTIL_DIR)/include
    48 VRUTIL_LIB      = $(VRUTIL_DIR)/vrutil.a
    49 VRUTIL_LIB_SPEC = $(VRUTIL_LIB)
    5046R2_DIR          = ./R2
    5147R2_INC_SPEC     = -I$(srcdir)/$(R2_DIR)/include
     
    6965                $(MAT_LIB_SPEC) \
    7066                $(VRMATH_LIB_SPEC) \
    71                 $(VRUTIL_LIB_SPEC) \
    7267                $(TCL_LIB_SPEC) \
    7368                $(CG_LIB_SPEC) \
     
    8479                $(MAT_INC_SPEC) \
    8580                $(VRMATH_INC_SPEC) \
    86                 $(VRUTIL_INC_SPEC) \
    8781                $(TCL_INC_SPEC) \
    8882                $(FF_INC_SPEC) \
     
    134128                Plane.o \
    135129                PlaneRenderer.o \
    136                 Renderable.o \
    137130                RenderContext.o \
    138131                RenderVertexArray.o \
     
    155148
    156149resources       = \
    157                 $(srcdir)/resources/Font.bmp \
    158150                $(srcdir)/resources/arrows.bmp \
    159                 $(srcdir)/resources/arrows_red_bg.bmp \
    160151                $(srcdir)/resources/particle2.bmp \
    161152                $(srcdir)/resources/verdana.fnt \
     
    182173                ParticleSystem.o \
    183174                ParticleSystemFactory.o \
     175                Renderable.o \
    184176                ScreenSnapper.o \
    185177                Sphere.o
     
    203195endif
    204196
    205 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutil transfer-function
    206 
    207 all: newmat11 R2 imgloaders vrmath vrutil nanovis
     197.PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath transfer-function
     198
     199all: newmat11 R2 imgloaders vrmath nanovis
    208200
    209201install: install-nanovis install-resources install-shaders
     
    212204R2:                     $(R2_LIB)
    213205vrmath:                 $(VRMATH_LIB)
    214 vrutil:                 $(VRUTIL_LIB)
    215206imgloaders:             $(IMG_LIB)
    216207
     
    221212        $(MAKE) -C $(VRMATH_DIR) all
    222213
    223 $(VRUTIL_LIB):
    224         $(MAKE) -C $(VRUTIL_DIR) all
    225 
    226214$(R2_LIB):
    227215        $(MAKE) -C $(R2_DIR)/src all
     
    230218        $(MAKE) -C $(IMG_DIR) all
    231219
    232 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(VRUTIL_LIB) $(OBJS)
     220nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(OBJS)
    233221        $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS)
    234222
     
    269257        $(MAKE) -C $(MAT_DIR) clean
    270258        $(MAKE) -C $(VRMATH_DIR) clean
    271         $(MAKE) -C $(VRUTIL_DIR) clean
    272259        $(MAKE) -C $(R2_DIR)/src clean
    273260        $(MAKE) -C $(IMG_DIR) clean
     
    277264        $(MAKE) -C $(MAT_DIR) distclean
    278265        $(MAKE) -C $(VRMATH_DIR) distclean
    279         $(MAKE) -C $(VRUTIL_DIR) distclean
    280266        $(MAKE) -C $(R2_DIR)/src distclean
    281267        $(MAKE) -C $(IMG_DIR) distclean
  • branches/blt4/packages/vizservers/nanovis/Mat4x4.cpp

    r2936 r3061  
    110110
    111111Vector4
    112 Mat4x4::multiply_row_vector(const Vector4& v) const
     112Mat4x4::multiplyRowVector(const Vector4& v) const
    113113{
    114114    Vector4 ret;
  • branches/blt4/packages/vizservers/nanovis/Mat4x4.h

    r2936 r3061  
    3535    Mat4x4 transpose() const;
    3636
    37     Vector4 multiply_row_vector(const Vector4& v) const;
     37    Vector4 multiplyRowVector(const Vector4& v) const;
    3838
    3939    Vector4 transform(const Vector4& v) const;
  • branches/blt4/packages/vizservers/nanovis/NvLIC.cpp

    r2966 r3061  
    1818#include <assert.h>
    1919
    20 #include <R2/R2FilePath.h>
     20#include "nanovis.h"
     21#include "define.h"
    2122
    2223#include "NvLIC.h"
    2324#include "NvShader.h"
    24 #include "define.h"
    2525#include "Trace.h"
    2626
     
    3131NvLIC::NvLIC(int size, int width, int height, int axis,
    3232             float offset) :
    33     Renderable(Vector3(0.0f, 0.0f, 0.0f)),
    3433    _width(width),
    3534    _height(height),
     
    5857    glGenTextures(1, &_patternTex);
    5958    glBindTexture(GL_TEXTURE_2D, _patternTex);
    60     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
    61     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
    6259    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    6360    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
     61    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
     62    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
    6463    glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
    6564
     
    111110    _renderVelShader = new NvShader();
    112111    _renderVelShader->loadFragmentProgram("render_vel.cg", "main");
    113 
    114     _velTexParamRenderVel =
    115         _renderVelShader->getNamedParameterFromFP("vel_tex");
    116 
    117     _planeNormalParamRenderVel =
    118         _renderVelShader->getNamedParameterFromFP("plane_normal");
    119 
    120     _maxParam =
    121         _renderVelShader->getNamedParameterFromFP("vmax");
    122112
    123113    makePatterns();
     
    253243    glBindTexture(GL_TEXTURE_3D, _vectorFieldId);
    254244
    255     cgGLSetTextureParameter(_velTexParamRenderVel, _vectorFieldId);
    256     cgGLEnableTextureParameter(_velTexParamRenderVel);
    257     cgGLSetParameter4f(_planeNormalParamRenderVel, 1., 1., 0., 0);
    258     cgGLSetParameter1f(_maxParam, _max);
    259 
    260245    _renderVelShader->bind();
     246    _renderVelShader->setFPTextureParameter("vel_tex", _vectorFieldId);
     247    _renderVelShader->setFPParameter1f("timestep", 0.0005);
     248    _renderVelShader->setFPParameter1f("vmax", _max > 100.0 ? 100.0 : _max);
     249
     250    switch (_axis) {
     251    case 0:
     252        _renderVelShader->setFPParameter3f("projection_vector", 0., 1., 1.);
     253        break;
     254    case 1:
     255        _renderVelShader->setFPParameter3f("projection_vector", 1., 0., 1.);
     256        break;
     257    default:
     258    case 2:
     259        _renderVelShader->setFPParameter3f("projection_vector", 1., 1., 0.);
     260        break;
     261    }
    261262
    262263    glBegin(GL_QUADS);
    263264    {
    264265        switch (_axis) {
    265         case 0 :
    266             // TBD..
     266        case 0:
    267267            glTexCoord3f(_offset, 0., 0.); glVertex2f(0.,    0.);
    268268            glTexCoord3f(_offset, 1., 0.); glVertex2f(_size, 0.);
    269269            glTexCoord3f(_offset, 1., 1.); glVertex2f(_size, _size);
    270270            glTexCoord3f(_offset, 0., 1.); glVertex2f(0.,    _size);
    271                 break;
    272         case 1 :
    273             // TBD..
     271            break;
     272        case 1:
    274273            glTexCoord3f(0., _offset, 0.); glVertex2f(0.,    0.);
    275274            glTexCoord3f(1., _offset, 0.); glVertex2f(_size, 0.);
    276275            glTexCoord3f(1., _offset, 1.); glVertex2f(_size, _size);
    277276            glTexCoord3f(0., _offset, 1.); glVertex2f(0.,    _size);
    278                 break;
    279         case 2 :
     277            break;
     278        case 2:
    280279            glTexCoord3f(0., 0., _offset); glVertex2f(0.,    0.);
    281280            glTexCoord3f(1., 0., _offset); glVertex2f(_size, 0.);
     
    287286    glEnd();
    288287
     288    _renderVelShader->disableFPTextureParameter("vel_tex");
    289289    _renderVelShader->unbind();
    290 
    291     cgGLDisableTextureParameter(_velTexParamRenderVel);
    292290
    293291    glBindTexture(GL_TEXTURE_3D, 0);
     
    364362        for (j = 0; j < NMESH-1; j++) {
    365363            y = DM*j;
    366             glTexCoord2f(x1, y); 
     364            glTexCoord2f(x1, y);
    367365            getVelocity(x1, y, &px, &py);
    368366            glVertex2f(px, py);
    369367
    370             glTexCoord2f(x2, y); 
    371             getVelocity(x2, y, &px, &py); 
     368            glTexCoord2f(x2, y);
     369            getVelocity(x2, y, &px, &py);
    372370            glVertex2f(px, py);
    373371        }
     
    382380    glEnable(GL_TEXTURE_2D);
    383381    glCallList(_iframe % _Npat + _disListID);
    384     glBegin(GL_QUAD_STRIP);
     382    glBegin(GL_QUADS);
    385383    {
    386384        glTexCoord2f(0.0,   0.0);   glVertex2f(0.0, 0.0);
    387         glTexCoord2f(0.0,   _tmax); glVertex2f(0.0, 1.0);
    388385        glTexCoord2f(_tmax, 0.0);   glVertex2f(1.0, 0.0);
    389386        glTexCoord2f(_tmax, _tmax); glVertex2f(1.0, 1.0);
    390         glEnd();
    391     }
     387        glTexCoord2f(0.0,   _tmax); glVertex2f(0.0, 1.0);
     388    }
     389    glEnd();
    392390    glDisable(GL_TEXTURE_2D);
    393391
     
    450448    glPushMatrix();
    451449
    452     float w = 1.0f / _scale.x;
    453450    glTranslatef(_origin.x, _origin.y, _origin.z);
    454     glScalef(1.0f, 1.0f / _scale.y / w, 1.0f / _scale.z / w);
     451    glScalef(_scale.x, _scale.y, _scale.z);
    455452
    456453    glColor4f(1, 1, 1, 1);
     
    512509
    513510    //TRACE("(xi yi) = (%d %d), ", xi, yi);
    514    vx = _sliceVector[4 * (xi+yi*_size)];
    515    vy = _sliceVector[4 * (xi+yi*_size)+1];
     511   switch (_axis) {
     512   case 0:
     513       vx = _sliceVector[4 * (xi+yi*_size)+2];
     514       vy = _sliceVector[4 * (xi+yi*_size)+1];
     515       break;
     516   case 1:
     517       vx = _sliceVector[4 * (xi+yi*_size)];
     518       vy = _sliceVector[4 * (xi+yi*_size)+2];
     519       break;
     520   case 2:
     521   default:
     522       vx = _sliceVector[4 * (xi+yi*_size)];
     523       vy = _sliceVector[4 * (xi+yi*_size)+1];
     524       break;
     525   }
    516526   r  = vx*vx + vy*vy;
    517527
  • branches/blt4/packages/vizservers/nanovis/NvLIC.h

    r2966 r3061  
    1818
    1919#include <GL/glew.h>
    20 #include <Cg/cg.h>
    2120
    22 #include "config.h"
    23 #include "nanovis.h"
    24 
    25 #include "Renderable.h"
    2621#include "Vector3.h"
    2722#include "Volume.h"
    2823#include "NvShader.h"
    2924
    30 class NvLIC : public Renderable
     25class NvLIC
    3126{
    3227public:
     
    9287
    9388    int _width, _height;
    94     int _size;                          // The lic is a square of size, it can
    95                                         // be stretched
    96     float *_sliceVector;                // Storage for the per slice vectors
    97                                         // driving the follow.
    98     Vector3 _scale;                     // Scaling factor stretching the lic
    99                                         // plane to fit the actual dimensions
     89    int _size;                  /**< The lic is a square of size, it can
     90                                   be stretched */
     91    float *_sliceVector;        /**< Storage for the per slice vectors
     92                                   driving the flow */
     93    Vector3 _scale;             /**< Scaling factor stretching the lic
     94                                   plane to fit the actual dimensions */
    10095    Vector3 _origin;
    101     float _offset;                      // [0,1] offset of _axis plane
    102     int _axis;
     96    float _offset;            ///< [0,1] offset of slice plane
     97    int _axis;                ///< Axis normal to slice plane
    10398
    10499    //some convolve variables. They can pretty much stay fixed
     
    114109
    115110    NvShader *_renderVelShader;
    116     //CG shader parameters
    117     CGparameter _velTexParam;
    118     CGparameter _velTexParamRenderVel;
    119     CGparameter _planeNormalParamRenderVel;
    120     CGparameter _maxParam;
    121  
     111
    122112    GLuint _colorTex, _patternTex, _magTex;
    123113    GLuint _fbo, _velFbo, _sliceVectorTex;  // For projecting 3d vector to 2d
  • branches/blt4/packages/vizservers/nanovis/NvParticleRenderer.h

    r2966 r3061  
    1919#include <GL/glew.h>
    2020
    21 #include "Renderable.h"
    2221#include "NvParticleAdvectionShader.h"
    2322#include "RenderVertexArray.h"
     
    3938};
    4039
    41 class NvParticleRenderer : public Renderable
     40class NvParticleRenderer
    4241{
    4342public:
  • branches/blt4/packages/vizservers/nanovis/NvRegularVolumeShader.cpp

    r2936 r3061  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 
    3 #include <GL/glew.h>
    4 #include <Cg/cgGL.h>
    52
    63#include "NvRegularVolumeShader.h"
     
    1815{
    1916    loadFragmentProgram("one_volume.cg", "main");
    20     _mviOneVolumeParam = getNamedParameterFromFP("modelViewInv");
    21     _mvOneVolumeParam = getNamedParameterFromFP("modelView");
    22 
    23     _volOneVolumeParam = getNamedParameterFromFP("volume");
    24     _tfOneVolumeParam = getNamedParameterFromFP("tf");
    25     _renderParamOneVolumeParam = getNamedParameterFromFP("renderParameters");
    26     _optionOneVolumeParam = getNamedParameterFromFP("options");
    2717}
    2818
     
    3020{
    3121    //regular cubic volume
    32     cgGLSetStateMatrixParameter(_mviOneVolumeParam, CG_GL_MODELVIEW_MATRIX,
    33                                 CG_GL_MATRIX_INVERSE);
    34     cgGLSetStateMatrixParameter(_mvOneVolumeParam, CG_GL_MODELVIEW_MATRIX,
    35                                 CG_GL_MATRIX_IDENTITY);
     22    setGLStateMatrixFPParameter("modelViewInv", MODELVIEW_MATRIX,
     23                                MATRIX_INVERSE);
     24    setGLStateMatrixFPParameter("modelView", MODELVIEW_MATRIX,
     25                                MATRIX_IDENTITY);
    3626
    37     cgGLSetTextureParameter(_volOneVolumeParam, volume->id);
    38     cgGLSetTextureParameter(_tfOneVolumeParam, tfID);
    39     cgGLEnableTextureParameter(_volOneVolumeParam);
    40     cgGLEnableTextureParameter(_tfOneVolumeParam);
     27    setFPTextureParameter("volume", volume->id);
     28    setFPTextureParameter("tf", tfID);
    4129
    4230    if (!sliceMode) {
    43         cgGLSetParameter4f(_renderParamOneVolumeParam,
    44                            volume->numSlices(),
    45                            volume->opacityScale(),
    46                            volume->diffuse(),
    47                            volume->specular());
     31        setFPParameter4f("renderParameters",
     32                         volume->numSlices(),
     33                         volume->opacityScale(),
     34                         volume->diffuse(),
     35                         volume->specular());
    4836    } else {
    49         cgGLSetParameter4f(_renderParamOneVolumeParam,
    50                            0.,
    51                            volume->opacityScale(),
    52                            volume->diffuse(),
    53                            volume->specular());
     37        setFPParameter4f("renderParameters",
     38                         0.,
     39                         volume->opacityScale(),
     40                         volume->diffuse(),
     41                         volume->specular());
    5442    }
    5543
    56     cgGLSetParameter4f(_optionOneVolumeParam,
    57                        0.0f,
    58                        volume->isosurface(),
    59                        0.0f,
    60                        0.0f);
     44    setFPParameter4f("options",
     45                     0.0f,
     46                     volume->isosurface(),
     47                     0.0f,
     48                     0.0f);
    6149
    6250    NvShader:: bind();
     
    6553void NvRegularVolumeShader::unbind()
    6654{
    67     cgGLDisableTextureParameter(_volOneVolumeParam);
    68     cgGLDisableTextureParameter(_tfOneVolumeParam);
     55    disableFPTextureParameter("volume");
     56    disableFPTextureParameter("tf");
    6957
    7058    NvShader::unbind();
  • branches/blt4/packages/vizservers/nanovis/NvRegularVolumeShader.h

    r2936 r3061  
    1010public:
    1111    NvRegularVolumeShader();
     12
    1213    virtual ~NvRegularVolumeShader();
    1314
    1415    virtual void bind(unsigned int tfID, Volume* volume, int sliceMode);
     16
    1517    virtual void unbind();
    1618
    1719private:
    1820    void init();
    19 
    20     CGparameter _volOneVolumeParam;
    21     CGparameter _tfOneVolumeParam;
    22     CGparameter _mviOneVolumeParam;
    23     CGparameter _mvOneVolumeParam;
    24     CGparameter _renderParamOneVolumeParam;
    25     CGparameter _optionOneVolumeParam;
    2621};
    2722
  • branches/blt4/packages/vizservers/nanovis/NvShader.cpp

    r2966 r3061  
    4949
    5050CGprogram
    51 LoadCgSourceProgram(CGcontext context, const char *fileName,
    52                     CGprofile profile, const char *entryPoint)
    53 {
    54     return NvShader::loadCgSourceProgram(context, fileName,
    55                                          profile, entryPoint);
    56 }
    57 
    58 CGprogram
    5951NvShader::loadCgSourceProgram(CGcontext context, const char *fileName,
    6052                              CGprofile profile, const char *entryPoint)
    6153{
    62     const char *path = R2FilePath::getInstance()->getPath(fileName);
    63     if (path == NULL) {
     54    std::string path = R2FilePath::getInstance()->getPath(fileName);
     55    if (path.empty()) {
    6456        ERROR("can't find program \"%s\"\n", fileName);
    6557    }
    66     TRACE("cg program compiling: %s\n", path);
     58    TRACE("cg program compiling: %s\n", path.c_str());
    6759    CGprogram program;
    68     program = cgCreateProgramFromFile(context, CG_SOURCE, path, profile,
     60    program = cgCreateProgramFromFile(context, CG_SOURCE, path.c_str(), profile,
    6961                                      entryPoint, NULL);
    7062    cgGLLoadProgram(program);
     
    7365        ERROR("Error message: %s\n", cgGetLastListing(context));
    7466    }
    75     TRACE("successfully compiled program: %s\n", path);
    76     delete [] path;
     67    TRACE("successfully compiled program: %s\n", path.c_str());
    7768    return program;
    7869}
  • branches/blt4/packages/vizservers/nanovis/NvShader.h

    r2966 r3061  
    1111
    1212#include "Trace.h"
    13 
    14 extern CGprogram
    15 LoadCgSourceProgram(CGcontext context, const char *fileName,
    16                     CGprofile profile, const char *entryPoint);
    1713
    1814class NvShader
     
    253249    }
    254250
    255     static CGprogram
    256     loadCgSourceProgram(CGcontext context, const char *filename,
    257                         CGprofile profile, const char *entryPoint);
    258 
    259251protected:
    260252    typedef std::tr1::unordered_map<std::string, CGparameter> ParameterHashmap;
     
    316308    static CGprofile _defaultFragmentProfile;
    317309    static CGcontext _cgContext;
     310
     311private:
     312    static CGprogram
     313    loadCgSourceProgram(CGcontext context, const char *filename,
     314                        CGprofile profile, const char *entryPoint);
    318315};
    319316
  • branches/blt4/packages/vizservers/nanovis/NvZincBlendeVolumeShader.cpp

    r2966 r3061  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 
    3 #include <GL/glew.h>
    4 #include <Cg/cgGL.h>
    52
    63#include "NvZincBlendeVolumeShader.h"
     
    1815{
    1916    loadFragmentProgram("zincblende_volume.cg", "main");
    20     _tfParam = getNamedParameterFromFP("tf");
    21     _volumeAParam = getNamedParameterFromFP("volumeA");
    22     _volumeBParam = getNamedParameterFromFP("volumeB");
    23     _cellSizeParam = getNamedParameterFromFP("cellSize");
    24     _mviParam = getNamedParameterFromFP("modelViewInv");
    25     _renderParam = getNamedParameterFromFP("renderParameters");
    26     _optionOneVolumeParam = getNamedParameterFromFP("options");
    2717}
    2818
     
    3020{
    3121    ZincBlendeVolume *vol = (ZincBlendeVolume *)volume;
    32     cgGLSetStateMatrixParameter(_mviParam, CG_GL_MODELVIEW_MATRIX,
    33                                 CG_GL_MATRIX_INVERSE);
    34     cgGLSetTextureParameter(_tfParam, tfID);
    35     cgGLSetParameter4f(_cellSizeParam,
    36                        vol->cellSize.x,
    37                        vol->cellSize.y,
    38                        vol->cellSize.z, 0.);
     22    setGLStateMatrixFPParameter("modelViewInv", MODELVIEW_MATRIX,
     23                                MATRIX_INVERSE);
     24    setFPTextureParameter("tf", tfID);
     25    setFPParameter4f("cellSize",
     26                     vol->cellSize.x,
     27                     vol->cellSize.y,
     28                     vol->cellSize.z, 0.);
    3929
    4030    if (!sliceMode) {
    41         cgGLSetParameter4f(_renderParam,
    42                            vol->numSlices(),
    43                            vol->opacityScale(),
    44                            vol->diffuse(),
    45                            vol->specular());
     31        setFPParameter4f("renderParameters",
     32                         vol->numSlices(),
     33                         vol->opacityScale(),
     34                         vol->diffuse(),
     35                         vol->specular());
    4636    } else {
    47         cgGLSetParameter4f(_renderParam,
    48                            0.,
    49                            vol->opacityScale(),
    50                            vol->diffuse(),
    51                            vol->specular());
     37        setFPParameter4f("renderParameters",
     38                         0.,
     39                         vol->opacityScale(),
     40                         vol->diffuse(),
     41                         vol->specular());
    5242    }
    5343
    54     cgGLSetParameter4f(_optionOneVolumeParam,
    55                        0.0f,
    56                        volume->isosurface(),
    57                        0.0f,
    58                        0.0f);
     44    setFPParameter4f("options",
     45                     0.0f,
     46                     volume->isosurface(),
     47                     0.0f,
     48                     0.0f);
    5949
    60     cgGLSetTextureParameter(_volumeAParam, vol->zincblendeTex[0]->id());
    61     cgGLSetTextureParameter(_volumeBParam, vol->zincblendeTex[1]->id());
    62     cgGLEnableTextureParameter(_volumeAParam);
    63     cgGLEnableTextureParameter(_volumeBParam);
     50    setFPTextureParameter("volumeA", vol->zincblendeTex[0]->id());
     51    setFPTextureParameter("volumeB", vol->zincblendeTex[1]->id());
    6452
    6553    NvShader::bind();
     
    6856void NvZincBlendeVolumeShader::unbind()
    6957{
    70     cgGLDisableTextureParameter(_volumeAParam);
    71     cgGLDisableTextureParameter(_volumeBParam);
    72     cgGLDisableTextureParameter(_tfParam);
     58    disableFPTextureParameter("volumeA");
     59    disableFPTextureParameter("volumeB");
     60    disableFPTextureParameter("tf");
    7361
    7462    NvShader::unbind();
  • branches/blt4/packages/vizservers/nanovis/NvZincBlendeVolumeShader.h

    r2936 r3061  
    1919private:
    2020    void init();
    21 
    22     CGparameter _tfParam;
    23     CGparameter _volumeAParam;
    24     CGparameter _volumeBParam;
    25     CGparameter _cellSizeParam;
    26     CGparameter _mviParam;
    27     CGparameter _renderParam;
    28     CGparameter _optionOneVolumeParam;
    2921};
    3022
  • branches/blt4/packages/vizservers/nanovis/ParticleSystem.cpp

    r2936 r3061  
    1111#include <Cg/cgGL.h>
    1212
    13 #include <vrutil/vrFilePath.h>
     13#include <R2/R2FilePath.h>
     14
    1415#include <Image.h>
    1516#include <ImageLoader.h>
     
    8384            if (tail != -1) {
    8485                sprintf(buff, fileNameFormat, curIndex);
    85                 //std::string path = vrFilePath::getInstance()->getPath(buff);
     86                //std::string path = R2FilePath::getInstance()->getPath(buff);
    8687#ifdef WANT_TRACE
    8788                float t = clock() /(float) CLOCKS_PER_SEC;
     
    284285    }
    285286
    286 #ifdef USE_RGBA_ARROW
    287     std::string path = vrFilePath::getInstance()->getPath("arrows_red_bg.bmp");
    288 #else
    289     std::string path = vrFilePath::getInstance()->getPath("arrows.bmp");
    290 #endif
     287    std::string path = R2FilePath::getInstance()->getPath("arrows.bmp");
     288
    291289    if (!path.empty()) {
    292290        ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
     
    301299                if (bytes != NULL) {
    302300#ifdef USE_RGBA_ARROW
    303                     for (unsigned int y = 0; y < image->getHeight(); ++y) {
    304                         for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {
    305                             bytes[3] = (bytes[0] > 127 &&
    306                                         bytes[1] < 127 &&
    307                                         bytes[2] < 127) ? 0 : 255;
    308                         }
    309                     }
    310301                    _arrows = new Texture2D(image->getWidth(), image->getHeight(),
    311302                                            GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL);
     
    428419    _context = NvShader::getCgContext();
    429420
    430     std::string path = vrFilePath::getInstance()->getPath("distance.cg");
     421    std::string path = R2FilePath::getInstance()->getPath("distance.cg");
    431422    _distanceInitFP = 
    432423        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    445436    cgGLLoadProgram(_distanceSortLookupFP);
    446437
    447     path = vrFilePath::getInstance()->getPath("mergesort.cg");
     438    path = R2FilePath::getInstance()->getPath("mergesort.cg");
    448439    _sortRecursionFP =
    449440        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    463454    _seStepParam = cgGetNamedParameter(_sortEndFP, "step");
    464455
    465     path = vrFilePath::getInstance()->getPath("passthrough.cg");
     456    path = R2FilePath::getInstance()->getPath("passthrough.cg");
    466457    _passthroughFP =
    467458        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    472463    _biasParam = cgGetNamedParameter(_passthroughFP, "bias");
    473464
    474     path = vrFilePath::getInstance()->getPath("moveparticles.cg");
     465    path = R2FilePath::getInstance()->getPath("moveparticles.cg");
    475466    _moveParticlesFP =
    476467        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    484475    _mpScale= cgGetNamedParameter(_moveParticlesFP, "scale");
    485476
    486     path = vrFilePath::getInstance()->getPath("particlevp.cg");
     477    path = R2FilePath::getInstance()->getPath("particlevp.cg");
    487478    _particleVP =
    488479        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    494485    _mvCurrentTimeParam =  cgGetNamedParameter(_particleVP, "currentTime");
    495486
    496     path = vrFilePath::getInstance()->getPath("particlefp.cg");
     487    path = R2FilePath::getInstance()->getPath("particlefp.cg");
    497488    _particleFP =
    498489        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    501492    _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield");
    502493
    503     path = vrFilePath::getInstance()->getPath("moveparticles.cg");
     494    path = R2FilePath::getInstance()->getPath("moveparticles.cg");
    504495    _initParticlePosFP =
    505496        cgCreateProgramFromFile(_context, CG_SOURCE, path.c_str(),
     
    16131604            if (_drawBBoxEnabled) drawUnitBox();
    16141605            glColor3f(1, 1, 1);
     1606
    16151607            glDepthMask(GL_FALSE);
    16161608            glEnable(GL_BLEND);
     
    16191611            glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    16201612#else
    1621             glEnable(GL_ALPHA_TEST);
    1622             //glAlphaFunc(GL_GEQUAL, 0.5);
    16231613            glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    16241614#endif
     1615            glEnable(GL_ALPHA_TEST);
     1616            glAlphaFunc(GL_GREATER, 0.6);
     1617
    16251618            glEnable(GL_POINT_SPRITE_ARB);
    16261619            glPointSize(_pointSize);
     
    16291622
    16301623#ifndef TEST
    1631             _arrows->activate(); //_arrows->bind(0);
     1624            _arrows->activate();
    16321625            glEnable(GL_TEXTURE_2D);
    1633             //glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f );
    1634             glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f );
    1635 
    1636             glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 1.0f);
    1637             glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, 100.0f);
    1638             glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
     1626            glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f);
     1627
     1628            glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
     1629            glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f);
     1630            glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    16391631
    16401632            cgGLBindProgram(_particleVP);
  • branches/blt4/packages/vizservers/nanovis/ParticleSystemFactory.cpp

    r2936 r3061  
    55#include <expat.h>
    66
    7 #include <vrutil/vrFilePath.h>
     7#include <R2/R2FilePath.h>
    88
    99#include "ParticleSystemFactory.h"
     
    144144        char buff[256];
    145145        sprintf(buff, fileName.c_str(), startIndex);
    146         std::string path = vrFilePath::getInstance()->getPath(buff);
     146        std::string path = R2FilePath::getInstance()->getPath(buff);
    147147        if (path.size()) {
    148148            std::string dir;
     
    169169        }
    170170    } else {
    171         std::string path = vrFilePath::getInstance()->getPath(fileName.c_str());
     171        std::string path = R2FilePath::getInstance()->getPath(fileName.c_str());
    172172        _newParticleSystem =
    173173            new ParticleSystem(width, height, path.c_str(),
  • branches/blt4/packages/vizservers/nanovis/Plane.cpp

    r2936 r3061  
    4343
    4444    Mat4x4 inv = mat.inverse();
    45     Vector4 new_coeffs = inv.multiply_row_vector(coeffs);
     45    Vector4 new_coeffs = inv.multiplyRowVector(coeffs);
    4646    a = new_coeffs.x;
    4747    b = new_coeffs.y;
  • branches/blt4/packages/vizservers/nanovis/PointSetRenderer.cpp

    r2966 r3061  
    1717{
    1818    _shader = new PointShader();
    19     const char *path = R2FilePath::getInstance()->getPath("particle2.bmp");
    20     if (path == NULL) {
    21         ERROR("pointset file not found - %s\n", path);
     19    std::string path = R2FilePath::getInstance()->getPath("particle2.bmp");
     20    if (path.empty()) {
     21        ERROR("Particle image not found\n");
    2222        return;
    2323    }
    2424
    2525    ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
    26     Image *image = loader->load(path, Image::IMG_RGBA);
    27     delete [] path;
     26    Image *image = loader->load(path.c_str(), Image::IMG_RGBA);
    2827    unsigned char *bytes = (unsigned char *)image->getImageBuffer();
    2928    if (bytes) {
     
    4039                                      4, image->getImageBuffer());
    4140    } else {
    42         ERROR("fail to load image [%s]\n", "particle2.bmp");
     41        ERROR("Failed to load particle image\n");
    4342    }
    4443
  • branches/blt4/packages/vizservers/nanovis/R2/include/R2/R2FilePath.h

    r2936 r3061  
    44
    55#include <list>
    6 
    7 #include <R2/R2string.h>
     6#include <string>
    87
    98class R2FilePath
     
    1716     * @return return full path of the file, but if not found, return ""
    1817     */
    19     const char *getPath(const char *fileName);
     18    std::string getPath(const char *fileName);
    2019
    2120    /**
     
    3130
    3231private:
    33     typedef std::list<R2string> R2stringList;
    34     typedef std::list<R2string>::iterator R2stringListIter;
     32    typedef std::list<std::string> StringList;
     33    typedef std::list<std::string>::iterator StringListIter;
    3534
    3635    /// application directory
    37     static R2string _curDirectory;
     36    static std::string _curDirectory;
    3837
    3938    /// R2FilePath instance
     
    4140
    4241    /// all default file paths
    43     R2stringList _pathList;
     42    StringList _pathList;
    4443};
    4544
  • branches/blt4/packages/vizservers/nanovis/R2/include/R2/R2Fonts.h

    r2936 r3061  
    44
    55#include <vector>
     6#include <string>
    67
    78#include <R2/R2.h>
    89#include <R2/R2Object.h>
    9 #include <R2/R2string.h>
    1010
    1111class R2Fonts : public R2Object
    1212{
    1313    struct R2FontAttributes {
    14         char *_fontName;
     14        std::string _fontName;
    1515        int _textureWidth;
    1616        int _textureHeight;
     
    2929        R2CharInfo _chars[256];
    3030    };
    31    
     31
    3232    typedef std::vector<R2FontAttributes>  R2FontVector;
    3333
  • branches/blt4/packages/vizservers/nanovis/R2/src/Makefile.in

    r2936 r3061  
    4444                R2IndexBuffer.o \
    4545                R2Object.o \
    46                 R2VertexBuffer.o \
    47                 R2string.o
     46                R2VertexBuffer.o
    4847
    4948R2LIB           = R2.a
  • branches/blt4/packages/vizservers/nanovis/R2/src/R2FilePath.cpp

    r2936 r3061  
    1313#include "Trace.h"
    1414
    15 R2string R2FilePath::_curDirectory;
     15std::string R2FilePath::_curDirectory;
    1616R2FilePath R2FilePath::_instance;
    1717
    18 char seps[] = ":";
     18static char seps[] = ":";
    1919
    2020R2FilePath::R2FilePath()
     
    2222    char buff[BUFSIZ+2];
    2323#ifdef _WIN32
    24     _getcwd(buff, 255);
     24    _getcwd(buff, sizeof(buff)-1);
    2525#else
    26     if (getcwd(buff, BUFSIZ) == NULL) {
     26    if (getcwd(buff, sizeof(buff)-1) == NULL) {
    2727        ERROR("can't get current working directory\n");
    2828    }
     
    3737R2FilePath::setPath(const char *filePath)
    3838{
    39     char buff[255];
     39    char buff[256];
    4040
    4141    if (filePath == NULL) {
     
    5555        if (*p == '/') {
    5656            if (*last == '/' || *last == '\\') {
    57                 _pathList.push_back(R2string(p));
     57                _pathList.push_back(std::string(p));
    5858            } else {
    59                 _pathList.push_back(R2string(p) + "/");
     59                _pathList.push_back(std::string(p) + "/");
    6060            }
    6161        } else {
    6262            if (*last == '/' || *last == '\\') {
    63                 _pathList.push_back(_curDirectory + R2string(p));
     63                _pathList.push_back(_curDirectory + std::string(p));
    6464            } else {
    65                 _pathList.push_back(_curDirectory + R2string(p) + "/");
     65                _pathList.push_back(_curDirectory + std::string(p) + "/");
    6666            }
    6767        }
     
    7676}
    7777
    78 const char *
     78std::string
    7979R2FilePath::getPath(const char* fileName)
    8080{
    81     R2string path;
     81    std::string path;
    8282
    83     R2stringListIter iter;
    84     int nameLength = strlen(fileName);
    85     for (iter = _pathList.begin(); iter != _pathList.end(); ++iter) {
    86         char *path;
     83    for (StringListIter iter = _pathList.begin();
     84         iter != _pathList.end(); ++iter) {
     85        path = *iter + std::string(fileName);
    8786
    88         path = new char[strlen((char *)(*iter)) + 1 + nameLength + 1];
    89         //sprintf(path, "%s/%s", (char *)(*iter), fileName);
    90         sprintf(path, "%s%s", (char *)(*iter), fileName);
    91         if (access(path, R_OK) == 0) {
     87        if (access(path.c_str(), R_OK) == 0) {
    9288            return path;
     89        } else {
     90            path = "";
    9391        }
    94         delete [] path;
    9592    }
    96     return NULL;
     93    return path;
    9794}
    9895
    9996void
    100 R2FilePath::setWorkingDirectory(int argc, const char** argv)
     97R2FilePath::setWorkingDirectory(int argc, const char **argv)
    10198{
    102     char buff[255];
     99    char buff[256];
    103100
    104101    strcpy(buff, argv[0]);
    105102    for (int i = strlen(buff) - 1; i >= 0; --i) {
    106103        if (buff[i] == '\\' || buff[i] == '/') {
    107             buff[i] = '/'; 
    108             buff[i + 1] = '\0'; 
     104            buff[i] = '/';
     105            buff[i + 1] = '\0';
    109106            break;
    110107        }
  • branches/blt4/packages/vizservers/nanovis/R2/src/R2Fonts.cpp

    r2966 r3061  
    3434        unsigned int i;
    3535        for (i = 0; i < _fonts.size(); ++i) {
    36             if (strcmp(_fonts[i]._fontName, fontName) == 0) {
     36            if (strcmp(_fonts[i]._fontName.c_str(), fontName) == 0) {
    3737                _fontIndex = i;
    3838                break;
     
    142142    bool bSuccess = false;
    143143
    144     const char *path = R2FilePath::getInstance()->getPath(fontFileName);
    145     if (path == NULL) {
     144    std::string path = R2FilePath::getInstance()->getPath(fontFileName);
     145    if (path.empty()) {
    146146        return false;
    147147    }
    148     std::ifstream fsInput(path, std::ios::binary);
     148    std::ifstream fsInput(path.c_str(), std::ios::binary);
    149149    if (fsInput) {
    150         sFont._fontName = new char [strlen(fontName)+1];
    151         strcpy(sFont._fontName, fontName);
     150        sFont._fontName = fontName;
    152151
    153152        // make sure this file is the correct type by checking the header
     
    230229        fsInput.close();
    231230    }
    232     delete [] path;
    233231    return bSuccess;
    234232}
  • branches/blt4/packages/vizservers/nanovis/VelocityArrowsSlice.cpp

    r2936 r3061  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    22#include "nvconf.h"
     3
     4#include <math.h>
    35
    46#include <GL/glew.h>
     
    1416#include "NvShader.h"
    1517
    16 VelocityArrowsSlice::VelocityArrowsSlice()
    17 {
    18     _enabled = false;
    19     _context = NvShader::getCgContext();
    20     _vectorFieldGraphicsID = 0;
    21     _vfXscale = _vfYscale = _vfZscale = 0;
    22     _slicePos = 0.5f;
    23     _vertexBufferGraphicsID = 0;
     18static inline float deg2rad(float deg)
     19{
     20    return ((deg * M_PI) / 180.);
     21}
     22
     23static inline float rad2deg(float rad)
     24{
     25    return ((rad * 180.) / M_PI);
     26}
     27
     28VelocityArrowsSlice::VelocityArrowsSlice() :
     29    _vectorFieldGraphicsID(0),
     30    _vfXscale(0),
     31    _vfYscale(0),
     32    _vfZscale(0),
     33    _slicePos(0.5f),
     34    _axis(2),
     35    _fbo(0),
     36    _tex(0),
     37    _maxPointSize(1.0f),
     38    _renderTargetWidth(128),
     39    _renderTargetHeight(128),
     40    _velocities(NULL),
     41    _projectionVector(1, 1, 0),
     42    _tickCountForMinSizeAxis(10),
     43    _tickCountX(0),
     44    _tickCountY(0),
     45    _tickCountZ(0),
     46    _pointCount(0),
     47    _maxVelocityScale(1, 1, 1),
     48    _arrowColor(1, 1, 0),
     49    _enabled(false),
     50    _dirty(true),
     51    _vertexBufferGraphicsID(0),
     52    _arrowsTex(NULL),
     53    _renderMode(LINES)
     54{
    2455    axis(2);
    25     //_renderMode = GLYPHS;
    26     _renderMode = LINES;
    27 
    28     _tickCountForMinSizeAxis = 10;
    29 
    30     _queryVelocityFP =
    31         LoadCgSourceProgram(_context, "queryvelocity.cg", CG_PROFILE_FP40, "main");
    32 
    33     _qvVectorFieldParam = cgGetNamedParameter(_queryVelocityFP, "vfield");
    34 
    35     _dirty = true;
    36     _dirtySamplingPosition = true;
    37     _dirtyRenderTarget = true;
    38     _maxVelocityScale.x = _maxVelocityScale.y = _maxVelocityScale.z = 1.0f;
    39 
    40     _renderTargetWidth = 128;
    41     _renderTargetHeight = 128;
    42     _velocities = new Vector3[_renderTargetWidth * _renderTargetHeight];
    43 
    44     ::glGenBuffers(1, &_vertexBufferGraphicsID);
    45     glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
    46     glBufferDataARB(GL_ARRAY_BUFFER, _renderTargetWidth * _renderTargetHeight * 3 * sizeof(float),
    47                     0, GL_DYNAMIC_DRAW_ARB);
    48     glBindBufferARB(GL_ARRAY_BUFFER, 0);
     56
     57    _queryVelocityFP.loadFragmentProgram("queryvelocity.cg", "main");
     58
     59    _particleShader.loadVertexProgram("velocityslicevp.cg", "vpmain");
     60    _particleShader.loadFragmentProgram("velocityslicefp.cg", "fpmain");
     61
    4962    createRenderTarget();
    50     _pointCount = 0;
    51 
    52     _particleVP =
    53         LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain");
    54 
    55     _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp");
    56     _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview");
    57     _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV");
    58 
    59     // TBD..
    60     _particleFP =
    61         LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain");
    62 
    63     _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield");
    64 
    65     const char *path = R2FilePath::getInstance()->getPath("arrows.bmp");
    66     if (path != NULL) {
     63
     64    std::string path = R2FilePath::getInstance()->getPath("arrows.bmp");
     65    if (!path.empty()) {
    6766        ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
    6867        if (loader != NULL) {
    69             Image *image = loader->load(path, Image::IMG_RGBA);
    70             delete [] path;
     68            Image *image = loader->load(path.c_str(), Image::IMG_RGBA);
    7169            if (image != NULL) {
    7270                unsigned char *bytes = (unsigned char *)image->getImageBuffer();
    7371                if (bytes != NULL) {
    74                     for (unsigned int y = 0; y < image->getHeight(); ++y) {
    75                         for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {
    76                             bytes[3] = (bytes[0] == 0 &&
    77                                         bytes[1] == 0 &&
    78                                         bytes[2] == 0) ? 0 : 255;
    79                         }
    80                     }
    81 
    8272                    _arrowsTex = new Texture2D(image->getWidth(), image->getHeight(),
    8373                                               GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL);
     
    8878                delete image;
    8979            } else {
    90                 ERROR("Failed to load image: arrows.bmp\n");
     80                ERROR("Failed to load arrows image\n");
    9181            }
    9282            delete loader;
    9383        } else {
    94             delete [] path;
    95             ERROR("Couldn't find loader for arrows.bmp\n");
     84            ERROR("Couldn't find loader for arrows image\n");
    9685        }
    9786    } else {
    98         ERROR("Couldn't find path to arrows.bmp\n");
    99     }
    100 
    101     _arrowColor.set(1, 1, 0);
     87        ERROR("Couldn't find arrows image\n");
     88    }
    10289
    10390    GLfloat minMax[2];
     
    115102VelocityArrowsSlice::~VelocityArrowsSlice()
    116103{
    117     cgDestroyProgram(_queryVelocityFP);
    118     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo);
    119     glDeleteTextures(1, &_tex);
    120     glDeleteFramebuffersEXT(1, &_fbo);
    121 
    122     delete _arrowsTex;
    123 
    124     cgDestroyProgram(_particleFP);
    125     cgDestroyProgram(_particleVP);
    126 
    127     glDeleteBuffers(1, &_vertexBufferGraphicsID);
    128     delete [] _velocities;
     104    if (_tex != 0) {
     105        glDeleteTextures(1, &_tex);
     106    }
     107    if (_fbo != 0) {
     108        glDeleteFramebuffersEXT(1, &_fbo);
     109    }
     110    if (_arrowsTex != NULL) {
     111        delete _arrowsTex;
     112    }
     113    if (_vertexBufferGraphicsID != 0) {
     114        glDeleteBuffers(1, &_vertexBufferGraphicsID);
     115    }
     116    if (_velocities != NULL) {
     117        delete [] _velocities;
     118    }
    129119}
    130120
    131121void VelocityArrowsSlice::createRenderTarget()
    132122{
     123    if (_velocities != NULL) {
     124        delete [] _velocities;
     125    }
     126    _velocities = new Vector3[_renderTargetWidth * _renderTargetHeight];
     127
     128    if (_vertexBufferGraphicsID != 0) {
     129        glDeleteBuffers(1, &_vertexBufferGraphicsID);
     130    }
     131
     132    glGenBuffers(1, &_vertexBufferGraphicsID);
     133    glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
     134    glBufferDataARB(GL_ARRAY_BUFFER_ARB, _renderTargetWidth * _renderTargetHeight * 3 * sizeof(float),
     135                    0, GL_DYNAMIC_DRAW_ARB);
     136    glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
     137
     138    if (_tex != 0) {
     139        glDeleteTextures(1, &_tex);
     140    }
     141    if (_fbo != 0) {
     142        glDeleteFramebuffersEXT(1, &_fbo);
     143    }
     144
    133145    glGenFramebuffersEXT(1, &_fbo);
    134146    glGenTextures(1, &_tex);
    135 
     147    int fboOrig;
     148    glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &fboOrig);
    136149    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo);
    137 
    138     glViewport(0, 0, _renderTargetWidth, _renderTargetHeight);
    139     glMatrixMode(GL_PROJECTION);
    140     glLoadIdentity();
    141     glOrtho(0, _renderTargetWidth, 0, _renderTargetHeight, -10.0f, 10.0f);
    142     glMatrixMode(GL_MODELVIEW);
    143     glLoadIdentity();
    144150
    145151    glBindTexture(GL_TEXTURE_RECTANGLE_ARB, _tex);
     
    156162                              GL_TEXTURE_RECTANGLE_ARB, _tex, 0);
    157163
    158     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
     164    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboOrig);
    159165}
    160166
     
    179185        break;
    180186    }
    181     _dirtySamplingPosition = true;
    182     _dirtyRenderTarget = true;
    183     //_dirty = true;
     187    _dirty = true;
    184188}
    185189
     
    188192    if (!_enabled) return;
    189193
     194    glPushAttrib(GL_VIEWPORT_BIT | GL_ENABLE_BIT);
     195    int fboOrig;
     196    glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &fboOrig);
     197
    190198    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, _fbo);
     199
     200    _queryVelocityFP.bind();
     201    _queryVelocityFP.setFPTextureParameter("vfield", _vectorFieldGraphicsID);
     202
    191203    glDisable(GL_DEPTH_TEST);
    192     cgGLBindProgram(_queryVelocityFP);
    193     cgGLEnableProfile(CG_PROFILE_FP40);
    194     cgGLSetTextureParameter(_qvVectorFieldParam, _vectorFieldGraphicsID);
    195     cgGLEnableTextureParameter(_qvVectorFieldParam);
    196 
    197     glPushAttrib(GL_VIEWPORT_BIT);
    198204    glViewport(0, 0, _renderTargetWidth, _renderTargetHeight);
    199205    glMatrixMode(GL_PROJECTION);
     
    205211    glLoadIdentity();
    206212
    207     glBegin(GL_POINTS);
    208 
    209     for (unsigned int index = 0; index < _samplingPositions.size(); ++index) {
    210         glMultiTexCoord3f(0,
    211                           _samplingPositions[index].x,
    212                           _samplingPositions[index].y,
    213                           _samplingPositions[index].z);
    214         glVertex2f(index % _renderTargetWidth,
    215                    index / _renderTargetHeight);
    216     }
    217 
     213    glBegin(GL_QUADS);
     214    switch (_axis) {
     215    case 0:
     216        glTexCoord3f(_slicePos, 0, 0); glVertex2i(0,                  0);
     217        glTexCoord3f(_slicePos, 1, 0); glVertex2i(_renderTargetWidth, 0);
     218        glTexCoord3f(_slicePos, 1, 1); glVertex2i(_renderTargetWidth, _renderTargetHeight);
     219        glTexCoord3f(_slicePos, 0, 1); glVertex2i(0,                  _renderTargetHeight);
     220        break;
     221    case 1:
     222        glTexCoord3f(0, _slicePos, 0); glVertex2i(0,                  0);
     223        glTexCoord3f(1, _slicePos, 0); glVertex2i(_renderTargetWidth, 0);
     224        glTexCoord3f(1, _slicePos, 1); glVertex2i(_renderTargetWidth, _renderTargetHeight);
     225        glTexCoord3f(0, _slicePos, 1); glVertex2i(0,                  _renderTargetHeight);
     226        break;
     227    case 2:
     228    default:
     229        glTexCoord3f(0, 0, _slicePos); glVertex2i(0,                  0);
     230        glTexCoord3f(1, 0, _slicePos); glVertex2i(_renderTargetWidth, 0);
     231        glTexCoord3f(1, 1, _slicePos); glVertex2i(_renderTargetWidth, _renderTargetHeight);
     232        glTexCoord3f(0, 1, _slicePos); glVertex2i(0,                  _renderTargetHeight);
     233        break;
     234    }
    218235    glEnd();
    219236
    220     glDisable(GL_TEXTURE_RECTANGLE_ARB);
    221     cgGLDisableTextureParameter(_qvVectorFieldParam);
    222     cgGLDisableProfile(CG_PROFILE_FP40);
     237    _queryVelocityFP.disableFPTextureParameter("vfield");
     238    _queryVelocityFP.unbind();
    223239
    224240    glReadPixels(0, 0, _renderTargetWidth, _renderTargetHeight, GL_RGB, GL_FLOAT, _velocities);
     
    228244    glMatrixMode(GL_MODELVIEW);
    229245    glPopMatrix();
     246
     247    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboOrig);
     248
    230249    glPopAttrib();
    231 
    232     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
     250}
     251
     252static void drawLineArrow(int axis)
     253{
     254    glBegin(GL_LINES);
     255    switch (axis) {
     256    case 0: // ZY plane
     257        glVertex3f(0.0, 0.0, 0.0);
     258        glVertex3f(0.0, 0.0, 1.0);
     259
     260        glVertex3f(0.0, 0.0, 1.0);
     261        glVertex3f(0.0, 0.25, 0.75);
     262
     263        glVertex3f(0.0, 0.0, 1.0);
     264        glVertex3f(0.0, -0.25, 0.75);
     265        break;
     266    case 1: // XZ plane
     267        glVertex3f(0.0, 0.0, 0.0);
     268        glVertex3f(1.0, 0.0, 0.0);
     269
     270        glVertex3f(1.0, 0.0, 0.0);
     271        glVertex3f(0.75, 0.0, 0.25);
     272
     273        glVertex3f(1.0, 0.0, 0.0);
     274        glVertex3f(0.75, 0.0, -0.25);
     275        break;
     276    case 2: // XY plane
     277    default:
     278        glVertex3f(0.0, 0.0, 0.0);
     279        glVertex3f(1.0, 0.0, 0.0);
     280
     281        glVertex3f(1.0, 0.0, 0.0);
     282        glVertex3f(0.75, 0.25, 0.0);
     283
     284        glVertex3f(1.0, 0.0, 0.0);
     285        glVertex3f(0.75, -0.25, 0.0);
     286        break;
     287    }
     288    glEnd();
    233289}
    234290
     
    244300    }
    245301
     302    TRACE("_vf: %g %g %g\n", _vfXscale,_vfYscale, _vfZscale);
     303    TRACE("_maxVelocityScale: %g %g %g\n",
     304          _maxVelocityScale.x, _maxVelocityScale.y, _maxVelocityScale.z);
     305
     306    glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
     307
     308    glMatrixMode(GL_MODELVIEW);
    246309    glPushMatrix();
    247310
    248311    glScalef(_vfXscale,_vfYscale, _vfZscale);
    249312    glTranslatef(-0.5f, -0.5f, -0.5f);
     313
    250314    if (_renderMode == LINES) {
    251         glPushAttrib(GL_ENABLE_BIT);
    252315        glDisable(GL_TEXTURE_2D);
    253316        glDisable(GL_LIGHTING);
    254317        glLineWidth(2.0);
    255318        glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
    256         glBegin(GL_LINES);
     319 
    257320        Vector3 pos;
    258         Vector3 pos2;
    259         Vector3 vel(1, 0, 0);
    260         Vector3 v, v2;
    261         if (_axis == 2) {
    262             int index = 0;
    263             for (int y = 1; y <= _tickCountY; ++y) {
    264                 for (int x = 1; x <= _tickCountX; ++x, ++index) {
    265                     pos = _samplingPositions[index];
    266                     pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    267                     glVertex3f(pos.x, pos.y, pos.z);
    268                     glVertex3f(pos2.x, pos2.y, pos2.z);
     321        Vector3 vel;
     322        Vector3 refVec;
     323        Vector3 blue(0, 0, 1);
     324        Vector3 red(1, 0, 0);
     325
     326        int index = 0, icount, jcount;
     327        switch (_axis) {
     328        case 0:
     329            icount = _tickCountZ;
     330            jcount = _tickCountY;
     331            refVec.set(0, 0, 1);
     332            break;
     333        case 1:
     334            icount = _tickCountZ;
     335            jcount = _tickCountX;
     336            refVec.set(1, 0, 0);
     337            break;
     338        case 2:
     339        default:
     340            icount = _tickCountY;
     341            jcount = _tickCountX;
     342            refVec.set(1, 0, 0);
     343            break;
     344        }
     345
     346        for (int i = 0; i < icount; ++i) {
     347            for (int j = 0; j < jcount; ++j, ++index) {
     348                pos = _samplingPositions[index];
     349                // Normalized velocity: [-1,1] components
     350                // Project 3D vector onto sample plane
     351                vel = _velocities[index].scale(_projectionVector);
     352                // Length: [0,1]
     353                double length = vel.length();
     354                if (length < 0.0 || length > 1.0) {
     355                    TRACE("***vec: (%g, %g, %g) length: %g***\n", vel.x, vel.y, vel.z, length);
     356                    continue;
     357                }
     358                if (length > 1.0e-6) {
     359                    Vector3 vnorm = vel.normalize();
     360                    Vector3 rotationAxis = refVec.cross(vnorm);
     361                    double angle = rad2deg(acos(refVec.dot(vnorm)));
     362                    Vector3 color = blue * (1.0 - length) + red * length;
     363                    float scale = length;
     364                    if (scale < 0.10) scale = 0.10;
     365                    glMatrixMode(GL_MODELVIEW);
     366                    glPushMatrix();
     367                    glColor3f(color.x, color.y, color.z);
     368                    glTranslatef(pos.x, pos.y, pos.z);
     369                    glScalef(2.0 * _maxVelocityScale.x,
     370                             2.0 * _maxVelocityScale.y,
     371                             2.0 * _maxVelocityScale.z);
     372                    glScalef(scale, scale, scale);
     373                    if (angle > 1.0e-6 || angle < -1.0e-6)
     374                        glRotated(angle, rotationAxis.x, rotationAxis.y, rotationAxis.z);
     375                    drawLineArrow(_axis);
     376                    glPopMatrix();
    269377                }
    270378            }
    271         } else if (_axis == 1) {
    272             int index = 0;
    273             for (int z = 1; z <= _tickCountZ; ++z) {
    274                 for (int x = 1; x <= _tickCountX; ++x, ++index) {
    275                     pos = _samplingPositions[index];
    276                     pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    277 
    278                     glVertex3f(pos.x, pos.y, pos.z);
    279                     glVertex3f(pos2.x, pos2.y, pos2.z);
    280                 }
    281             }
    282         } else if (_axis == 0) {
    283             int index = 0;
    284             for (int z = 1; z <= _tickCountZ; ++z) {
    285                 for (int y = 1; y <= _tickCountY; ++y, ++index) {
    286                     pos = _samplingPositions[index];
    287                     pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    288 
    289                     glVertex3f(pos.x, pos.y, pos.z);
    290                     glVertex3f(pos2.x, pos2.y, pos2.z);
    291                 }
    292             }
    293         }
    294 
    295         glEnd();
     379        }
     380
    296381        glLineWidth(1.0);
    297         glPopAttrib();
    298382    } else {
    299         glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
     383        glColor4f(_arrowColor.x, _arrowColor.y, _arrowColor.z, 1.0f);
     384        glEnable(GL_DEPTH_TEST);
     385        glDisable(GL_LIGHTING);
     386#if 0
     387        glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    300388        glEnable(GL_BLEND);
    301         glBlendFunc(GL_SRC_ALPHA, GL_ONE);
     389        glDepthMask(GL_FALSE);
     390#else
     391        glDisable(GL_BLEND);
     392#endif
     393        glAlphaFunc(GL_GREATER, 0.6);
     394        glEnable(GL_ALPHA_TEST);
    302395        glEnable(GL_POINT_SPRITE_ARB);
    303396        glPointSize(20);
     
    306399        _arrowsTex->activate();
    307400        glEnable(GL_TEXTURE_2D);
    308 
     401        glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
     402
     403        GLfloat atten[] = {1, 0, 0};
     404        glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, atten);
    309405        glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f);
    310406        glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
     
    312408        glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
    313409
    314         cgGLBindProgram(_particleVP);
    315         cgGLBindProgram(_particleFP);
    316         cgGLEnableProfile(CG_PROFILE_VP40);
    317         cgGLEnableProfile(CG_PROFILE_FP40);
    318 
    319         cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID);
    320         cgGLEnableTextureParameter(_vectorParticleParam);
    321 
    322         //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5);
    323         cgSetParameter1f(_mvTanHalfFOVParam, tan(30. * 0.5) * NanoVis::winHeight * 0.5);
    324 
    325         cgGLSetStateMatrixParameter(_mvpParticleParam,
    326                                     CG_GL_MODELVIEW_PROJECTION_MATRIX,
    327                                     CG_GL_MATRIX_IDENTITY);
    328         cgGLSetStateMatrixParameter(_mvParticleParam,
    329                                     CG_GL_MODELVIEW_MATRIX,
    330                                     CG_GL_MATRIX_IDENTITY);
     410        _particleShader.bind();
     411        _particleShader.setVPTextureParameter("vfield", _vectorFieldGraphicsID);
     412        _particleShader.setFPTextureParameter("arrows", _arrowsTex->id());
     413        _particleShader.setVPParameter1f("tanHalfFOV",
     414                                         tan(30. * 0.5) * NanoVis::winHeight * 0.5);
     415        _particleShader.setGLStateMatrixVPParameter("modelview",
     416                                                    NvShader::MODELVIEW_MATRIX,
     417                                                    NvShader::MATRIX_IDENTITY);
     418        _particleShader.setGLStateMatrixVPParameter("mvp",
     419                                                    NvShader::MODELVIEW_PROJECTION_MATRIX,
     420                                                    NvShader::MATRIX_IDENTITY);
    331421
    332422        glEnableClientState(GL_VERTEX_ARRAY);
     
    340430
    341431        glDisableClientState(GL_VERTEX_ARRAY);
    342 
    343         cgGLDisableProfile(CG_PROFILE_VP40);
    344         cgGLDisableProfile(CG_PROFILE_FP40);
    345 
    346         glDepthMask(GL_TRUE);
    347 
     432        glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_ARB);
    348433        glDisable(GL_POINT_SPRITE_ARB);
    349         glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_ARB);
    350 
    351         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    352         glDisable(GL_BLEND);
     434
     435        _particleShader.disableVPTextureParameter("vfield");
     436        _particleShader.disableFPTextureParameter("arrows");
     437        _particleShader.unbind();
     438
     439        glActiveTexture(GL_TEXTURE0);
     440        glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_FALSE);
    353441        _arrowsTex->deactivate();
    354442    }
     443
    355444    glPopMatrix();
     445    glPopAttrib();
    356446}
    357447
    358448void
    359 VelocityArrowsSlice::vectorField(unsigned int vfGraphicsID,
    360                                  float xScale, float yScale, float zScale)
     449VelocityArrowsSlice::setVectorField(unsigned int vfGraphicsID, const Vector3& origin,
     450                                    float xScale, float yScale, float zScale, float max)
    361451{
    362452    _vectorFieldGraphicsID = vfGraphicsID;
     
    365455    _vfZscale = zScale;
    366456
    367     //_dirty = true;
     457    _dirty = true;
    368458}
    369459
     
    371461{
    372462    if (_vfXscale < _vfYscale) {
    373         if (_vfXscale < _vfZscale) {
     463        if (_vfXscale < _vfZscale || _vfZscale == 0.0) {
    374464            // vfXscale
    375465            _tickCountX = _tickCountForMinSizeAxis;
     
    379469            _tickCountY = (int)(_vfYscale/step);
    380470            _tickCountZ = (int)(_vfZscale/step);
    381             //vscalex = 1;
    382             //vscaley = _vfXscale / _vfXscale;
    383             //vscalez = _vfZscale / _vfXscale;
    384471        } else {
    385472            // vfZscale
     
    389476            _tickCountX = (int)(_vfXscale/step);
    390477            _tickCountY = (int)(_vfYscale/step);
    391             //vscalex = _vfXscale / _vfZscale;
    392             //vscaley = _vfYscale / _vfZscale;
    393             //vscalez = 1;
    394478        }
    395479    } else {
    396         if (_vfYscale < _vfZscale) {
     480        if (_vfYscale < _vfZscale || _vfZscale == 0.0) {
    397481            // _vfYscale
    398482            _tickCountY = _tickCountForMinSizeAxis;
     
    401485            _tickCountX = (int)(_vfXscale/step);
    402486            _tickCountZ = (int)(_vfZscale/step);
    403 
    404             //vscalex = _vfXscale / _vfYscale;
    405             //vscaley = 1;
    406             //vscalez = _vfZscale / _vfYscale;
    407487        } else {
    408488            // vfZscale
     
    412492            _tickCountX = (int)(_vfXscale/step);
    413493            _tickCountY = (int)(_vfYscale/step);
    414 
    415             //vscalex = _vfXscale / _vfZscale;
    416             //vscaley = _vfYscale / _vfZscale;
    417             //vscalez = 1;
    418         }
     494        }
     495    }
     496
     497    switch (_axis) {
     498    case 0:
     499        _tickCountX = 1;
     500        _renderTargetWidth = _tickCountY;
     501        _renderTargetHeight = _tickCountZ;
     502        break;
     503    case 1:
     504        _tickCountY = 1;
     505        _renderTargetWidth = _tickCountX;
     506        _renderTargetHeight = _tickCountZ;
     507        break;
     508    default:
     509    case 2:
     510        _tickCountZ = 1;
     511        _renderTargetWidth = _tickCountX;
     512        _renderTargetHeight = _tickCountY;
     513        break;
    419514    }
    420515
     
    422517    _maxVelocityScale.y = (1.0f / _tickCountY) * 0.8f;
    423518    _maxVelocityScale.z = (1.0f / _tickCountZ) * 0.8f;
     519
     520    TRACE("Tick counts: %d %d %d\n", _tickCountX, _tickCountY, _tickCountZ);
    424521
    425522    int pointCount = _tickCountX * _tickCountY * _tickCountZ;
     
    430527    }
    431528
    432     if (_renderMode == LINES) {
    433         Vector3 pos;
    434         if (_axis == 2) {
    435             for (int y = 1; y <= _tickCountY; ++y) {
    436                 for (int x = 1; x <= _tickCountX; ++x) {
    437                     pos.x = (1.0f / (_tickCountX + 1)) * x;
    438                     pos.y = (1.0f / (_tickCountY + 1)) * y;
    439                     pos.z = _slicePos;
     529    createRenderTarget();
     530
     531    Vector3 pos;
     532    Vector3 *pinfo = NULL;
     533    if (_renderMode == GLYPHS) {
     534        glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
     535        pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);
     536    }
     537
     538    if (_axis == 2) {
     539        for (int y = 1; y <= _tickCountY; ++y) {
     540            for (int x = 1; x <= _tickCountX; ++x) {
     541                pos.x = (1.0f / (_tickCountX + 1)) * x;
     542                pos.y = (1.0f / (_tickCountY + 1)) * y;
     543                pos.z = _slicePos;
     544                if (_renderMode == LINES) {
    440545                    _samplingPositions.push_back(pos);
    441                 }
    442             }
    443         } else if (_axis == 1) {
    444             for (int z = 1; z <= _tickCountZ; ++z) {
    445                 for (int x = 1; x <= _tickCountX; ++x) {
    446                     pos.x = (1.0f / (_tickCountX + 1)) * x;
    447                     pos.y = _slicePos;
    448                     pos.z = (1.0f / (_tickCountZ + 1)) * z;
    449                     _samplingPositions.push_back(pos);
    450                 }
    451             }
    452         } else if (_axis == 0) {
    453             for (int z = 1; z <= _tickCountZ; ++z) {
    454                 for (int y = 1; y <= _tickCountY; ++y) {
    455                     pos.x = _slicePos;
    456                     pos.y = (1.0f / (_tickCountY + 1)) * y;
    457                     pos.z = (1.0f / (_tickCountZ + 1)) * z;
    458                     _samplingPositions.push_back(pos);
    459                 }
    460             }
    461         }
    462     } else {
    463         glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
    464         Vector3 *pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB);
    465 
    466         Vector3 pos;
    467         if (_axis == 2) {
    468             for (int y = 1; y <= _tickCountY; ++y) {
    469                 for (int x = 1; x <= _tickCountX; ++x) {
    470                     pos.x = (1.0f / (_tickCountX + 1)) * x;
    471                     pos.y = (1.0f / (_tickCountY + 1)) * y;
    472                     pos.z = _slicePos;
    473 
     546                } else {
    474547                    *pinfo = pos;
    475548                    ++pinfo;
    476549                }
    477550            }
    478         } else if (_axis == 1) {
    479             for (int z = 1; z <= _tickCountZ; ++z) {
    480                 for (int x = 1; x <= _tickCountX; ++x) {
    481                     pos.x = (1.0f / (_tickCountX + 1)) * x;
    482                     pos.y = _slicePos;
    483                     pos.z = (1.0f / (_tickCountZ + 1)) * z;
    484 
     551        }
     552    } else if (_axis == 1) {
     553        for (int z = 1; z <= _tickCountZ; ++z) {
     554            for (int x = 1; x <= _tickCountX; ++x) {
     555                pos.x = (1.0f / (_tickCountX + 1)) * x;
     556                pos.y = _slicePos;
     557                pos.z = (1.0f / (_tickCountZ + 1)) * z;
     558                if (_renderMode == LINES) {
     559                    _samplingPositions.push_back(pos);
     560                } else {
    485561                    *pinfo = pos;
    486562                    ++pinfo;
    487563                }
    488564            }
    489         } else if (_axis == 0) {
    490             for (int z = 1; z <= _tickCountZ; ++z) {
    491                 for (int y = 1; y <= _tickCountY; ++y) {
    492                     pos.x = _slicePos;
    493                     pos.y = (1.0f / (_tickCountY + 1)) * y;
    494                     pos.z = (1.0f / (_tickCountZ + 1)) * z;
    495 
     565        }
     566    } else if (_axis == 0) {
     567        for (int z = 1; z <= _tickCountZ; ++z) {
     568            for (int y = 1; y <= _tickCountY; ++y) {
     569                pos.x = _slicePos;
     570                pos.y = (1.0f / (_tickCountY + 1)) * y;
     571                pos.z = (1.0f / (_tickCountZ + 1)) * z;
     572                if (_renderMode == LINES) {
     573                    _samplingPositions.push_back(pos);
     574                } else {
    496575                    *pinfo = pos;
    497576                    ++pinfo;
     
    499578            }
    500579        }
    501 
     580    }
     581
     582    if (_renderMode == GLYPHS) {
    502583        glUnmapBufferARB(GL_ARRAY_BUFFER_ARB);
    503584    }
  • branches/blt4/packages/vizservers/nanovis/VelocityArrowsSlice.h

    r2966 r3061  
    55#include <vector>
    66
    7 #include <Cg/cg.h>
    8 #include <Cg/cgGL.h>
    9 
    107#include "Texture2D.h"
    118#include "Vector3.h"
     9#include "NvShader.h"
    1210
    1311class VelocityArrowsSlice
     
    2321    ~VelocityArrowsSlice();
    2422
    25     void vectorField(unsigned int vfGraphicsID, float xScale, float yScale, float zScale);
     23    void setVectorField(unsigned int vfGraphicsID, const Vector3& origin,
     24                        float xScale, float yScale, float zScale, float max);
    2625
    2726    void axis(int axis);
     
    9998    float _maxPointSize;
    10099
    101     CGcontext _context;
    102     CGprogram _queryVelocityFP;
    103     CGparameter _qvVectorFieldParam;
     100    NvShader _queryVelocityFP;
     101
     102    NvShader _particleShader;
    104103
    105104    int _renderTargetWidth;
     
    126125    unsigned int _vertexBufferGraphicsID;
    127126
    128     CGprogram _particleVP;
    129     CGparameter _mvpParticleParam;
    130     CGparameter _mvParticleParam;
    131     CGparameter _mvTanHalfFOVParam;
    132     CGparameter _mvCurrentTimeParam;
    133 
    134     CGprogram _particleFP;
    135     CGparameter _vectorParticleParam;
    136 
    137127    Texture2D *_arrowsTex;
    138128
  • branches/blt4/packages/vizservers/nanovis/Volume.cpp

    r2936 r3061  
    8585    addCutplane(3, 0.5f);
    8686
    87     //initialize the labels 
    88     label[0] = "X Label";
    89     label[1] = "Y Label";
    90     label[2] = "Z Label";
    91 
    9287    TRACE("End -- Volume constructor\n");
    9388}
  • branches/blt4/packages/vizservers/nanovis/Volume.h

    r2936 r3061  
    241241    void getOutlineColor(float *rgb);
    242242
    243     /// change the label displayed on an axis
    244     void setLabel(int axis, const char *txt);
    245 
    246243    void setPhysicalBBox(const Vector3& min, const Vector3& max);
    247244
     
    285282
    286283    AxisRange xAxis, yAxis, zAxis, wAxis;
    287     std::string label[3]; ///< the labels along each axis 0:x, 1:y, 2:z
    288284
    289285    static bool updatePending;
     
    403399
    404400inline void
    405 Volume::setLabel(int axis, const char* txt)
    406 {
    407     label[axis] = txt;
    408 }
    409 
    410 inline void
    411401Volume::setPhysicalBBox(const Vector3& min, const Vector3& max)
    412402{
  • branches/blt4/packages/vizservers/nanovis/VolumeRenderer.cpp

    r2936 r3061  
    1515 */
    1616#include <stdlib.h>
    17 #include <assert.h>
    18 #include <time.h>
    19 #include <sys/time.h>
     17#include <float.h>
     18
     19#include <vector>
    2020
    2121#include <GL/glew.h>
    22 #include <GL/glut.h>
    2322
    2423#include <tcl.h>
    25 
    26 #include <vector>
    27 
    28 #include <R2/R2string.h>
    29 #include <R2/R2FilePath.h>
    3024
    3125#include "nanovis.h"
    3226#include "VolumeRenderer.h"
    3327#include "ConvexPolygon.h"
    34 
    3528#include "NvStdVertexShader.h"
    3629#include "Trace.h"
    37 #include "Grid.h"
    38 
    39 #define NUMDIGITS       6
    40 
    41 VolumeRenderer::VolumeRenderer() :
    42     _sliceMode(false),
    43     _volumeMode(true)
     30
     31VolumeRenderer::VolumeRenderer()
    4432{
    4533    initShaders();
    4634
    47     const char *path = R2FilePath::getInstance()->getPath("Font.bmp");
    48     if (path == NULL) {
    49         ERROR("can't find Font.bmp\n");
    50         assert(path != NULL);
    51     }
    52     initFont(path);
    53     delete [] path;
    5435    _volumeInterpolator = new VolumeInterpolator();
    5536}
     
    165146        Mat4x4 model_view_no_trans_inverse, model_view_trans_inverse;
    166147
    167         double zNear, zFar;
    168 
    169148        //initialize volume plane with world coordinates
    170149        Plane volume_planes[6];
     
    215194        glPopMatrix();
    216195
    217         //draw labels
    218         glPushMatrix();
    219         glTranslatef(shift_4d.x, shift_4d.y, shift_4d.z);
    220         if (volPtr->outline()) {
    221             //drawLabel(i);
    222         }
    223         glPopMatrix();
    224 
    225196        //transform volume_planes to eye coordinates.
    226197        for (size_t j = 0; j < 6; j++) {
    227198            volume_planes[j].transform(model_view_no_trans);
    228199        }
    229         getNearFarZ(mv_no_trans, zNear, zFar);
     200        double eyeMinX, eyeMaxX, eyeMinY, eyeMaxY, zNear, zFar;
     201        getEyeSpaceBounds(model_view_no_trans,
     202                          eyeMinX, eyeMaxX,
     203                          eyeMinY, eyeMaxY,
     204                          zNear, zFar);
    230205
    231206        //compute actual rendering slices
     
    242217        actual_slices[i] = n_actual_slices;
    243218
     219        // These are object coordinates
    244220        Vector4 vert1 = (Vector4(-10, -10, -0.5, 1));
    245221        Vector4 vert2 = (Vector4(-10, +10, -0.5, 1));
     
    321297        //Now do volume rendering
    322298
    323         vert1 = (Vector4(-10, -10, -0.5, 1));
    324         vert2 = (Vector4(-10, +10, -0.5, 1));
    325         vert3 = (Vector4(+10, +10, -0.5, 1));
    326         vert4 = (Vector4(+10, -10, -0.5, 1));
     299        // Initialize view-aligned quads with eye space bounds of
     300        // volume
     301        vert1 = (Vector4(eyeMinX, eyeMinY, -0.5, 1));
     302        vert2 = (Vector4(eyeMaxX, eyeMinY, -0.5, 1));
     303        vert3 = (Vector4(eyeMaxX, eyeMaxY, -0.5, 1));
     304        vert4 = (Vector4(eyeMinX, eyeMaxY, -0.5, 1));
    327305
    328306        size_t counter = 0;
     
    340318            poly->setId(i);
    341319
    342             //Setting Z-coordinate
     320            // Set eye space Z-coordinate of slice
    343321            vert1.z = slice_z;
    344322            vert2.z = slice_z;
     
    487465    glEnd();
    488466
    489 #ifdef notdef
    490     /* Rappture doesn't supply axis units yet. So turn labeling off until we
    491      * can display the proper units with the distance of each bounding box
    492      * dimension.
    493      */
    494     glColor4f(1.0f, 1.0f, 0.0f, 1.0f);
    495 
    496     if (NanoVis::fonts != NULL) {
    497         double mv[16], prjm[16];
    498         int viewport[4];
    499         double wx, wy, wz;
    500         double dx, dy, dz;
    501 
    502         glGetDoublev(GL_MODELVIEW_MATRIX, mv);
    503         glGetDoublev(GL_PROJECTION_MATRIX, prjm);
    504         glGetIntegerv(GL_VIEWPORT, viewport);
    505 
    506         NanoVis::fonts->begin();
    507         dx = x1 - x0;
    508         dy = y1 - y0;
    509         dz = z1 - z0;
    510         if (gluProject((x0 + x1) * 0.5, y0, z0, mv, prjm, viewport,
    511                        &wx, &wy, &wz)) {
    512             char buff[20];
    513             double min, max;
    514 
    515             NanoVis::grid->xAxis.GetDataLimits(min, max);
    516             glLoadIdentity();
    517             glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);
    518             const char *units;
    519             units = NanoVis::grid->xAxis.GetUnits();
    520             sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);
    521             NanoVis::fonts->draw(buff);
    522         }
    523         if (gluProject(x0, (y0 + y1) * 0.5, z0, mv, prjm, viewport, &
    524                        wx, &wy, &wz)) {
    525             char buff[20];
    526             double min, max;
    527 
    528             NanoVis::grid->yAxis.GetDataLimits(min, max);
    529             glLoadIdentity();
    530             glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);
    531             const char *units;
    532             units = NanoVis::grid->yAxis.GetUnits();
    533             sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);
    534             NanoVis::fonts->draw(buff);
    535         }
    536         if (gluProject(x0, y0, (z0 + z1) * 0.5, mv, prjm, viewport,
    537                        &wx, &wy, &wz)) {
    538             glLoadIdentity();
    539             glTranslatef((int)wx, viewport[3] - (int) wy, 0.0f);
    540 
    541             double min, max;
    542             NanoVis::grid->zAxis.GetDataLimits(min, max);
    543             const char *units;
    544             units = NanoVis::grid->zAxis.GetUnits();
    545             char buff[20];
    546             sprintf(buff, "%.*g %s", NUMDIGITS, max - min, units);
    547             NanoVis::fonts->draw(buff);
    548         }
    549         NanoVis::fonts->end();
    550     };
    551 #endif
    552467    glPopMatrix();
    553468    glPopAttrib();
     
    574489}
    575490
    576 void VolumeRenderer::getNearFarZ(const Mat4x4& mv, double& zNear, double& zFar)
     491void VolumeRenderer::getEyeSpaceBounds(const Mat4x4& mv,
     492                                       double& xMin, double& xMax,
     493                                       double& yMin, double& yMax,
     494                                       double& zNear, double& zFar)
    577495{
    578496    double x0 = 0;
     
    584502
    585503    double zMin, zMax;
    586     zMin =  10000;
    587     zMax = -10000;
     504    xMin = DBL_MAX;
     505    xMax = -DBL_MAX;
     506    yMin = DBL_MAX;
     507    yMax = -DBL_MAX;
     508    zMin = DBL_MAX;
     509    zMax = -DBL_MAX;
    588510
    589511    double vertex[8][4];
     
    599521
    600522    for (int i = 0; i < 8; i++) {
    601         Vector4 tmp = mv.transform(Vector4(vertex[i][0], vertex[i][1], vertex[i][2], vertex[i][3]));
    602         tmp.perspectiveDivide();
    603         vertex[i][2] = tmp.z;
    604         if (vertex[i][2] < zMin) zMin = vertex[i][2];
    605         if (vertex[i][2] > zMax) zMax = vertex[i][2];
     523        Vector4 eyeVert = mv.transform(Vector4(vertex[i][0],
     524                                               vertex[i][1],
     525                                               vertex[i][2],
     526                                               vertex[i][3]));
     527        if (eyeVert.x < xMin) xMin = eyeVert.x;
     528        if (eyeVert.x > xMax) xMax = eyeVert.x;
     529        if (eyeVert.y < yMin) yMin = eyeVert.y;
     530        if (eyeVert.y > yMax) yMax = eyeVert.y;
     531        if (eyeVert.z < zMin) zMin = eyeVert.z;
     532        if (eyeVert.z > zMax) zMax = eyeVert.z;
    606533    }
    607534
     
    609536    zFar = zMin;
    610537}
    611 
    612 bool
    613 VolumeRenderer::initFont(const char *filename)
    614 {
    615     FILE *f;
    616     unsigned short int bfType;
    617     int bfOffBits;
    618     short int biPlanes;
    619     short int biBitCount;
    620     int biSizeImage;
    621     int width, height;
    622     int i;
    623     unsigned char temp;
    624     unsigned char* data;
    625     /* make sure the file is there and open it read-only (binary) */
    626     f = fopen(filename, "rb");
    627     if (f == NULL) {
    628         ERROR("can't open font file \"%s\"\n", filename);
    629         return false;
    630     }
    631 
    632     if (fread(&bfType, sizeof(short int), 1, f) != 1) {
    633         ERROR("can't read %lu bytes from font file \"%s\"\n",
    634                (unsigned long)sizeof(short int), filename);
    635         goto error;
    636     }
    637 
    638     /* check if file is a bitmap */
    639     if (bfType != 19778) {
    640         ERROR("not a bmp file.\n");
    641         goto error;
    642     }
    643 
    644     /* get the file size */
    645     /* skip file size and reserved fields of bitmap file header */
    646     fseek(f, 8, SEEK_CUR);
    647 
    648     /* get the position of the actual bitmap data */
    649     if (fread(&bfOffBits, sizeof(int), 1, f) != 1) {
    650         ERROR("error reading file.\n");
    651         goto error;
    652     }
    653     //TRACE("Data at Offset: %ld\n", bfOffBits);
    654 
    655     /* skip size of bitmap info header */
    656     fseek(f, 4, SEEK_CUR);
    657 
    658     /* get the width of the bitmap */
    659     if (fread(&width, sizeof(int), 1, f) != 1) {
    660         ERROR("error reading file.\n");
    661         goto error;
    662     }
    663     //TRACE("Width of Bitmap: %d\n", texture->width);
    664 
    665     /* get the height of the bitmap */
    666     if (fread(&height, sizeof(int), 1, f) != 1) {
    667         ERROR("error reading file.\n");
    668         goto error;
    669     }
    670     //TRACE("Height of Bitmap: %d\n", texture->height);
    671 
    672     /* get the number of planes (must be set to 1) */
    673     if (fread(&biPlanes, sizeof(short int), 1, f) != 1) {
    674         ERROR("error reading file.\n");
    675         goto error;
    676     }
    677     if (biPlanes != 1) {
    678         ERROR("number of Planes not 1!\n");
    679         goto error;
    680     }
    681 
    682     /* get the number of bits per pixel */
    683     if (fread(&biBitCount, sizeof(short int), 1, f) != 1) {
    684         ERROR("error reading file.\n");
    685         goto error;
    686     }
    687 
    688     //TRACE("Bits per Pixel: %d\n", biBitCount);
    689     if (biBitCount != 24) {
    690         ERROR("Bits per Pixel not 24\n");
    691         goto error;
    692     }
    693 
    694     /* calculate the size of the image in bytes */
    695     biSizeImage = width * height * 3 * sizeof(unsigned char);
    696     data = (unsigned char*) malloc(biSizeImage);
    697     if (data == NULL) {
    698         ERROR("Can't allocate memory for image\n");
    699         goto error;
    700     }
    701 
    702     /* seek to the actual data */
    703     fseek(f, bfOffBits, SEEK_SET);
    704     if (fread(data, biSizeImage, 1, f) != 1) {
    705         ERROR("Error loading file!\n");
    706         goto error;
    707     }
    708     fclose(f);
    709 
    710     /* swap red and blue (bgr -> rgb) */
    711     for (i = 0; i < biSizeImage; i += 3) {
    712        temp = data[i];
    713        data[i] = data[i + 2];
    714        data[i + 2] = temp;
    715     }
    716 
    717     //insert alpha channel
    718     unsigned char* data_with_alpha;
    719     data_with_alpha = (unsigned char*)
    720         malloc(width*height*4*sizeof(unsigned char));
    721     for (int i = 0; i < height; i++) {
    722         for (int j = 0; j < width; j++) {
    723             unsigned char r, g, b, a;
    724             r = data[3*(i*width+j)];
    725             g = data[3*(i*width+j)+1];
    726             b = data[3*(i*width+j)+2];
    727 
    728             if (r==0 && g==0 && b==0)
    729                 a = 0;
    730             else
    731                 a = 255;
    732 
    733             data_with_alpha[4*(i*width+j)] = r;
    734             data_with_alpha[4*(i*width+j) + 1] = g;
    735             data_with_alpha[4*(i*width+j) + 2] = b;
    736             data_with_alpha[4*(i*width+j) + 3] = a;
    737         }
    738     }
    739     free(data);
    740 
    741     //create opengl texture
    742     glGenTextures(1, &_fontTexture);
    743     glBindTexture(GL_TEXTURE_2D, _fontTexture);
    744     //glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, data);
    745     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data_with_alpha);
    746     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    747     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    748     glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
    749 
    750     free(data_with_alpha);
    751 
    752     buildFont();
    753     return (glGetError()==0);
    754 
    755  error:
    756     fclose(f);
    757     return false;
    758 }
    759 
    760 void
    761 VolumeRenderer::drawLabel(Volume* vol)
    762 {
    763     //glEnable(GL_TEXTURE_2D);
    764     glDisable(GL_TEXTURE_2D);
    765     glEnable(GL_DEPTH_TEST);
    766 
    767     //x
    768     glColor3f(0.5, 0.5, 0.5);
    769 
    770     int length = vol->label[0].size();
    771     glPushMatrix();
    772 
    773     glTranslatef(.5 * vol->aspectRatioWidth,
    774                  vol->aspectRatioHeight,
    775                  -0.1 * vol->aspectRatioDepth);
    776     glRotatef(180, 0, 0, 1);
    777     glRotatef(90, 1, 0, 0);
    778 
    779     glScalef(0.0008, 0.0008, 0.0008);
    780     for (int i = 0; i < length; i++) {
    781         glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[0].c_str()[i]);
    782         glTranslatef(0.04, 0., 0.);
    783     }
    784     glPopMatrix();
    785 
    786     //y
    787     length = vol->label[1].size();
    788     glPushMatrix();
    789     glTranslatef(vol->aspectRatioWidth,
    790                  0.5*vol->aspectRatioHeight,
    791                  -0.1*vol->aspectRatioDepth);
    792     glRotatef(90, 0, 1, 0);
    793     glRotatef(90, 0, 0, 1);
    794 
    795     glScalef(0.0008, 0.0008, 0.0008);
    796     for (int i = 0; i < length; i++) {
    797         glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[1].c_str()[i]);
    798         glTranslatef(0.04, 0., 0.);
    799     }
    800     glPopMatrix();
    801 
    802     //z
    803     length = vol->label[2].size();
    804     glPushMatrix();
    805     glTranslatef(0.,
    806                  1. * vol->aspectRatioHeight,
    807                  0.5 * vol->aspectRatioDepth);
    808     glRotatef(90, 0, 1, 0);
    809 
    810     glScalef(0.0008, 0.0008, 0.0008);
    811     for (int i = 0; i < length; i++) {
    812         glutStrokeCharacter(GLUT_STROKE_ROMAN, vol->label[2].c_str()[i]);
    813         glTranslatef(0.04, 0., 0.);
    814     }
    815     glPopMatrix();
    816 
    817     glDisable(GL_TEXTURE_2D);
    818 }
    819 
    820 void
    821 VolumeRenderer::buildFont()
    822 {
    823     GLfloat cx, cy;         /* the character coordinates in our texture */
    824     _fontBase = glGenLists(256);
    825     glBindTexture(GL_TEXTURE_2D, _fontTexture);
    826     for (int loop = 0; loop < 256; loop++) {
    827         cx = (float) (loop % 16) / 16.0f;
    828         cy = (float) (loop / 16) / 16.0f;
    829         glNewList(_fontBase + loop, GL_COMPILE);
    830         glBegin(GL_QUADS);
    831         glTexCoord2f(cx, 1 - cy - 0.0625f);
    832         glVertex3f(0, 0, 0);
    833         glTexCoord2f(cx + 0.0625f, 1 - cy - 0.0625f);
    834         glVertex3f(0.04, 0, 0);
    835         glTexCoord2f(cx + 0.0625f, 1 - cy);
    836         glVertex3f(0.04, 0.04, 0);
    837         glTexCoord2f(cx, 1 - cy);
    838         glVertex3f(0, 0.04, 0);
    839         glEnd();
    840         glTranslated(0.04, 0, 0);
    841         glEndList();
    842     }
    843 }
    844 
    845 void
    846 VolumeRenderer::glPrint(char* string, int set)
    847 {
    848     if (set > 1) {
    849         set = 1;
    850     }
    851     glBindTexture(GL_TEXTURE_2D, _fontTexture);
    852     glListBase(_fontBase - 32 + (128 * set));
    853     glCallLists(strlen(string), GL_BYTE, string);
    854 }
  • branches/blt4/packages/vizservers/nanovis/VolumeRenderer.h

    r2966 r3061  
    1616#ifndef _VOLUME_RENDERER_H_
    1717#define _VOLUME_RENDERER_H_
    18 
    19 #include <GL/glew.h>
    20 #include <Cg/cgGL.h>
    2118
    2219#include "Mat4x4.h"
     
    4037
    4138    void diffuse(float val);
    42 
    43     /// control independently
    44     void setSliceMode(bool val)
    45     {
    46         _sliceMode = val;
    47     }
    48 
    49     void setVolumeMode(bool val)
    50     {
    51         _volumeMode = val;
    52     }
    53 
    54     /// switch_cutplane_mode
    55     void switchSliceMode()
    56     {
    57         _sliceMode = (!_sliceMode);
    58     }
    59 
    60     void switchVolumeMode()
    61     {
    62         _volumeMode = (!_volumeMode);
    63     }
    6439
    6540    void clearAnimatedVolumeInfo()
     
    8863    }
    8964
    90     friend class NanoVis;
    91 
    9265private:
    9366    void initShaders();
     
    10174                         float r, float g, float b, float line_width);
    10275
    103     void getNearFarZ(const Mat4x4& mv, double& zNear, double& zFar);
    104 
    105     bool initFont(const char *filename);
    106 
    107     /// there are two sets of font in the texture. 0, 1
    108     void glPrint(char *string, int set);
    109 
    110     /// draw label using bitmap texture
    111     void drawLabel(Volume *vol);
    112 
    113     /// Register the location of each alphabet in
    114     void buildFont();
     76    void getEyeSpaceBounds(const Mat4x4& mv,
     77                           double& xMin, double& xMax,
     78                           double& yMin, double& yMax,
     79                           double& zNear, double& zFar);
    11580
    11681    VolumeInterpolator *_volumeInterpolator;
    117 
    118     bool _sliceMode;  ///< enable cut planes
    119     bool _volumeMode; ///< enable full volume rendering
    12082
    12183    /**
     
    144106     */
    145107    NvStdVertexShader *_stdVertexShader;
    146 
    147     //standard vertex shader parameters
    148     CGparameter _mvpVertStdParam;
    149     CGparameter _mviVertStdParam;
    150     GLuint _fontBase;      ///< The base of the font display list.
    151     GLuint _fontTexture;   ///< The id of the font texture
    152108};
    153109
  • branches/blt4/packages/vizservers/nanovis/nanovis.cpp

    r2966 r3061  
    4747#include <R2/R2FilePath.h>
    4848#include <R2/R2Fonts.h>
    49 
    50 #include <vrutil/vrFilePath.h>
    5149
    5250#include <BMPImageLoaderImpl.h>
     
    742740    }
    743741
     742    // NVIDIA driver may report OpenGL 2.1, but not support PBOs in
     743    // indirect GLX contexts
     744    if (!GLEW_ARB_pixel_buffer_object) {
     745        ERROR("Pixel buffer objects are not supported by driver, please check that the user running nanovis has permissions to create a direct rendering context (e.g. user has read/write access to /dev/nvidia* device nodes in Linux).\n");
     746        doExit(1);
     747    }
     748
    744749    // Additional extensions not in 2.1 core
    745750
     
    774779        doExit(1);
    775780    }
    776 
    777     vrFilePath::getInstance()->setPath(path);
    778781
    779782    ImageLoaderFactory::getInstance()->addLoaderImpl("bmp", new BMPImageLoaderImpl());
     
    14201423void NanoVis::update()
    14211424{
    1422     if (volRenderer->_volumeInterpolator->isStarted()) {
     1425    VolumeInterpolator *volInterp = volRenderer->getVolumeInterpolator();
     1426    if (volInterp->isStarted()) {
    14231427        struct timeval clock;
    14241428        gettimeofday(&clock, NULL);
     
    14261430
    14271431        elapsed_time = clock.tv_sec + clock.tv_usec/1000000.0 -
    1428             volRenderer->_volumeInterpolator->getStartTime();
     1432            volInterp->getStartTime();
    14291433
    14301434        TRACE("%lf %lf\n", elapsed_time,
    1431                volRenderer->_volumeInterpolator->getInterval());
     1435              volInterp->getInterval());
    14321436        float fraction;
    14331437        float f;
    14341438
    1435         f = fmod((float) elapsed_time, (float)volRenderer->_volumeInterpolator->getInterval());
     1439        f = fmod((float) elapsed_time, (float)volInterp->getInterval());
    14361440        if (f == 0.0) {
    14371441            fraction = 0.0f;
    14381442        } else {
    1439             fraction = f / volRenderer->_volumeInterpolator->getInterval();
     1443            fraction = f / volInterp->getInterval();
    14401444        }
    14411445        TRACE("fraction : %f\n", fraction);
    1442         volRenderer->_volumeInterpolator->update(fraction);
     1446        volInterp->update(fraction);
    14431447    }
    14441448}
     
    23522356
    23532357    R2FilePath::getInstance()->setWorkingDirectory(argc, (const char**) argv);
    2354     vrFilePath::getInstance()->setWorkingDirectory(argc, (const char**) argv);
    23552358
    23562359#ifdef XINETD
  • branches/blt4/packages/vizservers/nanovis/protocol-nanovis.txt

    r2966 r3061  
    126126          -size <val>
    127127
    128 volume axis label <x|y|z> <value> <?names?>
    129128volume data state <on|off> <?names?>
    130129volume data follows <size> <tag>
  • branches/blt4/packages/vizservers/nanovis/shaders/render_vel.cg

    r2936 r3061  
    1212 */
    1313
    14 // update positions based on velocity
     14// Project and sample 3D vector field on a 2D plane
    1515
    1616#include "common.cg"
     
    1818float4 main(in float3 uvw : TEXCOORD0,
    1919            uniform sampler3D vel_tex,
    20             uniform float4 plane_normal,
     20            uniform float3 projection_vector,
     21            uniform float timestep,
    2122            uniform float vmax) : COLOR
    2223{
    23     //float4 vel = float4(tex3D(vel_tex, uvw).xyz, 0) - float4(0.5, 0.5, 0.5, 0.0);
    24     float4 vel = float4(tex3D(vel_tex, uvw).yzw, 0) - float4(0.5, 0.5, 0.5, 0.0);
    25     vel = vel * (vmax * 2);
    26     float4 ret = plane_normal * vel * 0.0005;
    27 
    28     return float4(ret.xyz, 1);
     24    float3 velocity = tex3D(vel_tex, uvw).yzw * 2.0 - float3(1.0, 1.0, 1.0);
     25    velocity = velocity * projection_vector * vmax * timestep;
     26    return float4(velocity, 1);
    2927}
    30 
  • branches/blt4/packages/vizservers/nanovis/shaders/velocityslicefp.cg

    r2936 r3061  
    44
    55float4 fpmain(float2 texCoord : TEXCOORD0,
    6               float3 color : COLOR,
     6              float4 color : COLOR0,
    77              float2 center : TEXCOORD2,
    88              float4 rotation : TEXCOORD3,
    9               uniform sampler2D arrows : register(s0)) : COLOR
     9              uniform sampler2D arrows : TEXUNIT0) : COLOR
    1010{
    1111    float2 newTexCoord = float2((texCoord.x - 0.5) / NUM_SUBIMAGE_X, (texCoord.y - 0.5) / NUM_SUBIMAGE_Y);
     
    1717    rotTexCoord = rotTexCoord + center;
    1818
    19     return float4(tex2D(arrows, rotTexCoord.xy).xyz * color, 1.0);
     19    return tex2D(arrows, rotTexCoord.xy) * color;
    2020}
  • branches/blt4/packages/vizservers/nanovis/shaders/velocityslicevp.cg

    r2936 r3061  
    1010            out float4 rotation : TEXCOORD3,
    1111            out float4 pointSize : PSIZE,
    12             uniform sampler3D vfield,
     12            uniform sampler3D vfield : TEXUNIT1,
    1313            uniform float tanHalfFOV,
    1414            uniform float4x4 modelview,
Note: See TracChangeset for help on using the changeset viewer.