Changeset 4146 for trunk/configure


Ignore:
Timestamp:
Jan 22, 2014, 11:35:03 PM (6 years ago)
Author:
gah
Message:

revert to last version: remove changes for new build system for rappture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4144 r4146  
    626626LIBOBJS
    627627subdirs
    628 XSUBPP
    629 VTKDIR
     628VTK_VERSION
     629VTK_TCL_DIR
    630630TK_VERSION
    631631TK_XLIBSW
     
    641641TCL_LIB_SPEC
    642642TCL_INC_SPEC
    643 TCLSH
    644643SIZEOF_VOID_P
    645644SIZEOF_LONG_LONG
     
    649648RUBY_VERSION_RV
    650649RUBY_PLATFORM
    651 RUBY
    652650RP_BASE
    653 R
    654651PYTHON_VERSION
    655652PYTHON_SITE_PACKAGES
     
    662659PYTHON_DISTUTILS
    663660PYTHON_CFLAGS
    664 PYTHON
    665661PERL_VERSION_RV
    666662PERL_VERSION
     
    674670PERL_ARCHLIBEXP
    675671PERL_ARCHLIB
    676 PERL
    677672OCTAVE_VERSION_MAJOR
    678673OCTAVE_VERSION
     
    681676MKOCTFILE2
    682677MEX_ARCH
    683 MEXEXT
    684 MEX
    685 MCC
    686 MATLAB
    687678MAKE
    688679LIB_SEARCH_DIRS
     
    690681JAVA_INC_DIR
    691682JAVA_HOME
    692 JAVAH
    693 JAVAC
    694 JAVA
    695683INSTALL_PREFIX
    696684HAVE_RUBY_DEVEL
    697685HAVE_INTTYPES_H
    698686HAVE_FFMPEG_LIBS
     687ENABLE_VTK_DICOM
     688ENABLE_GUI
     689ENABLE_LANG
    699690FFMPEG
    700 ENABLE_GUI
    701691LDFLAGS_DEFAULT
    702692CFLAGS_DEFAULT
     693host_os
     694host_vendor
     695host_cpu
     696host
     697build_os
     698build_vendor
     699build_cpu
     700build
     701HAVE_RUBY_H
     702RUBY_SITELIBDIR
     703RUBY_LIBRUBYARG_STATIC
     704RUBY_LIBRUBYARG
     705RUBY_LIBS
     706RUBY_LDFLAGS
     707RUBY_CXXFLAGS
     708RUBY_CFLAGS
     709RUBY_CPPFLAGS
     710RUBY_VERSION_CODE
     711RUBY
     712R
     713JAVAH
     714JAVAC
     715JAVA
     716PYTHON
     717XSUBPP
     718PERL
     719mkoctfile2
     720mkoctfile3
     721MKOCTFILE
     722OCTAVE
     723MCC
     724MEXEXT
     725MEX
     726MATLAB
     727TCLSH
    703728INSTALL_STUB_LIB
    704729INSTALL_LIB
     
    723748DL_OBJS
    724749DL_LIBS
     750AR
    725751CXXCPP
    726 AR
    727 RANLIB
    728752EGREP
    729753GREP
     754CPP
    730755ac_ct_F77
    731756FFLAGS
     
    734759CXXFLAGS
    735760CXX
    736 X_LIBRARIES
    737 X_INCLUDES
    738 CPP
    739761OBJEXT
    740762EXEEXT
     
    744766CFLAGS
    745767CC
    746 XMKMF
    747 RAPPTURE_RELEASE_SERIAL
    748 RAPPTURE_MAJOR_VERSION
    749 RAPPTURE_MINOR_VERSION
    750 RAPPTURE_VERSION
    751 VERSION
    752768SET_MAKE
    753769MKDIR_P
    754770LN_S
     771RANLIB
    755772INSTALL_DATA
    756773INSTALL_SCRIPT
     
    798815enable_option_checking
    799816with_install
    800 with_x
    801817enable_64bit
    802818enable_64bit_vis
    803819enable_corefoundation
    804820enable_load
     821enable_lang
    805822enable_gui
     823with_ffmpeg
     824with_tclsh
     825with_vtk
     826enable_vtkdicom
     827with_matlab
     828with_octave
     829with_mkoctfile3
     830with_mkoctfile2
     831with_perl
     832with_python
     833with_java
     834with_R
     835with_ruby
     836with_ruby_sitelibdir
    806837enable_shared
    807838enable_symbols
     
    810841host_alias
    811842target_alias
    812 XMKMF
    813843CC
    814844CFLAGS
     
    816846LIBS
    817847CPPFLAGS
    818 CPP
    819848CXX
    820849CXXFLAGS
     
    822851F77
    823852FFLAGS
     853CPP
    824854CXXCPP'
    825855ac_subdirs_all='packages/optimizer/src '
     
    14201450  cat <<\_ACEOF
    14211451
    1422 X features:
    1423   --x-includes=DIR    X include files are in DIR
    1424   --x-libraries=DIR   X library files are in DIR
     1452System types:
     1453  --build=BUILD     configure for building on BUILD [guessed]
     1454  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    14251455_ACEOF
    14261456fi
     
    14401470  --enable-corefoundation use CoreFoundation API --enable-corefoundation
    14411471  --disable-load          disallow dynamic loading and "load" command
     1472  --enable-lang           build language bindings [default=yes]
    14421473  --enable-gui            build code related to the graphical user interface
    14431474                          [default=yes]
     1475  --enable-vtkdicom       Use vtkDICOM package [default=no]
    14441476  --enable-shared         build and link with shared libraries --enable-shared
    14451477  --enable-symbols        build with debugging symbols --disable-symbols
     
    14491481  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    14501482  --with-install=DIR      location of installation [default=yes]
    1451   --with-x                use the X Window System
     1483  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
     1484  --with-tclsh=DIR        location of tclsh [default=yes]
     1485  --with-vtk=version      VTK library version [default=6.0]
     1486  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
     1487  --with-octave=DIR       path of default octave compiler `mkoctfile'
     1488                          [default=yes]
     1489  --with-mkoctfile3=DIR   path of octave compiler `mkoctfile' [default=no]
     1490  --with-mkoctfile2=DIR   path of octave compiler `mkoctfile' [default=no]
     1491  --with-perl=DIR         location of perl [default=yes]
     1492  --with-python=DIR       location of python [default=yes]
     1493  --with-java=DIR         location of java [default=yes]
     1494  --with-R=DIR            location of R interpreter [default=yes]
     1495  --with-ruby=PATH        path to the ruby interpreter [[ruby]]
     1496  --with-ruby-sitelibdir=PATH
     1497                          path to install ruby scripts [[auto-detect]]
    14521498
    14531499Some influential environment variables:
    1454   XMKMF       Path to xmkmf, Makefile generator for X Window System
    14551500  CC          C compiler command
    14561501  CFLAGS      C compiler flags
     
    14601505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    14611506              you have headers in a nonstandard directory <include dir>
    1462   CPP         C preprocessor
    14631507  CXX         C++ compiler command
    14641508  CXXFLAGS    C++ compiler flags
    14651509  F77         Fortran 77 compiler command
    14661510  FFLAGS      Fortran 77 compiler flags
     1511  CPP         C preprocessor
    14671512  CXXCPP      C++ preprocessor
    14681513
     
    15851630} # ac_fn_c_try_compile
    15861631
     1632# ac_fn_cxx_try_compile LINENO
     1633# ----------------------------
     1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1635ac_fn_cxx_try_compile ()
     1636{
     1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1638  rm -f conftest.$ac_objext
     1639  if { { ac_try="$ac_compile"
     1640case "(($ac_try" in
     1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1642  *) ac_try_echo=$ac_try;;
     1643esac
     1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1645$as_echo "$ac_try_echo"; } >&5
     1646  (eval "$ac_compile") 2>conftest.err
     1647  ac_status=$?
     1648  if test -s conftest.err; then
     1649    grep -v '^ *+' conftest.err >conftest.er1
     1650    cat conftest.er1 >&5
     1651    mv -f conftest.er1 conftest.err
     1652  fi
     1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1654  test $ac_status = 0; } && {
     1655         test -z "$ac_cxx_werror_flag" ||
     1656         test ! -s conftest.err
     1657       } && test -s conftest.$ac_objext; then :
     1658  ac_retval=0
     1659else
     1660  $as_echo "$as_me: failed program was:" >&5
     1661sed 's/^/| /' conftest.$ac_ext >&5
     1662
     1663        ac_retval=1
     1664fi
     1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1666  as_fn_set_status $ac_retval
     1667
     1668} # ac_fn_cxx_try_compile
     1669
     1670# ac_fn_f77_try_compile LINENO
     1671# ----------------------------
     1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1673ac_fn_f77_try_compile ()
     1674{
     1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1676  rm -f conftest.$ac_objext
     1677  if { { ac_try="$ac_compile"
     1678case "(($ac_try" in
     1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1680  *) ac_try_echo=$ac_try;;
     1681esac
     1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1683$as_echo "$ac_try_echo"; } >&5
     1684  (eval "$ac_compile") 2>conftest.err
     1685  ac_status=$?
     1686  if test -s conftest.err; then
     1687    grep -v '^ *+' conftest.err >conftest.er1
     1688    cat conftest.er1 >&5
     1689    mv -f conftest.er1 conftest.err
     1690  fi
     1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1692  test $ac_status = 0; } && {
     1693         test -z "$ac_f77_werror_flag" ||
     1694         test ! -s conftest.err
     1695       } && test -s conftest.$ac_objext; then :
     1696  ac_retval=0
     1697else
     1698  $as_echo "$as_me: failed program was:" >&5
     1699sed 's/^/| /' conftest.$ac_ext >&5
     1700
     1701        ac_retval=1
     1702fi
     1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1704  as_fn_set_status $ac_retval
     1705
     1706} # ac_fn_f77_try_compile
     1707
    15871708# ac_fn_c_try_cpp LINENO
    15881709# ----------------------
     
    16211742
    16221743} # ac_fn_c_try_cpp
     1744
     1745# ac_fn_c_try_run LINENO
     1746# ----------------------
     1747# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1748# that executables *can* be run.
     1749ac_fn_c_try_run ()
     1750{
     1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1752  if { { ac_try="$ac_link"
     1753case "(($ac_try" in
     1754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1755  *) ac_try_echo=$ac_try;;
     1756esac
     1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1758$as_echo "$ac_try_echo"; } >&5
     1759  (eval "$ac_link") 2>&5
     1760  ac_status=$?
     1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1762  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1763  { { case "(($ac_try" in
     1764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1765  *) ac_try_echo=$ac_try;;
     1766esac
     1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1768$as_echo "$ac_try_echo"; } >&5
     1769  (eval "$ac_try") 2>&5
     1770  ac_status=$?
     1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1772  test $ac_status = 0; }; }; then :
     1773  ac_retval=0
     1774else
     1775  $as_echo "$as_me: program exited with status $ac_status" >&5
     1776       $as_echo "$as_me: failed program was:" >&5
     1777sed 's/^/| /' conftest.$ac_ext >&5
     1778
     1779       ac_retval=$ac_status
     1780fi
     1781  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1783  as_fn_set_status $ac_retval
     1784
     1785} # ac_fn_c_try_run
    16231786
    16241787# ac_fn_c_try_link LINENO
     
    16681831} # ac_fn_c_try_link
    16691832
    1670 # ac_fn_cxx_try_compile LINENO
    1671 # ----------------------------
    1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1673 ac_fn_cxx_try_compile ()
     1833# ac_fn_c_check_func LINENO FUNC VAR
     1834# ----------------------------------
     1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1836ac_fn_c_check_func ()
    16741837{
    16751838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1676   rm -f conftest.$ac_objext
    1677   if { { ac_try="$ac_compile"
    1678 case "(($ac_try" in
    1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1680   *) ac_try_echo=$ac_try;;
    1681 esac
    1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1683 $as_echo "$ac_try_echo"; } >&5
    1684   (eval "$ac_compile") 2>conftest.err
    1685   ac_status=$?
    1686   if test -s conftest.err; then
    1687     grep -v '^ *+' conftest.err >conftest.er1
    1688     cat conftest.er1 >&5
    1689     mv -f conftest.er1 conftest.err
    1690   fi
    1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1692   test $ac_status = 0; } && {
    1693          test -z "$ac_cxx_werror_flag" ||
    1694          test ! -s conftest.err
    1695        } && test -s conftest.$ac_objext; then :
    1696   ac_retval=0
    1697 else
    1698   $as_echo "$as_me: failed program was:" >&5
    1699 sed 's/^/| /' conftest.$ac_ext >&5
    1700 
    1701         ac_retval=1
    1702 fi
     1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1840$as_echo_n "checking for $2... " >&6; }
     1841if eval \${$3+:} false; then :
     1842  $as_echo_n "(cached) " >&6
     1843else
     1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1845/* end confdefs.h.  */
     1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1848#define $2 innocuous_$2
     1849
     1850/* System header to define __stub macros and hopefully few prototypes,
     1851    which can conflict with char $2 (); below.
     1852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1853    <limits.h> exists even on freestanding compilers.  */
     1854
     1855#ifdef __STDC__
     1856# include <limits.h>
     1857#else
     1858# include <assert.h>
     1859#endif
     1860
     1861#undef $2
     1862
     1863/* Override any GCC internal prototype to avoid an error.
     1864   Use char because int might match the return type of a GCC
     1865   builtin and then its argument prototype would still apply.  */
     1866#ifdef __cplusplus
     1867extern "C"
     1868#endif
     1869char $2 ();
     1870/* The GNU C library defines this for functions which it implements
     1871    to always fail with ENOSYS.  Some functions are actually named
     1872    something starting with __ and the normal name is an alias.  */
     1873#if defined __stub_$2 || defined __stub___$2
     1874choke me
     1875#endif
     1876
     1877int
     1878main ()
     1879{
     1880return $2 ();
     1881  ;
     1882  return 0;
     1883}
     1884_ACEOF
     1885if ac_fn_c_try_link "$LINENO"; then :
     1886  eval "$3=yes"
     1887else
     1888  eval "$3=no"
     1889fi
     1890rm -f core conftest.err conftest.$ac_objext \
     1891    conftest$ac_exeext conftest.$ac_ext
     1892fi
     1893eval ac_res=\$$3
     1894               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1895$as_echo "$ac_res" >&6; }
    17031896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1704   as_fn_set_status $ac_retval
    1705 
    1706 } # ac_fn_cxx_try_compile
    1707 
    1708 # ac_fn_f77_try_compile LINENO
    1709 # ----------------------------
    1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1711 ac_fn_f77_try_compile ()
    1712 {
    1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1714   rm -f conftest.$ac_objext
    1715   if { { ac_try="$ac_compile"
    1716 case "(($ac_try" in
    1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1718   *) ac_try_echo=$ac_try;;
    1719 esac
    1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1721 $as_echo "$ac_try_echo"; } >&5
    1722   (eval "$ac_compile") 2>conftest.err
    1723   ac_status=$?
    1724   if test -s conftest.err; then
    1725     grep -v '^ *+' conftest.err >conftest.er1
    1726     cat conftest.er1 >&5
    1727     mv -f conftest.er1 conftest.err
    1728   fi
    1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1730   test $ac_status = 0; } && {
    1731          test -z "$ac_f77_werror_flag" ||
    1732          test ! -s conftest.err
    1733        } && test -s conftest.$ac_objext; then :
    1734   ac_retval=0
    1735 else
    1736   $as_echo "$as_me: failed program was:" >&5
    1737 sed 's/^/| /' conftest.$ac_ext >&5
    1738 
    1739         ac_retval=1
    1740 fi
    1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1742   as_fn_set_status $ac_retval
    1743 
    1744 } # ac_fn_f77_try_compile
    1745 
    1746 # ac_fn_c_try_run LINENO
    1747 # ----------------------
    1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1749 # that executables *can* be run.
    1750 ac_fn_c_try_run ()
    1751 {
    1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1753   if { { ac_try="$ac_link"
    1754 case "(($ac_try" in
    1755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1756   *) ac_try_echo=$ac_try;;
    1757 esac
    1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1759 $as_echo "$ac_try_echo"; } >&5
    1760   (eval "$ac_link") 2>&5
    1761   ac_status=$?
    1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1763   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1764   { { case "(($ac_try" in
    1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1766   *) ac_try_echo=$ac_try;;
    1767 esac
    1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1769 $as_echo "$ac_try_echo"; } >&5
    1770   (eval "$ac_try") 2>&5
    1771   ac_status=$?
    1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1773   test $ac_status = 0; }; }; then :
    1774   ac_retval=0
    1775 else
    1776   $as_echo "$as_me: program exited with status $ac_status" >&5
    1777        $as_echo "$as_me: failed program was:" >&5
    1778 sed 's/^/| /' conftest.$ac_ext >&5
    1779 
    1780        ac_retval=$ac_status
    1781 fi
    1782   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1784   as_fn_set_status $ac_retval
    1785 
    1786 } # ac_fn_c_try_run
     1897
     1898} # ac_fn_c_check_func
    17871899
    17881900# ac_fn_cxx_try_link LINENO
     
    18311943
    18321944} # ac_fn_cxx_try_link
     1945
     1946# ac_fn_cxx_check_func LINENO FUNC VAR
     1947# ------------------------------------
     1948# Tests whether FUNC exists, setting the cache variable VAR accordingly
     1949ac_fn_cxx_check_func ()
     1950{
     1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1953$as_echo_n "checking for $2... " >&6; }
     1954if eval \${$3+:} false; then :
     1955  $as_echo_n "(cached) " >&6
     1956else
     1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1958/* end confdefs.h.  */
     1959/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     1960   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     1961#define $2 innocuous_$2
     1962
     1963/* System header to define __stub macros and hopefully few prototypes,
     1964    which can conflict with char $2 (); below.
     1965    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     1966    <limits.h> exists even on freestanding compilers.  */
     1967
     1968#ifdef __STDC__
     1969# include <limits.h>
     1970#else
     1971# include <assert.h>
     1972#endif
     1973
     1974#undef $2
     1975
     1976/* Override any GCC internal prototype to avoid an error.
     1977   Use char because int might match the return type of a GCC
     1978   builtin and then its argument prototype would still apply.  */
     1979#ifdef __cplusplus
     1980extern "C"
     1981#endif
     1982char $2 ();
     1983/* The GNU C library defines this for functions which it implements
     1984    to always fail with ENOSYS.  Some functions are actually named
     1985    something starting with __ and the normal name is an alias.  */
     1986#if defined __stub_$2 || defined __stub___$2
     1987choke me
     1988#endif
     1989
     1990int
     1991main ()
     1992{
     1993return $2 ();
     1994  ;
     1995  return 0;
     1996}
     1997_ACEOF
     1998if ac_fn_cxx_try_link "$LINENO"; then :
     1999  eval "$3=yes"
     2000else
     2001  eval "$3=no"
     2002fi
     2003rm -f core conftest.err conftest.$ac_objext \
     2004    conftest$ac_exeext conftest.$ac_ext
     2005fi
     2006eval ac_res=\$$3
     2007               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2008$as_echo "$ac_res" >&6; }
     2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2010
     2011} # ac_fn_cxx_check_func
    18332012
    18342013# ac_fn_cxx_try_cpp LINENO
     
    25962775
    25972776
     2777ac_config_headers="$ac_config_headers src/core/config.h"
     2778
    25982779
    25992780#------------------------------------------------------------------------
     
    27252906
    27262907
     2908if test -n "$ac_tool_prefix"; then
     2909  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2912$as_echo_n "checking for $ac_word... " >&6; }
     2913if ${ac_cv_prog_RANLIB+:} false; then :
     2914  $as_echo_n "(cached) " >&6
     2915else
     2916  if test -n "$RANLIB"; then
     2917  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2918else
     2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2920for as_dir in $PATH
     2921do
     2922  IFS=$as_save_IFS
     2923  test -z "$as_dir" && as_dir=.
     2924    for ac_exec_ext in '' $ac_executable_extensions; do
     2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2926    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2928    break 2
     2929  fi
     2930done
     2931  done
     2932IFS=$as_save_IFS
     2933
     2934fi
     2935fi
     2936RANLIB=$ac_cv_prog_RANLIB
     2937if test -n "$RANLIB"; then
     2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     2939$as_echo "$RANLIB" >&6; }
     2940else
     2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2942$as_echo "no" >&6; }
     2943fi
     2944
     2945
     2946fi
     2947if test -z "$ac_cv_prog_RANLIB"; then
     2948  ac_ct_RANLIB=$RANLIB
     2949  # Extract the first word of "ranlib", so it can be a program name with args.
     2950set dummy ranlib; ac_word=$2
     2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2952$as_echo_n "checking for $ac_word... " >&6; }
     2953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     2954  $as_echo_n "(cached) " >&6
     2955else
     2956  if test -n "$ac_ct_RANLIB"; then
     2957  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2958else
     2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2960for as_dir in $PATH
     2961do
     2962  IFS=$as_save_IFS
     2963  test -z "$as_dir" && as_dir=.
     2964    for ac_exec_ext in '' $ac_executable_extensions; do
     2965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2966    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2968    break 2
     2969  fi
     2970done
     2971  done
     2972IFS=$as_save_IFS
     2973
     2974fi
     2975fi
     2976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2977if test -n "$ac_ct_RANLIB"; then
     2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     2979$as_echo "$ac_ct_RANLIB" >&6; }
     2980else
     2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2982$as_echo "no" >&6; }
     2983fi
     2984
     2985  if test "x$ac_ct_RANLIB" = x; then
     2986    RANLIB=":"
     2987  else
     2988    case $cross_compiling:$ac_tool_warned in
     2989yes:)
     2990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2992ac_tool_warned=yes ;;
     2993esac
     2994    RANLIB=$ac_ct_RANLIB
     2995  fi
     2996else
     2997  RANLIB="$ac_cv_prog_RANLIB"
     2998fi
     2999
    27273000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    27283001$as_echo_n "checking whether ln -s works... " >&6; }
     
    28103083
    28113084
    2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_MAJOR_VERSION" >&5
    2813 $as_echo_n "checking RAPPTURE_MAJOR_VERSION... " >&6; }
    2814 RAPPTURE_MAJOR_VERSION=1
    2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_MAJOR_VERSION" >&5
    2816 $as_echo "$RAPPTURE_MAJOR_VERSION" >&6; }
    2817 
    2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_MINOR_VERSION" >&5
    2819 $as_echo_n "checking RAPPTURE_MINOR_VERSION... " >&6; }
    2820 RAPPTURE_MINOR_VERSION=4
    2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_MINOR_VERSION" >&5
    2822 $as_echo "$RAPPTURE_MINOR_VERSION" >&6; }
    2823 
    2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_RELEASE_SERIAL" >&5
    2825 $as_echo_n "checking RAPPTURE_RELEASE_SERIAL... " >&6; }
    2826 RAPPTURE_RELEASE_SERIAL=0
    2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_RELEASE_SERIAL" >&5
    2828 $as_echo "$RAPPTURE_RELEASE_SERIAL" >&6; }
    2829 
    2830 RAPPTURE_VERSION=${RAPPTURE_MAJOR_VERSION}.${RAPPTURE_MINOR_VERSION}
    2831 
    2832 
    2833 
    2834 
    2835 
    2836 
    2837 
     3085# Check for C, C++, and FORTRAN
    28383086ac_ext=c
    28393087ac_cpp='$CPP $CPPFLAGS'
     
    36253873ac_compiler_gnu=$ac_cv_c_compiler_gnu
    36263874
    3627 
    3628 ac_ext=c
    3629 ac_cpp='$CPP $CPPFLAGS'
    3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    3634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
    3635 # On Suns, sometimes $CPP names a directory.
    3636 if test -n "$CPP" && test -d "$CPP"; then
    3637   CPP=
    3638 fi
    3639 if test -z "$CPP"; then
    3640   if ${ac_cv_prog_CPP+:} false; then :
    3641   $as_echo_n "(cached) " >&6
    3642 else
    3643       # Double quotes because CPP needs to be expanded
    3644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    3645     do
    3646       ac_preproc_ok=false
    3647 for ac_c_preproc_warn_flag in '' yes
    3648 do
    3649   # Use a header file that comes with gcc, so configuring glibc
    3650   # with a fresh cross-compiler works.
    3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3652   # <limits.h> exists even on freestanding compilers.
    3653   # On the NeXT, cc -E runs the code through the compiler's parser,
    3654   # not just through cpp. "Syntax error" is here to catch this case.
    3655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3656 /* end confdefs.h.  */
    3657 #ifdef __STDC__
    3658 # include <limits.h>
    3659 #else
    3660 # include <assert.h>
    3661 #endif
    3662                      Syntax error
    3663 _ACEOF
    3664 if ac_fn_c_try_cpp "$LINENO"; then :
    3665 
    3666 else
    3667   # Broken: fails on valid input.
    3668 continue
    3669 fi
    3670 rm -f conftest.err conftest.i conftest.$ac_ext
    3671 
    3672   # OK, works on sane cases.  Now check whether nonexistent headers
    3673   # can be detected and how.
    3674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3675 /* end confdefs.h.  */
    3676 #include <ac_nonexistent.h>
    3677 _ACEOF
    3678 if ac_fn_c_try_cpp "$LINENO"; then :
    3679   # Broken: success on invalid input.
    3680 continue
    3681 else
    3682   # Passes both tests.
    3683 ac_preproc_ok=:
    3684 break
    3685 fi
    3686 rm -f conftest.err conftest.i conftest.$ac_ext
    3687 
    3688 done
    3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3690 rm -f conftest.i conftest.err conftest.$ac_ext
    3691 if $ac_preproc_ok; then :
    3692   break
    3693 fi
    3694 
    3695     done
    3696     ac_cv_prog_CPP=$CPP
    3697 
    3698 fi
    3699   CPP=$ac_cv_prog_CPP
    3700 else
    3701   ac_cv_prog_CPP=$CPP
    3702 fi
    3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    3704 $as_echo "$CPP" >&6; }
    3705 ac_preproc_ok=false
    3706 for ac_c_preproc_warn_flag in '' yes
    3707 do
    3708   # Use a header file that comes with gcc, so configuring glibc
    3709   # with a fresh cross-compiler works.
    3710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3711   # <limits.h> exists even on freestanding compilers.
    3712   # On the NeXT, cc -E runs the code through the compiler's parser,
    3713   # not just through cpp. "Syntax error" is here to catch this case.
    3714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3715 /* end confdefs.h.  */
    3716 #ifdef __STDC__
    3717 # include <limits.h>
    3718 #else
    3719 # include <assert.h>
    3720 #endif
    3721                      Syntax error
    3722 _ACEOF
    3723 if ac_fn_c_try_cpp "$LINENO"; then :
    3724 
    3725 else
    3726   # Broken: fails on valid input.
    3727 continue
    3728 fi
    3729 rm -f conftest.err conftest.i conftest.$ac_ext
    3730 
    3731   # OK, works on sane cases.  Now check whether nonexistent headers
    3732   # can be detected and how.
    3733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3734 /* end confdefs.h.  */
    3735 #include <ac_nonexistent.h>
    3736 _ACEOF
    3737 if ac_fn_c_try_cpp "$LINENO"; then :
    3738   # Broken: success on invalid input.
    3739 continue
    3740 else
    3741   # Passes both tests.
    3742 ac_preproc_ok=:
    3743 break
    3744 fi
    3745 rm -f conftest.err conftest.i conftest.$ac_ext
    3746 
    3747 done
    3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3749 rm -f conftest.i conftest.err conftest.$ac_ext
    3750 if $ac_preproc_ok; then :
    3751 
    3752 else
    3753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    3756 See \`config.log' for more details" "$LINENO" 5; }
    3757 fi
    3758 
    3759 ac_ext=c
    3760 ac_cpp='$CPP $CPPFLAGS'
    3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3764 
    3765 
    3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
    3767 $as_echo_n "checking for X... " >&6; }
    3768 
    3769 
    3770 # Check whether --with-x was given.
    3771 if test "${with_x+set}" = set; then :
    3772   withval=$with_x;
    3773 fi
    3774 
    3775 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
    3776 if test "x$with_x" = xno; then
    3777   # The user explicitly disabled X.
    3778   have_x=disabled
    3779 else
    3780   case $x_includes,$x_libraries in #(
    3781     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
    3782     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
    3783   $as_echo_n "(cached) " >&6
    3784 else
    3785   # One or both of the vars are not set, and there is no cached value.
    3786 ac_x_includes=no ac_x_libraries=no
    3787 rm -f -r conftest.dir
    3788 if mkdir conftest.dir; then
    3789   cd conftest.dir
    3790   cat >Imakefile <<'_ACEOF'
    3791 incroot:
    3792         @echo incroot='${INCROOT}'
    3793 usrlibdir:
    3794         @echo usrlibdir='${USRLIBDIR}'
    3795 libdir:
    3796         @echo libdir='${LIBDIR}'
    3797 _ACEOF
    3798   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    3799     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
    3800     for ac_var in incroot usrlibdir libdir; do
    3801       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    3802     done
    3803     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    3804     for ac_extension in a so sl dylib la dll; do
    3805       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
    3806          test -f "$ac_im_libdir/libX11.$ac_extension"; then
    3807         ac_im_usrlibdir=$ac_im_libdir; break
    3808       fi
    3809     done
    3810     # Screen out bogus values from the imake configuration.  They are
    3811     # bogus both because they are the default anyway, and because
    3812     # using them would break gcc on systems where it needs fixed includes.
    3813     case $ac_im_incroot in
    3814         /usr/include) ac_x_includes= ;;
    3815         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    3816     esac
    3817     case $ac_im_usrlibdir in
    3818         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
    3819         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    3820     esac
    3821   fi
    3822   cd ..
    3823   rm -f -r conftest.dir
    3824 fi
    3825 
    3826 # Standard set of common directories for X headers.
    3827 # Check X11 before X11Rn because it is often a symlink to the current release.
    3828 ac_x_header_dirs='
    3829 /usr/X11/include
    3830 /usr/X11R7/include
    3831 /usr/X11R6/include
    3832 /usr/X11R5/include
    3833 /usr/X11R4/include
    3834 
    3835 /usr/include/X11
    3836 /usr/include/X11R7
    3837 /usr/include/X11R6
    3838 /usr/include/X11R5
    3839 /usr/include/X11R4
    3840 
    3841 /usr/local/X11/include
    3842 /usr/local/X11R7/include
    3843 /usr/local/X11R6/include
    3844 /usr/local/X11R5/include
    3845 /usr/local/X11R4/include
    3846 
    3847 /usr/local/include/X11
    3848 /usr/local/include/X11R7
    3849 /usr/local/include/X11R6
    3850 /usr/local/include/X11R5
    3851 /usr/local/include/X11R4
    3852 
    3853 /usr/X386/include
    3854 /usr/x386/include
    3855 /usr/XFree86/include/X11
    3856 
    3857 /usr/include
    3858 /usr/local/include
    3859 /usr/unsupported/include
    3860 /usr/athena/include
    3861 /usr/local/x11r5/include
    3862 /usr/lpp/Xamples/include
    3863 
    3864 /usr/openwin/include
    3865 /usr/openwin/share/include'
    3866 
    3867 if test "$ac_x_includes" = no; then
    3868   # Guess where to find include files, by looking for Xlib.h.
    3869   # First, try using that file with no special directory specified.
    3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3871 /* end confdefs.h.  */
    3872 #include <X11/Xlib.h>
    3873 _ACEOF
    3874 if ac_fn_c_try_cpp "$LINENO"; then :
    3875   # We can compile using X headers with no special include directory.
    3876 ac_x_includes=
    3877 else
    3878   for ac_dir in $ac_x_header_dirs; do
    3879   if test -r "$ac_dir/X11/Xlib.h"; then
    3880     ac_x_includes=$ac_dir
    3881     break
    3882   fi
    3883 done
    3884 fi
    3885 rm -f conftest.err conftest.i conftest.$ac_ext
    3886 fi # $ac_x_includes = no
    3887 
    3888 if test "$ac_x_libraries" = no; then
    3889   # Check for the libraries.
    3890   # See if we find them without any special options.
    3891   # Don't add to $LIBS permanently.
    3892   ac_save_LIBS=$LIBS
    3893   LIBS="-lX11 $LIBS"
    3894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3895 /* end confdefs.h.  */
    3896 #include <X11/Xlib.h>
    3897 int
    3898 main ()
    3899 {
    3900 XrmInitialize ()
    3901   ;
    3902   return 0;
    3903 }
    3904 _ACEOF
    3905 if ac_fn_c_try_link "$LINENO"; then :
    3906   LIBS=$ac_save_LIBS
    3907 # We can link X programs with no special library path.
    3908 ac_x_libraries=
    3909 else
    3910   LIBS=$ac_save_LIBS
    3911 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
    3912 do
    3913   # Don't even attempt the hair of trying to link an X program!
    3914   for ac_extension in a so sl dylib la dll; do
    3915     if test -r "$ac_dir/libX11.$ac_extension"; then
    3916       ac_x_libraries=$ac_dir
    3917       break 2
    3918     fi
    3919   done
    3920 done
    3921 fi
    3922 rm -f core conftest.err conftest.$ac_objext \
    3923     conftest$ac_exeext conftest.$ac_ext
    3924 fi # $ac_x_libraries = no
    3925 
    3926 case $ac_x_includes,$ac_x_libraries in #(
    3927   no,* | *,no | *\'*)
    3928     # Didn't find X, or a directory has "'" in its name.
    3929     ac_cv_have_x="have_x=no";; #(
    3930   *)
    3931     # Record where we found X for the cache.
    3932     ac_cv_have_x="have_x=yes\
    3933         ac_x_includes='$ac_x_includes'\
    3934         ac_x_libraries='$ac_x_libraries'"
    3935 esac
    3936 fi
    3937 ;; #(
    3938     *) have_x=yes;;
    3939   esac
    3940   eval "$ac_cv_have_x"
    3941 fi # $with_x != no
    3942 
    3943 if test "$have_x" != yes; then
    3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
    3945 $as_echo "$have_x" >&6; }
    3946   no_x=yes
    3947 else
    3948   # If each of the values was on the command line, it overrides each guess.
    3949   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
    3950   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
    3951   # Update the cache value to reflect the command line values.
    3952   ac_cv_have_x="have_x=yes\
    3953         ac_x_includes='$x_includes'\
    3954         ac_x_libraries='$x_libraries'"
    3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
    3956 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
    3957 fi
    3958 
    3959 
    3960 X_INCLUDES=${x_includes}
    3961 X_LIBRARIES=${x_libraries}
    3962 
    3963 
    3964 
    3965 # Check for C, C++, and FORTRAN
    3966 ac_ext=c
    3967 ac_cpp='$CPP $CPPFLAGS'
    3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3971 if test -n "$ac_tool_prefix"; then
    3972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    3973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    3975 $as_echo_n "checking for $ac_word... " >&6; }
    3976 if ${ac_cv_prog_CC+:} false; then :
    3977   $as_echo_n "(cached) " >&6
    3978 else
    3979   if test -n "$CC"; then
    3980   ac_cv_prog_CC="$CC" # Let the user override the test.
    3981 else
    3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3983 for as_dir in $PATH
    3984 do
    3985   IFS=$as_save_IFS
    3986   test -z "$as_dir" && as_dir=.
    3987     for ac_exec_ext in '' $ac_executable_extensions; do
    3988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    3990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    3991     break 2
    3992   fi
    3993 done
    3994   done
    3995 IFS=$as_save_IFS
    3996 
    3997 fi
    3998 fi
    3999 CC=$ac_cv_prog_CC
    4000 if test -n "$CC"; then
    4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    4002 $as_echo "$CC" >&6; }
    4003 else
    4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4005 $as_echo "no" >&6; }
    4006 fi
    4007 
    4008 
    4009 fi
    4010 if test -z "$ac_cv_prog_CC"; then
    4011   ac_ct_CC=$CC
    4012   # Extract the first word of "gcc", so it can be a program name with args.
    4013 set dummy gcc; ac_word=$2
    4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    4015 $as_echo_n "checking for $ac_word... " >&6; }
    4016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    4017   $as_echo_n "(cached) " >&6
    4018 else
    4019   if test -n "$ac_ct_CC"; then
    4020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    4021 else
    4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4023 for as_dir in $PATH
    4024 do
    4025   IFS=$as_save_IFS
    4026   test -z "$as_dir" && as_dir=.
    4027     for ac_exec_ext in '' $ac_executable_extensions; do
    4028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4029     ac_cv_prog_ac_ct_CC="gcc"
    4030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    4031     break 2
    4032   fi
    4033 done
    4034   done
    4035 IFS=$as_save_IFS
    4036 
    4037 fi
    4038 fi
    4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    4040 if test -n "$ac_ct_CC"; then
    4041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    4042 $as_echo "$ac_ct_CC" >&6; }
    4043 else
    4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4045 $as_echo "no" >&6; }
    4046 fi
    4047 
    4048   if test "x$ac_ct_CC" = x; then
    4049     CC=""
    4050   else
    4051     case $cross_compiling:$ac_tool_warned in
    4052 yes:)
    4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    4055 ac_tool_warned=yes ;;
    4056 esac
    4057     CC=$ac_ct_CC
    4058   fi
    4059 else
    4060   CC="$ac_cv_prog_CC"
    4061 fi
    4062 
    4063 if test -z "$CC"; then
    4064           if test -n "$ac_tool_prefix"; then
    4065     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    4066 set dummy ${ac_tool_prefix}cc; ac_word=$2
    4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    4068 $as_echo_n "checking for $ac_word... " >&6; }
    4069 if ${ac_cv_prog_CC+:} false; then :
    4070   $as_echo_n "(cached) " >&6
    4071 else
    4072   if test -n "$CC"; then
    4073   ac_cv_prog_CC="$CC" # Let the user override the test.
    4074 else
    4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4076 for as_dir in $PATH
    4077 do
    4078   IFS=$as_save_IFS
    4079   test -z "$as_dir" && as_dir=.
    4080     for ac_exec_ext in '' $ac_executable_extensions; do
    4081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4082     ac_cv_prog_CC="${ac_tool_prefix}cc"
    4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    4084     break 2
    4085   fi
    4086 done
    4087   done
    4088 IFS=$as_save_IFS
    4089 
    4090 fi
    4091 fi
    4092 CC=$ac_cv_prog_CC
    4093 if test -n "$CC"; then
    4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    4095 $as_echo "$CC" >&6; }
    4096 else
    4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4098 $as_echo "no" >&6; }
    4099 fi
    4100 
    4101 
    4102   fi
    4103 fi
    4104 if test -z "$CC"; then
    4105   # Extract the first word of "cc", so it can be a program name with args.
    4106 set dummy cc; ac_word=$2
    4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    4108 $as_echo_n "checking for $ac_word... " >&6; }
    4109 if ${ac_cv_prog_CC+:} false; then :
    4110   $as_echo_n "(cached) " >&6
    4111 else
    4112   if test -n "$CC"; then
    4113   ac_cv_prog_CC="$CC" # Let the user override the test.
    4114 else
    4115   ac_prog_rejected=no
    4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4117 for as_dir in $PATH
    4118 do
    4119   IFS=$as_save_IFS
    4120   test -z "$as_dir" && as_dir=.
    4121     for ac_exec_ext in '' $ac_executable_extensions; do
    4122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4123     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    4124        ac_prog_rejected=yes
    4125        continue
    4126      fi
    4127     ac_cv_prog_CC="cc"
    4128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    4129     break 2
    4130   fi
    4131 done
    4132   done
    4133 IFS=$as_save_IFS
    4134 
    4135 if test $ac_prog_rejected = yes; then
    4136   # We found a bogon in the path, so make sure we never use it.
    4137   set dummy $ac_cv_prog_CC
    4138   shift
    4139   if test $# != 0; then
    4140     # We chose a different compiler from the bogus one.
    4141     # However, it has the same basename, so the bogon will be chosen
    4142     # first if we set CC to just the basename; use the full file name.
    4143     shift
    4144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    4145   fi
    4146 fi
    4147 fi
    4148 fi
    4149 CC=$ac_cv_prog_CC
    4150 if test -n "$CC"; then
    4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    4152 $as_echo "$CC" >&6; }
    4153 else
    4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4155 $as_echo "no" >&6; }
    4156 fi
    4157 
    4158 
    4159 fi
    4160 if test -z "$CC"; then
    4161   if test -n "$ac_tool_prefix"; then
    4162   for ac_prog in cl.exe
    4163   do
    4164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    4167 $as_echo_n "checking for $ac_word... " >&6; }
    4168 if ${ac_cv_prog_CC+:} false; then :
    4169   $as_echo_n "(cached) " >&6
    4170 else
    4171   if test -n "$CC"; then
    4172   ac_cv_prog_CC="$CC" # Let the user override the test.
    4173 else
    4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4175 for as_dir in $PATH
    4176 do
    4177   IFS=$as_save_IFS
    4178   test -z "$as_dir" && as_dir=.
    4179     for ac_exec_ext in '' $ac_executable_extensions; do
    4180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4181     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    4183     break 2
    4184   fi
    4185 done
    4186   done
    4187 IFS=$as_save_IFS
    4188 
    4189 fi
    4190 fi
    4191 CC=$ac_cv_prog_CC
    4192 if test -n "$CC"; then
    4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    4194 $as_echo "$CC" >&6; }
    4195 else
    4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4197 $as_echo "no" >&6; }
    4198 fi
    4199 
    4200 
    4201     test -n "$CC" && break
    4202   done
    4203 fi
    4204 if test -z "$CC"; then
    4205   ac_ct_CC=$CC
    4206   for ac_prog in cl.exe
    4207 do
    4208   # Extract the first word of "$ac_prog", so it can be a program name with args.
    4209 set dummy $ac_prog; ac_word=$2
    4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    4211 $as_echo_n "checking for $ac_word... " >&6; }
    4212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    4213   $as_echo_n "(cached) " >&6
    4214 else
    4215   if test -n "$ac_ct_CC"; then
    4216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    4217 else
    4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4219 for as_dir in $PATH
    4220 do
    4221   IFS=$as_save_IFS
    4222   test -z "$as_dir" && as_dir=.
    4223     for ac_exec_ext in '' $ac_executable_extensions; do
    4224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4225     ac_cv_prog_ac_ct_CC="$ac_prog"
    4226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    4227     break 2
    4228   fi
    4229 done
    4230   done
    4231 IFS=$as_save_IFS
    4232 
    4233 fi
    4234 fi
    4235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    4236 if test -n "$ac_ct_CC"; then
    4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    4238 $as_echo "$ac_ct_CC" >&6; }
    4239 else
    4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    4241 $as_echo "no" >&6; }
    4242 fi
    4243 
    4244 
    4245   test -n "$ac_ct_CC" && break
    4246 done
    4247 
    4248   if test "x$ac_ct_CC" = x; then
    4249     CC=""
    4250   else
    4251     case $cross_compiling:$ac_tool_warned in
    4252 yes:)
    4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    4255 ac_tool_warned=yes ;;
    4256 esac
    4257     CC=$ac_ct_CC
    4258   fi
    4259 fi
    4260 
    4261 fi
    4262 
    4263 
    4264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    4266 as_fn_error $? "no acceptable C compiler found in \$PATH
    4267 See \`config.log' for more details" "$LINENO" 5; }
    4268 
    4269 # Provide some information about the compiler.
    4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    4271 set X $ac_compile
    4272 ac_compiler=$2
    4273 for ac_option in --version -v -V -qversion; do
    4274   { { ac_try="$ac_compiler $ac_option >&5"
    4275 case "(($ac_try" in
    4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4277   *) ac_try_echo=$ac_try;;
    4278 esac
    4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    4280 $as_echo "$ac_try_echo"; } >&5
    4281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    4282   ac_status=$?
    4283   if test -s conftest.err; then
    4284     sed '10a\
    4285 ... rest of stderr output deleted ...
    4286          10q' conftest.err >conftest.er1
    4287     cat conftest.er1 >&5
    4288   fi
    4289   rm -f conftest.er1 conftest.err
    4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    4291   test $ac_status = 0; }
    4292 done
    4293 
    4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    4296 if ${ac_cv_c_compiler_gnu+:} false; then :
    4297   $as_echo_n "(cached) " >&6
    4298 else
    4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4300 /* end confdefs.h.  */
    4301 
    4302 int
    4303 main ()
    4304 {
    4305 #ifndef __GNUC__
    4306        choke me
    4307 #endif
    4308 
    4309   ;
    4310   return 0;
    4311 }
    4312 _ACEOF
    4313 if ac_fn_c_try_compile "$LINENO"; then :
    4314   ac_compiler_gnu=yes
    4315 else
    4316   ac_compiler_gnu=no
    4317 fi
    4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    4320 
    4321 fi
    4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
    4324 if test $ac_compiler_gnu = yes; then
    4325   GCC=yes
    4326 else
    4327   GCC=
    4328 fi
    4329 ac_test_CFLAGS=${CFLAGS+set}
    4330 ac_save_CFLAGS=$CFLAGS
    4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
    4333 if ${ac_cv_prog_cc_g+:} false; then :
    4334   $as_echo_n "(cached) " >&6
    4335 else
    4336   ac_save_c_werror_flag=$ac_c_werror_flag
    4337    ac_c_werror_flag=yes
    4338    ac_cv_prog_cc_g=no
    4339    CFLAGS="-g"
    4340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4341 /* end confdefs.h.  */
    4342 
    4343 int
    4344 main ()
    4345 {
    4346 
    4347   ;
    4348   return 0;
    4349 }
    4350 _ACEOF
    4351 if ac_fn_c_try_compile "$LINENO"; then :
    4352   ac_cv_prog_cc_g=yes
    4353 else
    4354   CFLAGS=""
    4355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4356 /* end confdefs.h.  */
    4357 
    4358 int
    4359 main ()
    4360 {
    4361 
    4362   ;
    4363   return 0;
    4364 }
    4365 _ACEOF
    4366 if ac_fn_c_try_compile "$LINENO"; then :
    4367 
    4368 else
    4369   ac_c_werror_flag=$ac_save_c_werror_flag
    4370          CFLAGS="-g"
    4371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4372 /* end confdefs.h.  */
    4373 
    4374 int
    4375 main ()
    4376 {
    4377 
    4378   ;
    4379   return 0;
    4380 }
    4381 _ACEOF
    4382 if ac_fn_c_try_compile "$LINENO"; then :
    4383   ac_cv_prog_cc_g=yes
    4384 fi
    4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4386 fi
    4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4388 fi
    4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4390    ac_c_werror_flag=$ac_save_c_werror_flag
    4391 fi
    4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
    4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
    4394 if test "$ac_test_CFLAGS" = set; then
    4395   CFLAGS=$ac_save_CFLAGS
    4396 elif test $ac_cv_prog_cc_g = yes; then
    4397   if test "$GCC" = yes; then
    4398     CFLAGS="-g -O2"
    4399   else
    4400     CFLAGS="-g"
    4401   fi
    4402 else
    4403   if test "$GCC" = yes; then
    4404     CFLAGS="-O2"
    4405   else
    4406     CFLAGS=
    4407   fi
    4408 fi
    4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    4411 if ${ac_cv_prog_cc_c89+:} false; then :
    4412   $as_echo_n "(cached) " >&6
    4413 else
    4414   ac_cv_prog_cc_c89=no
    4415 ac_save_CC=$CC
    4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4417 /* end confdefs.h.  */
    4418 #include <stdarg.h>
    4419 #include <stdio.h>
    4420 struct stat;
    4421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    4422 struct buf { int x; };
    4423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    4424 static char *e (p, i)
    4425      char **p;
    4426      int i;
    4427 {
    4428   return p[i];
    4429 }
    4430 static char *f (char * (*g) (char **, int), char **p, ...)
    4431 {
    4432   char *s;
    4433   va_list v;
    4434   va_start (v,p);
    4435   s = g (p, va_arg (v,int));
    4436   va_end (v);
    4437   return s;
    4438 }
    4439 
    4440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    4441    function prototypes and stuff, but not '\xHH' hex character constants.
    4442    These don't provoke an error unfortunately, instead are silently treated
    4443    as 'x'.  The following induces an error, until -std is added to get
    4444    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    4445    array size at least.  It's necessary to write '\x00'==0 to get something
    4446    that's true only with -std.  */
    4447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    4448 
    4449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    4450    inside strings and character constants.  */
    4451 #define FOO(x) 'x'
    4452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    4453 
    4454 int test (int i, double x);
    4455 struct s1 {int (*f) (int a);};
    4456 struct s2 {int (*f) (double a);};
    4457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    4458 int argc;
    4459 char **argv;
    4460 int
    4461 main ()
    4462 {
    4463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    4464   ;
    4465   return 0;
    4466 }
    4467 _ACEOF
    4468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
    4469         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    4470 do
    4471   CC="$ac_save_CC $ac_arg"
    4472   if ac_fn_c_try_compile "$LINENO"; then :
    4473   ac_cv_prog_cc_c89=$ac_arg
    4474 fi
    4475 rm -f core conftest.err conftest.$ac_objext
    4476   test "x$ac_cv_prog_cc_c89" != "xno" && break
    4477 done
    4478 rm -f conftest.$ac_ext
    4479 CC=$ac_save_CC
    4480 
    4481 fi
    4482 # AC_CACHE_VAL
    4483 case "x$ac_cv_prog_cc_c89" in
    4484   x)
    4485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
    4486 $as_echo "none needed" >&6; } ;;
    4487   xno)
    4488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
    4489 $as_echo "unsupported" >&6; } ;;
    4490   *)
    4491     CC="$CC $ac_cv_prog_cc_c89"
    4492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
    4493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    4494 esac
    4495 if test "x$ac_cv_prog_cc_c89" != xno; then :
    4496 
    4497 fi
    4498 
    4499 ac_ext=c
    4500 ac_cpp='$CPP $CPPFLAGS'
    4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4504 
    45053875ac_ext=cpp
    45063876ac_cpp='$CXXCPP $CPPFLAGS'
     
    49724342ac_compiler_gnu=$ac_cv_c_compiler_gnu
    49734343
     4344
     4345ac_ext=c
     4346ac_cpp='$CPP $CPPFLAGS'
     4347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4349ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4350
     4351
     4352
     4353ac_ext=c
     4354ac_cpp='$CPP $CPPFLAGS'
     4355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4357ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     4359$as_echo_n "checking how to run the C preprocessor... " >&6; }
     4360# On Suns, sometimes $CPP names a directory.
     4361if test -n "$CPP" && test -d "$CPP"; then
     4362  CPP=
     4363fi
     4364if test -z "$CPP"; then
     4365  if ${ac_cv_prog_CPP+:} false; then :
     4366  $as_echo_n "(cached) " >&6
     4367else
     4368      # Double quotes because CPP needs to be expanded
     4369    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     4370    do
     4371      ac_preproc_ok=false
     4372for ac_c_preproc_warn_flag in '' yes
     4373do
     4374  # Use a header file that comes with gcc, so configuring glibc
     4375  # with a fresh cross-compiler works.
     4376  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4377  # <limits.h> exists even on freestanding compilers.
     4378  # On the NeXT, cc -E runs the code through the compiler's parser,
     4379  # not just through cpp. "Syntax error" is here to catch this case.
     4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4381/* end confdefs.h.  */
     4382#ifdef __STDC__
     4383# include <limits.h>
     4384#else
     4385# include <assert.h>
     4386#endif
     4387                     Syntax error
     4388_ACEOF
     4389if ac_fn_c_try_cpp "$LINENO"; then :
     4390
     4391else
     4392  # Broken: fails on valid input.
     4393continue
     4394fi
     4395rm -f conftest.err conftest.i conftest.$ac_ext
     4396
     4397  # OK, works on sane cases.  Now check whether nonexistent headers
     4398  # can be detected and how.
     4399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4400/* end confdefs.h.  */
     4401#include <ac_nonexistent.h>
     4402_ACEOF
     4403if ac_fn_c_try_cpp "$LINENO"; then :
     4404  # Broken: success on invalid input.
     4405continue
     4406else
     4407  # Passes both tests.
     4408ac_preproc_ok=:
     4409break
     4410fi
     4411rm -f conftest.err conftest.i conftest.$ac_ext
     4412
     4413done
     4414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     4415rm -f conftest.i conftest.err conftest.$ac_ext
     4416if $ac_preproc_ok; then :
     4417  break
     4418fi
     4419
     4420    done
     4421    ac_cv_prog_CPP=$CPP
     4422
     4423fi
     4424  CPP=$ac_cv_prog_CPP
     4425else
     4426  ac_cv_prog_CPP=$CPP
     4427fi
     4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     4429$as_echo "$CPP" >&6; }
     4430ac_preproc_ok=false
     4431for ac_c_preproc_warn_flag in '' yes
     4432do
     4433  # Use a header file that comes with gcc, so configuring glibc
     4434  # with a fresh cross-compiler works.
     4435  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4436  # <limits.h> exists even on freestanding compilers.
     4437  # On the NeXT, cc -E runs the code through the compiler's parser,
     4438  # not just through cpp. "Syntax error" is here to catch this case.
     4439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4440/* end confdefs.h.  */
     4441#ifdef __STDC__
     4442# include <limits.h>
     4443#else
     4444# include <assert.h>
     4445#endif
     4446                     Syntax error
     4447_ACEOF
     4448if ac_fn_c_try_cpp "$LINENO"; then :
     4449
     4450else
     4451  # Broken: fails on valid input.
     4452continue
     4453fi
     4454rm -f conftest.err conftest.i conftest.$ac_ext
     4455
     4456  # OK, works on sane cases.  Now check whether nonexistent headers
     4457  # can be detected and how.
     4458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4459/* end confdefs.h.  */
     4460#include <ac_nonexistent.h>
     4461_ACEOF
     4462if ac_fn_c_try_cpp "$LINENO"; then :
     4463  # Broken: success on invalid input.
     4464continue
     4465else
     4466  # Passes both tests.
     4467ac_preproc_ok=:
     4468break
     4469fi
     4470rm -f conftest.err conftest.i conftest.$ac_ext
     4471
     4472done
     4473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     4474rm -f conftest.i conftest.err conftest.$ac_ext
     4475if $ac_preproc_ok; then :
     4476
     4477else
     4478  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4480as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     4481See \`config.log' for more details" "$LINENO" 5; }
     4482fi
    49744483
    49754484ac_ext=c
     
    52224731fi
    52234732
     4733ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
     4734if test "x$ac_cv_func_atol" = xyes; then :
     4735
     4736else
     4737  as_fn_error $? "oops! no atol ?!?" "$LINENO" 5
     4738fi
     4739
     4740
    52244741ac_ext=cpp
    52254742ac_cpp='$CXXCPP $CPPFLAGS'
     
    52304747
    52314748
    5232 if test -n "$ac_tool_prefix"; then
    5233   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    5234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    5236 $as_echo_n "checking for $ac_word... " >&6; }
    5237 if ${ac_cv_prog_RANLIB+:} false; then :
    5238   $as_echo_n "(cached) " >&6
    5239 else
    5240   if test -n "$RANLIB"; then
    5241   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    5242 else
    5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5244 for as_dir in $PATH
    5245 do
    5246   IFS=$as_save_IFS
    5247   test -z "$as_dir" && as_dir=.
    5248     for ac_exec_ext in '' $ac_executable_extensions; do
    5249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5250     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    5251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    5252     break 2
    5253   fi
    5254 done
    5255   done
    5256 IFS=$as_save_IFS
    5257 
    5258 fi
    5259 fi
    5260 RANLIB=$ac_cv_prog_RANLIB
    5261 if test -n "$RANLIB"; then
    5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    5263 $as_echo "$RANLIB" >&6; }
    5264 else
    5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    5266 $as_echo "no" >&6; }
    5267 fi
    5268 
    5269 
    5270 fi
    5271 if test -z "$ac_cv_prog_RANLIB"; then
    5272   ac_ct_RANLIB=$RANLIB
    5273   # Extract the first word of "ranlib", so it can be a program name with args.
    5274 set dummy ranlib; ac_word=$2
    5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    5276 $as_echo_n "checking for $ac_word... " >&6; }
    5277 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    5278   $as_echo_n "(cached) " >&6
    5279 else
    5280   if test -n "$ac_ct_RANLIB"; then
    5281   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    5282 else
    5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5284 for as_dir in $PATH
    5285 do
    5286   IFS=$as_save_IFS
    5287   test -z "$as_dir" && as_dir=.
    5288     for ac_exec_ext in '' $ac_executable_extensions; do
    5289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5290     ac_cv_prog_ac_ct_RANLIB="ranlib"
    5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    5292     break 2
    5293   fi
    5294 done
    5295   done
    5296 IFS=$as_save_IFS
    5297 
    5298 fi
    5299 fi
    5300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    5301 if test -n "$ac_ct_RANLIB"; then
    5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    5303 $as_echo "$ac_ct_RANLIB" >&6; }
    5304 else
    5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    5306 $as_echo "no" >&6; }
    5307 fi
    5308 
    5309   if test "x$ac_ct_RANLIB" = x; then
    5310     RANLIB=":"
    5311   else
    5312     case $cross_compiling:$ac_tool_warned in
    5313 yes:)
    5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    5316 ac_tool_warned=yes ;;
    5317 esac
    5318     RANLIB=$ac_ct_RANLIB
    5319   fi
    5320 else
    5321   RANLIB="$ac_cv_prog_RANLIB"
    5322 fi
     4749for ac_func in sysinfo
     4750do :
     4751  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
     4752if test "x$ac_cv_func_sysinfo" = xyes; then :
     4753  cat >>confdefs.h <<_ACEOF
     4754#define HAVE_SYSINFO 1
     4755_ACEOF
     4756
     4757fi
     4758done
     4759
     4760for ac_func in gettimeofday
     4761do :
     4762  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
     4763if test "x$ac_cv_func_gettimeofday" = xyes; then :
     4764  cat >>confdefs.h <<_ACEOF
     4765#define HAVE_GETTIMEOFDAY 1
     4766_ACEOF
     4767
     4768fi
     4769done
     4770
     4771ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
     4772if test "x$ac_cv_func_localtime" = xyes; then :
     4773
     4774else
     4775  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
     4776fi
     4777
     4778ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
     4779if test "x$ac_cv_func_getenv" = xyes; then :
     4780
     4781else
     4782  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
     4783fi
     4784
    53234785
    53244786ac_ext=cpp
     
    54714933
    54724934done
     4935
     4936
     4937for ac_header in sys/sysinfo.h
     4938do :
     4939  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
     4940if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
     4941  cat >>confdefs.h <<_ACEOF
     4942#define HAVE_SYS_SYSINFO_H 1
     4943_ACEOF
     4944
     4945fi
     4946
     4947done
     4948
     4949
     4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
     4951$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
     4952if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
     4953  $as_echo_n "(cached) " >&6
     4954else
     4955  ac_check_lib_save_LIBS=$LIBS
     4956LIBS="-lncurses  $LIBS"
     4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4958/* end confdefs.h.  */
     4959
     4960/* Override any GCC internal prototype to avoid an error.
     4961   Use char because int might match the return type of a GCC
     4962   builtin and then its argument prototype would still apply.  */
     4963#ifdef __cplusplus
     4964extern "C"
     4965#endif
     4966char clrtoeol ();
     4967int
     4968main ()
     4969{
     4970return clrtoeol ();
     4971  ;
     4972  return 0;
     4973}
     4974_ACEOF
     4975if ac_fn_cxx_try_link "$LINENO"; then :
     4976  ac_cv_lib_ncurses_clrtoeol=yes
     4977else
     4978  ac_cv_lib_ncurses_clrtoeol=no
     4979fi
     4980rm -f core conftest.err conftest.$ac_objext \
     4981    conftest$ac_exeext conftest.$ac_ext
     4982LIBS=$ac_check_lib_save_LIBS
     4983fi
     4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
     4985$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
     4986if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
     4987  cat >>confdefs.h <<_ACEOF
     4988#define HAVE_LIBNCURSES 1
     4989_ACEOF
     4990
     4991  LIBS="-lncurses $LIBS"
     4992
     4993else
     4994  as_fn_error $? "ncurses library missing?" "$LINENO" 5
     4995fi
     4996
     4997for ac_header in ncurses.h
     4998do :
     4999  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
     5000if test "x$ac_cv_header_ncurses_h" = xyes; then :
     5001  cat >>confdefs.h <<_ACEOF
     5002#define HAVE_NCURSES_H 1
     5003_ACEOF
     5004
     5005else
     5006  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
     5007$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
     5008fi
     5009
     5010done
     5011
     5012
     5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
     5014$as_echo_n "checking for main in -lstdc++... " >&6; }
     5015if ${ac_cv_lib_stdcpp_main+:} false; then :
     5016  $as_echo_n "(cached) " >&6
     5017else
     5018  ac_check_lib_save_LIBS=$LIBS
     5019LIBS="-lstdc++  $LIBS"
     5020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5021/* end confdefs.h.  */
     5022
     5023
     5024int
     5025main ()
     5026{
     5027return main ();
     5028  ;
     5029  return 0;
     5030}
     5031_ACEOF
     5032if ac_fn_cxx_try_link "$LINENO"; then :
     5033  ac_cv_lib_stdcpp_main=yes
     5034else
     5035  ac_cv_lib_stdcpp_main=no
     5036fi
     5037rm -f core conftest.err conftest.$ac_objext \
     5038    conftest$ac_exeext conftest.$ac_ext
     5039LIBS=$ac_check_lib_save_LIBS
     5040fi
     5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
     5042$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
     5043if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
     5044  cat >>confdefs.h <<_ACEOF
     5045#define HAVE_LIBSTDC__ 1
     5046_ACEOF
     5047
     5048  LIBS="-lstdc++ $LIBS"
     5049
     5050else
     5051  as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
     5052fi
     5053
     5054for ac_header in algorithm
     5055do :
     5056  ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
     5057if test "x$ac_cv_header_algorithm" = xyes; then :
     5058  cat >>confdefs.h <<_ACEOF
     5059#define HAVE_ALGORITHM 1
     5060_ACEOF
     5061
     5062else
     5063  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5064$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5065fi
     5066
     5067done
     5068
     5069for ac_header in cctype
     5070do :
     5071  ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
     5072if test "x$ac_cv_header_cctype" = xyes; then :
     5073  cat >>confdefs.h <<_ACEOF
     5074#define HAVE_CCTYPE 1
     5075_ACEOF
     5076
     5077else
     5078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5079$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5080fi
     5081
     5082done
     5083
     5084for ac_header in cfloat
     5085do :
     5086  ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
     5087if test "x$ac_cv_header_cfloat" = xyes; then :
     5088  cat >>confdefs.h <<_ACEOF
     5089#define HAVE_CFLOAT 1
     5090_ACEOF
     5091
     5092else
     5093  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5094$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5095fi
     5096
     5097done
     5098
     5099for ac_header in cmath
     5100do :
     5101  ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
     5102if test "x$ac_cv_header_cmath" = xyes; then :
     5103  cat >>confdefs.h <<_ACEOF
     5104#define HAVE_CMATH 1
     5105_ACEOF
     5106
     5107else
     5108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5109$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5110fi
     5111
     5112done
     5113
     5114for ac_header in cstdio
     5115do :
     5116  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
     5117if test "x$ac_cv_header_cstdio" = xyes; then :
     5118  cat >>confdefs.h <<_ACEOF
     5119#define HAVE_CSTDIO 1
     5120_ACEOF
     5121
     5122else
     5123  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5124$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5125fi
     5126
     5127done
     5128
     5129for ac_header in cstdlib
     5130do :
     5131  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
     5132if test "x$ac_cv_header_cstdlib" = xyes; then :
     5133  cat >>confdefs.h <<_ACEOF
     5134#define HAVE_CSTDLIB 1
     5135_ACEOF
     5136
     5137else
     5138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5139$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5140fi
     5141
     5142done
     5143
     5144for ac_header in cstring
     5145do :
     5146  ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
     5147if test "x$ac_cv_header_cstring" = xyes; then :
     5148  cat >>confdefs.h <<_ACEOF
     5149#define HAVE_CSTRING 1
     5150_ACEOF
     5151
     5152else
     5153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5154$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5155fi
     5156
     5157done
     5158
     5159for ac_header in fstream
     5160do :
     5161  ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
     5162if test "x$ac_cv_header_fstream" = xyes; then :
     5163  cat >>confdefs.h <<_ACEOF
     5164#define HAVE_FSTREAM 1
     5165_ACEOF
     5166
     5167else
     5168  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5169$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5170fi
     5171
     5172done
     5173
     5174for ac_header in list
     5175do :
     5176  ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
     5177if test "x$ac_cv_header_list" = xyes; then :
     5178  cat >>confdefs.h <<_ACEOF
     5179#define HAVE_LIST 1
     5180_ACEOF
     5181
     5182else
     5183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5184$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5185fi
     5186
     5187done
     5188
     5189for ac_header in iostream
     5190do :
     5191  ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
     5192if test "x$ac_cv_header_iostream" = xyes; then :
     5193  cat >>confdefs.h <<_ACEOF
     5194#define HAVE_IOSTREAM 1
     5195_ACEOF
     5196
     5197else
     5198  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5199$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5200fi
     5201
     5202done
     5203
     5204for ac_header in iterator
     5205do :
     5206  ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
     5207if test "x$ac_cv_header_iterator" = xyes; then :
     5208  cat >>confdefs.h <<_ACEOF
     5209#define HAVE_ITERATOR 1
     5210_ACEOF
     5211
     5212else
     5213  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5214$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5215fi
     5216
     5217done
     5218
     5219for ac_header in sstream
     5220do :
     5221  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
     5222if test "x$ac_cv_header_sstream" = xyes; then :
     5223  cat >>confdefs.h <<_ACEOF
     5224#define HAVE_SSTREAM 1
     5225_ACEOF
     5226
     5227else
     5228  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5229$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5230fi
     5231
     5232done
     5233
     5234for ac_header in stack
     5235do :
     5236  ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
     5237if test "x$ac_cv_header_stack" = xyes; then :
     5238  cat >>confdefs.h <<_ACEOF
     5239#define HAVE_STACK 1
     5240_ACEOF
     5241
     5242else
     5243  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5244$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5245fi
     5246
     5247done
     5248
     5249for ac_header in string
     5250do :
     5251  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
     5252if test "x$ac_cv_header_string" = xyes; then :
     5253  cat >>confdefs.h <<_ACEOF
     5254#define HAVE_STRING 1
     5255_ACEOF
     5256
     5257else
     5258  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5259$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5260fi
     5261
     5262done
     5263
     5264for ac_header in vector
     5265do :
     5266  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
     5267if test "x$ac_cv_header_vector" = xyes; then :
     5268  cat >>confdefs.h <<_ACEOF
     5269#define HAVE_VECTOR 1
     5270_ACEOF
     5271
     5272else
     5273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5274$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5275fi
     5276
     5277done
     5278
     5279
     5280for ac_header in assert.h
     5281do :
     5282  ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
     5283if test "x$ac_cv_header_assert_h" = xyes; then :
     5284  cat >>confdefs.h <<_ACEOF
     5285#define HAVE_ASSERT_H 1
     5286_ACEOF
     5287
     5288else
     5289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5290$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5291fi
     5292
     5293done
     5294
     5295for ac_header in ctype.h
     5296do :
     5297  ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
     5298if test "x$ac_cv_header_ctype_h" = xyes; then :
     5299  cat >>confdefs.h <<_ACEOF
     5300#define HAVE_CTYPE_H 1
     5301_ACEOF
     5302
     5303else
     5304  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5305$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5306fi
     5307
     5308done
     5309
     5310for ac_header in errno.h
     5311do :
     5312  ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
     5313if test "x$ac_cv_header_errno_h" = xyes; then :
     5314  cat >>confdefs.h <<_ACEOF
     5315#define HAVE_ERRNO_H 1
     5316_ACEOF
     5317
     5318else
     5319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5320$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5321fi
     5322
     5323done
     5324
     5325for ac_header in limits.h
     5326do :
     5327  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
     5328if test "x$ac_cv_header_limits_h" = xyes; then :
     5329  cat >>confdefs.h <<_ACEOF
     5330#define HAVE_LIMITS_H 1
     5331_ACEOF
     5332
     5333else
     5334  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5335$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5336fi
     5337
     5338done
     5339
     5340for ac_header in string.h
     5341do :
     5342  ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
     5343if test "x$ac_cv_header_string_h" = xyes; then :
     5344  cat >>confdefs.h <<_ACEOF
     5345#define HAVE_STRING_H 1
     5346_ACEOF
     5347
     5348else
     5349  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5350$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5351fi
     5352
     5353done
     5354
     5355for ac_header in stdlib.h
     5356do :
     5357  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
     5358if test "x$ac_cv_header_stdlib_h" = xyes; then :
     5359  cat >>confdefs.h <<_ACEOF
     5360#define HAVE_STDLIB_H 1
     5361_ACEOF
     5362
     5363else
     5364  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5365$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5366fi
     5367
     5368done
     5369
     5370for ac_header in stddef.h
     5371do :
     5372  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
     5373if test "x$ac_cv_header_stddef_h" = xyes; then :
     5374  cat >>confdefs.h <<_ACEOF
     5375#define HAVE_STDDEF_H 1
     5376_ACEOF
     5377
     5378else
     5379  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5380$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5381fi
     5382
     5383done
     5384
     5385for ac_header in float.h
     5386do :
     5387  ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
     5388if test "x$ac_cv_header_float_h" = xyes; then :
     5389  cat >>confdefs.h <<_ACEOF
     5390#define HAVE_FLOAT_H 1
     5391_ACEOF
     5392
     5393else
     5394  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5395$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5396fi
     5397
     5398done
     5399
     5400for ac_header in math.h
     5401do :
     5402  ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
     5403if test "x$ac_cv_header_math_h" = xyes; then :
     5404  cat >>confdefs.h <<_ACEOF
     5405#define HAVE_MATH_H 1
     5406_ACEOF
     5407
     5408else
     5409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5410$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5411fi
     5412
     5413done
     5414
     5415for ac_header in malloc.h
     5416do :
     5417  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
     5418if test "x$ac_cv_header_malloc_h" = xyes; then :
     5419  cat >>confdefs.h <<_ACEOF
     5420#define HAVE_MALLOC_H 1
     5421_ACEOF
     5422
     5423else
     5424  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5425$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5426fi
     5427
     5428done
     5429
     5430for ac_header in memory.h
     5431do :
     5432  ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
     5433if test "x$ac_cv_header_memory_h" = xyes; then :
     5434  cat >>confdefs.h <<_ACEOF
     5435#define HAVE_MEMORY_H 1
     5436_ACEOF
     5437
     5438else
     5439  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5440$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5441fi
     5442
     5443done
     5444
     5445for ac_header in unistd.h
     5446do :
     5447  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
     5448if test "x$ac_cv_header_unistd_h" = xyes; then :
     5449  cat >>confdefs.h <<_ACEOF
     5450#define HAVE_UNISTD_H 1
     5451_ACEOF
     5452
     5453else
     5454  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5455$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5456fi
     5457
     5458done
     5459
     5460
     5461for ac_header in inttypes.h
     5462do :
     5463  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
     5464if test "x$ac_cv_header_inttypes_h" = xyes; then :
     5465  cat >>confdefs.h <<_ACEOF
     5466#define HAVE_INTTYPES_H 1
     5467_ACEOF
     5468
     5469else
     5470  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5471$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5472fi
     5473
     5474done
     5475
     5476if test "${ac_cv_header_inttypes_h}" = "yes" ; then
     5477  HAVE_INTTYPES_H=1
     5478else
     5479  HAVE_INTTYPES_H=0
     5480fi
    54735481
    54745482
     
    73017309fi
    73027310
     7311# Check whether --enable-lang was given.
     7312if test "${enable_lang+set}" = set; then :
     7313  enableval=$enable_lang;
     7314else
     7315  enable_lang=yes
     7316fi
     7317
     7318
     7319ENABLE_LANG=
     7320if test "$enable_lang" != "no" ; then
     7321    ENABLE_LANG="yes"
     7322fi
     7323
    73037324# Check whether --enable-gui was given.
    73047325if test "${enable_gui+set}" = set; then :
     
    73257346done
    73267347
     7348
     7349# Check whether --with-ffmpeg was given.
     7350if test "${with_ffmpeg+set}" = set; then :
     7351  withval=$with_ffmpeg;
     7352else
     7353  with_ffmpeg=yes
     7354fi
     7355
     7356
     7357
     7358# Check whether --with-tclsh was given.
     7359if test "${with_tclsh+set}" = set; then :
     7360  withval=$with_tclsh;
     7361else
     7362  with_tclsh=yes
     7363fi
     7364
     7365
     7366TCLSH=""
     7367if test "${with_tclsh}" != "no" ; then
     7368  tclsh="tclsh${TCL_VERSION}"
     7369  if test "${with_tclsh}" = "yes" ; then
     7370    # Extract the first word of "${tclsh}", so it can be a program name with args.
     7371set dummy ${tclsh}; ac_word=$2
     7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7373$as_echo_n "checking for $ac_word... " >&6; }
     7374if ${ac_cv_path_TCLSH+:} false; then :
     7375  $as_echo_n "(cached) " >&6
     7376else
     7377  case $TCLSH in
     7378  [\\/]* | ?:[\\/]*)
     7379  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
     7380  ;;
     7381  *)
     7382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7383as_dummy="${exec_prefix}/bin:${PATH}"
     7384for as_dir in $as_dummy
     7385do
     7386  IFS=$as_save_IFS
     7387  test -z "$as_dir" && as_dir=.
     7388    for ac_exec_ext in '' $ac_executable_extensions; do
     7389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7390    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
     7391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7392    break 2
     7393  fi
     7394done
     7395  done
     7396IFS=$as_save_IFS
     7397
     7398  ;;
     7399esac
     7400fi
     7401TCLSH=$ac_cv_path_TCLSH
     7402if test -n "$TCLSH"; then
     7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
     7404$as_echo "$TCLSH" >&6; }
     7405else
     7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7407$as_echo "no" >&6; }
     7408fi
     7409
     7410
     7411  else
     7412    # Extract the first word of "${tclsh}", so it can be a program name with args.
     7413set dummy ${tclsh}; ac_word=$2
     7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7415$as_echo_n "checking for $ac_word... " >&6; }
     7416if ${ac_cv_path_TCLSH+:} false; then :
     7417  $as_echo_n "(cached) " >&6
     7418else
     7419  case $TCLSH in
     7420  [\\/]* | ?:[\\/]*)
     7421  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
     7422  ;;
     7423  *)
     7424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7425as_dummy="${with_tclsh}/bin:${with_tclsh}"
     7426for as_dir in $as_dummy
     7427do
     7428  IFS=$as_save_IFS
     7429  test -z "$as_dir" && as_dir=.
     7430    for ac_exec_ext in '' $ac_executable_extensions; do
     7431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7432    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
     7433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7434    break 2
     7435  fi
     7436done
     7437  done
     7438IFS=$as_save_IFS
     7439
     7440  ;;
     7441esac
     7442fi
     7443TCLSH=$ac_cv_path_TCLSH
     7444if test -n "$TCLSH"; then
     7445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
     7446$as_echo "$TCLSH" >&6; }
     7447else
     7448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7449$as_echo "no" >&6; }
     7450fi
     7451
     7452
     7453  fi
     7454  if test "x${TCLSH}" = "x" ; then
     7455    as_fn_error $? "can't find tclsh" "$LINENO" 5
     7456  fi
     7457fi
     7458
     7459
     7460TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
     7461
     7462
     7463# Check whether --with-vtk was given.
     7464if test "${with_vtk+set}" = set; then :
     7465  withval=$with_vtk;
     7466else
     7467  with_vtk=yes
     7468fi
     7469
     7470
     7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5
     7472$as_echo_n "checking for vtk... " >&6; }
     7473VTK_VERSION=6.0
     7474VTK_TCL_DIR=""
     7475
     7476if test "$with_vtk" != "no" ; then
     7477  if test "$with_vtk" != "yes" ; then
     7478    VTK_VERSION=$with_vtk
     7479  fi
     7480  if test "x$with_vtk" != "x" ; then
     7481    for path in \
     7482     $libdir/tcltk \
     7483     $exec_prefix/lib/tcltk \
     7484     $prefix/lib/tcltk \
     7485     $libdir \
     7486     $prefix/lib \
     7487     $exec_prefix/lib \
     7488     /usr/lib
     7489    do
     7490      if test -d "$path/vtk-$VTK_VERSION" ; then
     7491        VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
     7492      fi
     7493      if test "x${VTK_TCL_DIR}" != "x" ; then
     7494        break
     7495      fi
     7496    done
     7497  fi
     7498else
     7499  if test "${ENABLE_GUI}" = "yes" ; then
     7500    as_fn_error $? "Rappture GUI requires VTK" "$LINENO" 5
     7501  fi
     7502fi
     7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&5
     7504$as_echo "$VTK_TCL_DIR" >&6; }
     7505
     7506# Check whether --enable-vtkdicom was given.
     7507if test "${enable_vtkdicom+set}" = set; then :
     7508  enableval=$enable_vtkdicom;
     7509else
     7510  enable_vtkdicom=no
     7511fi
     7512
     7513
     7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5
     7515$as_echo_n "checking for vtkDICOM... " >&6; }
     7516ENABLE_VTK_DICOM=
     7517if test "$enable_vtkdicom" != "no" ; then
     7518    ENABLE_VTK_DICOM="yes"
     7519fi
     7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5
     7521$as_echo "$enable_vtkdicom" >&6; }
     7522
     7523
     7524
     7525# Check whether --with-matlab was given.
     7526if test "${with_matlab+set}" = set; then :
     7527  withval=$with_matlab;
     7528else
     7529  with_matlab=yes
     7530fi
     7531
     7532
     7533MCC=""
     7534MEX=""
     7535MEX_ARCH=""
     7536MEXEXT=""
     7537MATLAB=
     7538if test "$with_matlab" != "no" ; then
     7539  if test "$with_matlab" = "yes" ; then
     7540    # Extract the first word of "matlab", so it can be a program name with args.
     7541set dummy matlab; ac_word=$2
     7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7543$as_echo_n "checking for $ac_word... " >&6; }
     7544if ${ac_cv_path_MATLAB+:} false; then :
     7545  $as_echo_n "(cached) " >&6
     7546else
     7547  case $MATLAB in
     7548  [\\/]* | ?:[\\/]*)
     7549  ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
     7550  ;;
     7551  *)
     7552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7553for as_dir in $PATH
     7554do
     7555  IFS=$as_save_IFS
     7556  test -z "$as_dir" && as_dir=.
     7557    for ac_exec_ext in '' $ac_executable_extensions; do
     7558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7559    ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
     7560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7561    break 2
     7562  fi
     7563done
     7564  done
     7565IFS=$as_save_IFS
     7566
     7567  ;;
     7568esac
     7569fi
     7570MATLAB=$ac_cv_path_MATLAB
     7571if test -n "$MATLAB"; then
     7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
     7573$as_echo "$MATLAB" >&6; }
     7574else
     7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7576$as_echo "no" >&6; }
     7577fi
     7578
     7579
     7580  else
     7581    # Extract the first word of "matlab", so it can be a program name with args.
     7582set dummy matlab; ac_word=$2
     7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7584$as_echo_n "checking for $ac_word... " >&6; }
     7585if ${ac_cv_path_MATLAB+:} false; then :
     7586  $as_echo_n "(cached) " >&6
     7587else
     7588  case $MATLAB in
     7589  [\\/]* | ?:[\\/]*)
     7590  ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
     7591  ;;
     7592  *)
     7593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7594as_dummy="${with_matlab}/bin:${with_matlab}"
     7595for as_dir in $as_dummy
     7596do
     7597  IFS=$as_save_IFS
     7598  test -z "$as_dir" && as_dir=.
     7599    for ac_exec_ext in '' $ac_executable_extensions; do
     7600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7601    ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
     7602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7603    break 2
     7604  fi
     7605done
     7606  done
     7607IFS=$as_save_IFS
     7608
     7609  ;;
     7610esac
     7611fi
     7612MATLAB=$ac_cv_path_MATLAB
     7613if test -n "$MATLAB"; then
     7614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
     7615$as_echo "$MATLAB" >&6; }
     7616else
     7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7618$as_echo "no" >&6; }
     7619fi
     7620
     7621
     7622  fi
     7623fi
     7624
     7625if test "x$MATLAB" != "x" ; then
     7626  # Found matlab.  May be a symlink to the real binary.  Run "matlab -e"
     7627  # to tell where matlab is installed.
     7628
     7629  matlab_bindir=`${MATLAB} -e | grep "MATLAB=" | sed s/MATLAB=//`/bin
     7630
     7631  # Now see if we can find "mex" or "mexext" there.
     7632  # Extract the first word of "mex", so it can be a program name with args.
     7633set dummy mex; ac_word=$2
     7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7635$as_echo_n "checking for $ac_word... " >&6; }
     7636if ${ac_cv_path_MEX+:} false; then :
     7637  $as_echo_n "(cached) " >&6
     7638else
     7639  case $MEX in
     7640  [\\/]* | ?:[\\/]*)
     7641  ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
     7642  ;;
     7643  *)
     7644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7645for as_dir in ${matlab_bindir}
     7646do
     7647  IFS=$as_save_IFS
     7648  test -z "$as_dir" && as_dir=.
     7649    for ac_exec_ext in '' $ac_executable_extensions; do
     7650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7651    ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
     7652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7653    break 2
     7654  fi
     7655done
     7656  done
     7657IFS=$as_save_IFS
     7658
     7659  ;;
     7660esac
     7661fi
     7662MEX=$ac_cv_path_MEX
     7663if test -n "$MEX"; then
     7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&5
     7665$as_echo "$MEX" >&6; }
     7666else
     7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7668$as_echo "no" >&6; }
     7669fi
     7670
     7671
     7672  # Extract the first word of "mexext", so it can be a program name with args.
     7673set dummy mexext; ac_word=$2
     7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7675$as_echo_n "checking for $ac_word... " >&6; }
     7676if ${ac_cv_path_MEXEXT+:} false; then :
     7677  $as_echo_n "(cached) " >&6
     7678else
     7679  case $MEXEXT in
     7680  [\\/]* | ?:[\\/]*)
     7681  ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.
     7682  ;;
     7683  *)
     7684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7685for as_dir in ${matlab_bindir}
     7686do
     7687  IFS=$as_save_IFS
     7688  test -z "$as_dir" && as_dir=.
     7689    for ac_exec_ext in '' $ac_executable_extensions; do
     7690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7691    ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext"
     7692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7693    break 2
     7694  fi
     7695done
     7696  done
     7697IFS=$as_save_IFS
     7698
     7699  ;;
     7700esac
     7701fi
     7702MEXEXT=$ac_cv_path_MEXEXT
     7703if test -n "$MEXEXT"; then
     7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
     7705$as_echo "$MEXEXT" >&6; }
     7706else
     7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7708$as_echo "no" >&6; }
     7709fi
     7710
     7711
     7712
     7713  # Run "mexext" to get the expected module extension for this platform.
     7714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mex extension" >&5
     7715$as_echo_n "checking for mex extension... " >&6; }
     7716  if test "x$MEXEXT" != "x" ; then
     7717    MEXEXT=`$MEXEXT`
     7718  else
     7719    MEXEXT="mexglx"
     7720  fi
     7721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
     7722$as_echo "$MEXEXT" >&6; }
     7723  # Extract the first word of "mcc", so it can be a program name with args.
     7724set dummy mcc; ac_word=$2
     7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7726$as_echo_n "checking for $ac_word... " >&6; }
     7727if ${ac_cv_path_MCC+:} false; then :
     7728  $as_echo_n "(cached) " >&6
     7729else
     7730  case $MCC in
     7731  [\\/]* | ?:[\\/]*)
     7732  ac_cv_path_MCC="$MCC" # Let the user override the test with a path.
     7733  ;;
     7734  *)
     7735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7736for as_dir in ${matlab_bindir}
     7737do
     7738  IFS=$as_save_IFS
     7739  test -z "$as_dir" && as_dir=.
     7740    for ac_exec_ext in '' $ac_executable_extensions; do
     7741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7742    ac_cv_path_MCC="$as_dir/$ac_word$ac_exec_ext"
     7743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7744    break 2
     7745  fi
     7746done
     7747  done
     7748IFS=$as_save_IFS
     7749
     7750  ;;
     7751esac
     7752fi
     7753MCC=$ac_cv_path_MCC
     7754if test -n "$MCC"; then
     7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCC" >&5
     7756$as_echo "$MCC" >&6; }
     7757else
     7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7759$as_echo "no" >&6; }
     7760fi
     7761
     7762
     7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcc extension" >&5
     7764$as_echo_n "checking for mcc extension... " >&6; }
     7765fi
     7766
     7767
     7768
     7769# Check whether --with-octave was given.
     7770if test "${with_octave+set}" = set; then :
     7771  withval=$with_octave;
     7772else
     7773  with_octave=yes
     7774fi
     7775
     7776
     7777OCTAVE=
     7778OCTAVE_VERSION=
     7779OCTAVE_VERSION_MAJOR=
     7780MKOCTFILE2=
     7781MKOCTFILE3=
     7782
     7783if test "$with_octave" != "no" ; then
     7784  if test "$with_octave" = "yes" ; then
     7785    # Extract the first word of "octave", so it can be a program name with args.
     7786set dummy octave; ac_word=$2
     7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7788$as_echo_n "checking for $ac_word... " >&6; }
     7789if ${ac_cv_path_OCTAVE+:} false; then :
     7790  $as_echo_n "(cached) " >&6
     7791else
     7792  case $OCTAVE in
     7793  [\\/]* | ?:[\\/]*)
     7794  ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
     7795  ;;
     7796  *)
     7797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7798for as_dir in $PATH
     7799do
     7800  IFS=$as_save_IFS
     7801  test -z "$as_dir" && as_dir=.
     7802    for ac_exec_ext in '' $ac_executable_extensions; do
     7803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7804    ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
     7805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7806    break 2
     7807  fi
     7808done
     7809  done
     7810IFS=$as_save_IFS
     7811
     7812  ;;
     7813esac
     7814fi
     7815OCTAVE=$ac_cv_path_OCTAVE
     7816if test -n "$OCTAVE"; then
     7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
     7818$as_echo "$OCTAVE" >&6; }
     7819else
     7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7821$as_echo "no" >&6; }
     7822fi
     7823
     7824
     7825    # Extract the first word of "mkoctfile", so it can be a program name with args.
     7826set dummy mkoctfile; ac_word=$2
     7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7828$as_echo_n "checking for $ac_word... " >&6; }
     7829if ${ac_cv_path_MKOCTFILE+:} false; then :
     7830  $as_echo_n "(cached) " >&6
     7831else
     7832  case $MKOCTFILE in
     7833  [\\/]* | ?:[\\/]*)
     7834  ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
     7835  ;;
     7836  *)
     7837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7838for as_dir in $PATH
     7839do
     7840  IFS=$as_save_IFS
     7841  test -z "$as_dir" && as_dir=.
     7842    for ac_exec_ext in '' $ac_executable_extensions; do
     7843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7844    ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
     7845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7846    break 2
     7847  fi
     7848done
     7849  done
     7850IFS=$as_save_IFS
     7851
     7852  ;;
     7853esac
     7854fi
     7855MKOCTFILE=$ac_cv_path_MKOCTFILE
     7856if test -n "$MKOCTFILE"; then
     7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
     7858$as_echo "$MKOCTFILE" >&6; }
     7859else
     7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7861$as_echo "no" >&6; }
     7862fi
     7863
     7864
     7865  else
     7866    OCTAVE=$with_octave
     7867    MKOCTFILE=`dirname $with_octave`/mkoctfile
     7868  fi
     7869fi
     7870
     7871if test "x${OCTAVE}" != "x" ; then
     7872  OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4`
     7873  OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
     7874  if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then
     7875    OCTAVE3=$OCTAVE
     7876    MKOCTFILE3=$MKOCTFILE
     7877  fi
     7878  if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then
     7879    OCTAVE2=$OCTAVE
     7880    MKOCTFILE2=$MKOCTFILE
     7881  fi
     7882fi
     7883
     7884#
     7885# Check for octave3 before octave2 so that we can override the
     7886# OCTAVE_VERSION variables.
     7887#
     7888# Rappture doesn't normally really support both octave2 and octave3
     7889# simultaneously.  NANOhub has a hacked version of octave3 that
     7890# looks for OCTAVE_LOADPATH before looking at OCTAVE_PATH (i.e.
     7891# OCTAVE_PATH tells octave2 where to load the rappture bindings
     7892# and OCTAVE_LOADPATH tells octave3 where to load).
     7893#
     7894# Usually you will have installed either octave2 or octave3, but
     7895# not both.
     7896#
     7897
     7898# Check if octave3 was designated *in addition* to the installed version.
     7899# This can override the default version if they are the same versions.
     7900
     7901
     7902# Check whether --with-mkoctfile3 was given.
     7903if test "${with_mkoctfile3+set}" = set; then :
     7904  withval=$with_mkoctfile3;
     7905else
     7906  with_mkoctfile3=no
     7907fi
     7908
     7909
     7910if test "$with_mkoctfile3" != "no" ; then
     7911  if test "$with_mkoctfile3" = "yes" ; then
     7912    # Extract the first word of "mkoctfile", so it can be a program name with args.
     7913set dummy mkoctfile; ac_word=$2
     7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7915$as_echo_n "checking for $ac_word... " >&6; }
     7916if ${ac_cv_path_mkoctfile3+:} false; then :
     7917  $as_echo_n "(cached) " >&6
     7918else
     7919  case $mkoctfile3 in
     7920  [\\/]* | ?:[\\/]*)
     7921  ac_cv_path_mkoctfile3="$mkoctfile3" # Let the user override the test with a path.
     7922  ;;
     7923  *)
     7924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7925for as_dir in $PATH
     7926do
     7927  IFS=$as_save_IFS
     7928  test -z "$as_dir" && as_dir=.
     7929    for ac_exec_ext in '' $ac_executable_extensions; do
     7930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7931    ac_cv_path_mkoctfile3="$as_dir/$ac_word$ac_exec_ext"
     7932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7933    break 2
     7934  fi
     7935done
     7936  done
     7937IFS=$as_save_IFS
     7938
     7939  ;;
     7940esac
     7941fi
     7942mkoctfile3=$ac_cv_path_mkoctfile3
     7943if test -n "$mkoctfile3"; then
     7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile3" >&5
     7945$as_echo "$mkoctfile3" >&6; }
     7946else
     7947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7948$as_echo "no" >&6; }
     7949fi
     7950
     7951
     7952  else
     7953    MKOCTFILE3=$with_mkoctfile3
     7954  fi
     7955  OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`
     7956  OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
     7957fi
     7958
     7959# Check if mkoctfile2 was designated *in addition* to the installed version.
     7960# This can override the default version if they are the same versions.
     7961
     7962# Check whether --with-mkoctfile2 was given.
     7963if test "${with_mkoctfile2+set}" = set; then :
     7964  withval=$with_mkoctfile2;
     7965else
     7966  with_mkoctfile2=no
     7967fi
     7968
     7969
     7970if test "$with_mkoctfile2" != "no" ; then
     7971  if test "$with_mkoctfile2" = "yes" ; then
     7972    # Extract the first word of "mkoctfile", so it can be a program name with args.
     7973set dummy mkoctfile; ac_word=$2
     7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7975$as_echo_n "checking for $ac_word... " >&6; }
     7976if ${ac_cv_path_mkoctfile2+:} false; then :
     7977  $as_echo_n "(cached) " >&6
     7978else
     7979  case $mkoctfile2 in
     7980  [\\/]* | ?:[\\/]*)
     7981  ac_cv_path_mkoctfile2="$mkoctfile2" # Let the user override the test with a path.
     7982  ;;
     7983  *)
     7984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7985for as_dir in $PATH
     7986do
     7987  IFS=$as_save_IFS
     7988  test -z "$as_dir" && as_dir=.
     7989    for ac_exec_ext in '' $ac_executable_extensions; do
     7990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7991    ac_cv_path_mkoctfile2="$as_dir/$ac_word$ac_exec_ext"
     7992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7993    break 2
     7994  fi
     7995done
     7996  done
     7997IFS=$as_save_IFS
     7998
     7999  ;;
     8000esac
     8001fi
     8002mkoctfile2=$ac_cv_path_mkoctfile2
     8003if test -n "$mkoctfile2"; then
     8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile2" >&5
     8005$as_echo "$mkoctfile2" >&6; }
     8006else
     8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8008$as_echo "no" >&6; }
     8009fi
     8010
     8011
     8012  else
     8013    MKOCTFILE2=$with_mkoctfile2
     8014  fi
     8015  # Have to use octave to get a version, instead of mkoctfile.
     8016  octave=`dirname $MKOCTFILE2`/octave
     8017  OCTAVE_VERSION=`${octave} -v | grep version | cut -d' ' -f4`
     8018  OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
     8019fi
     8020
     8021
     8022
     8023# Check whether --with-perl was given.
     8024if test "${with_perl+set}" = set; then :
     8025  withval=$with_perl;
     8026else
     8027  with_perl=yes
     8028fi
     8029
     8030
     8031PERL=
     8032PERL_INCLUDES=
     8033PERL_ARCHLIB=
     8034PERL_ARCHLIBEXP=
     8035PERL_VERSION=
     8036PERL_VENDORLIB=
     8037PERL_PRIVLIB=
     8038PERL_CPPFLAGS=
     8039PERL_CCFlAGS=
     8040PERL_VERSION_RV=
     8041XSUBPP=
     8042PERL_LIBSPEC=
     8043if test "$with_perl" != "no" ; then
     8044  if test "$with_perl" != "yes" ; then
     8045    # Extract the first word of "perl", so it can be a program name with args.
     8046set dummy perl; ac_word=$2
     8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8048$as_echo_n "checking for $ac_word... " >&6; }
     8049if ${ac_cv_path_PERL+:} false; then :
     8050  $as_echo_n "(cached) " >&6
     8051else
     8052  case $PERL in
     8053  [\\/]* | ?:[\\/]*)
     8054  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
     8055  ;;
     8056  *)
     8057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8058as_dummy="$with_perl/bin:$with_perl"
     8059for as_dir in $as_dummy
     8060do
     8061  IFS=$as_save_IFS
     8062  test -z "$as_dir" && as_dir=.
     8063    for ac_exec_ext in '' $ac_executable_extensions; do
     8064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8065    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
     8066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8067    break 2
     8068  fi
     8069done
     8070  done
     8071IFS=$as_save_IFS
     8072
     8073  ;;
     8074esac
     8075fi
     8076PERL=$ac_cv_path_PERL
     8077if test -n "$PERL"; then
     8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
     8079$as_echo "$PERL" >&6; }
     8080else
     8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8082$as_echo "no" >&6; }
     8083fi
     8084
     8085
     8086    # Extract the first word of "xsubpp", so it can be a program name with args.
     8087set dummy xsubpp; ac_word=$2
     8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8089$as_echo_n "checking for $ac_word... " >&6; }
     8090if ${ac_cv_path_XSUBPP+:} false; then :
     8091  $as_echo_n "(cached) " >&6
     8092else
     8093  case $XSUBPP in
     8094  [\\/]* | ?:[\\/]*)
     8095  ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
     8096  ;;
     8097  *)
     8098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8099as_dummy="$with_perl/bin:$with_perl"
     8100for as_dir in $as_dummy
     8101do
     8102  IFS=$as_save_IFS
     8103  test -z "$as_dir" && as_dir=.
     8104    for ac_exec_ext in '' $ac_executable_extensions; do
     8105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8106    ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
     8107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8108    break 2
     8109  fi
     8110done
     8111  done
     8112IFS=$as_save_IFS
     8113
     8114  ;;
     8115esac
     8116fi
     8117XSUBPP=$ac_cv_path_XSUBPP
     8118if test -n "$XSUBPP"; then
     8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
     8120$as_echo "$XSUBPP" >&6; }
     8121else
     8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8123$as_echo "no" >&6; }
     8124fi
     8125
     8126
     8127  else
     8128    # Extract the first word of "perl", so it can be a program name with args.
     8129set dummy perl; ac_word=$2
     8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8131$as_echo_n "checking for $ac_word... " >&6; }
     8132if ${ac_cv_path_PERL+:} false; then :
     8133  $as_echo_n "(cached) " >&6
     8134else
     8135  case $PERL in
     8136  [\\/]* | ?:[\\/]*)
     8137  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
     8138  ;;
     8139  *)
     8140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8141for as_dir in $PATH
     8142do
     8143  IFS=$as_save_IFS
     8144  test -z "$as_dir" && as_dir=.
     8145    for ac_exec_ext in '' $ac_executable_extensions; do
     8146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8147    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
     8148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8149    break 2
     8150  fi
     8151done
     8152  done
     8153IFS=$as_save_IFS
     8154
     8155  ;;
     8156esac
     8157fi
     8158PERL=$ac_cv_path_PERL
     8159if test -n "$PERL"; then
     8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
     8161$as_echo "$PERL" >&6; }
     8162else
     8163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8164$as_echo "no" >&6; }
     8165fi
     8166
     8167
     8168    # Extract the first word of "xsubpp", so it can be a program name with args.
     8169set dummy xsubpp; ac_word=$2
     8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8171$as_echo_n "checking for $ac_word... " >&6; }
     8172if ${ac_cv_path_XSUBPP+:} false; then :
     8173  $as_echo_n "(cached) " >&6
     8174else
     8175  case $XSUBPP in
     8176  [\\/]* | ?:[\\/]*)
     8177  ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
     8178  ;;
     8179  *)
     8180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8181for as_dir in $PATH
     8182do
     8183  IFS=$as_save_IFS
     8184  test -z "$as_dir" && as_dir=.
     8185    for ac_exec_ext in '' $ac_executable_extensions; do
     8186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8187    ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
     8188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8189    break 2
     8190  fi
     8191done
     8192  done
     8193IFS=$as_save_IFS
     8194
     8195  ;;
     8196esac
     8197fi
     8198XSUBPP=$ac_cv_path_XSUBPP
     8199if test -n "$XSUBPP"; then
     8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
     8201$as_echo "$XSUBPP" >&6; }
     8202else
     8203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8204$as_echo "no" >&6; }
     8205fi
     8206
     8207
     8208  fi
     8209  if test "x${PERL}" != "x" ; then
     8210    PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
     8211    PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
     8212    PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
     8213    PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
     8214    PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
     8215    PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
     8216    PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`
     8217    PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`
     8218    PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
     8219    # libperl may or may not be installed.  Check for its existence.
     8220    if test -f "${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}" ; then
     8221      PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE -lperl"
     8222    fi
     8223  fi
     8224fi
     8225
     8226
     8227PYTHON=""
     8228PYTHON_CFLAGS=""
     8229PYTHON_CPPFLAGS=""
     8230PYTHON_DISTUTILS=""
     8231PYTHON_INCLUDES=""
     8232PYTHON_LDFLAGS=""
     8233PYTHON_LIB=""
     8234PYTHON_LIBDIR=""
     8235PYTHON_SITE_DIR=""
     8236PYTHON_SITE_PACKAGES=""
     8237PYTHON_VERSION=""
     8238pythondir=""
     8239
     8240# Check whether --with-python was given.
     8241if test "${with_python+set}" = set; then :
     8242  withval=$with_python;
     8243else
     8244  with_python=yes
     8245fi
     8246
     8247
     8248if test "$with_python" != "no" ; then
     8249  if test "$with_python" = "yes" ; then
     8250    # 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.
     8251set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
     8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8253$as_echo_n "checking for $ac_word... " >&6; }
     8254if ${ac_cv_path_PYTHON+:} false; then :
     8255  $as_echo_n "(cached) " >&6
     8256else
     8257  case $PYTHON in
     8258  [\\/]* | ?:[\\/]*)
     8259  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
     8260  ;;
     8261  *)
     8262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8263for as_dir in $PATH
     8264do
     8265  IFS=$as_save_IFS
     8266  test -z "$as_dir" && as_dir=.
     8267    for ac_exec_ext in '' $ac_executable_extensions; do
     8268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8269    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
     8270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8271    break 2
     8272  fi
     8273done
     8274  done
     8275IFS=$as_save_IFS
     8276
     8277  ;;
     8278esac
     8279fi
     8280PYTHON=$ac_cv_path_PYTHON
     8281if test -n "$PYTHON"; then
     8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     8283$as_echo "$PYTHON" >&6; }
     8284else
     8285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8286$as_echo "no" >&6; }
     8287fi
     8288
     8289
     8290  else
     8291    # Extract the first word of "python", so it can be a program name with args.
     8292set dummy python; ac_word=$2
     8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8294$as_echo_n "checking for $ac_word... " >&6; }
     8295if ${ac_cv_path_PYTHON+:} false; then :
     8296  $as_echo_n "(cached) " >&6
     8297else
     8298  case $PYTHON in
     8299  [\\/]* | ?:[\\/]*)
     8300  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
     8301  ;;
     8302  *)
     8303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8304as_dummy="${with_python}/bin:${with_python}"
     8305for as_dir in $as_dummy
     8306do
     8307  IFS=$as_save_IFS
     8308  test -z "$as_dir" && as_dir=.
     8309    for ac_exec_ext in '' $ac_executable_extensions; do
     8310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8311    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
     8312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8313    break 2
     8314  fi
     8315done
     8316  done
     8317IFS=$as_save_IFS
     8318
     8319  ;;
     8320esac
     8321fi
     8322PYTHON=$ac_cv_path_PYTHON
     8323if test -n "$PYTHON"; then
     8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
     8325$as_echo "$PYTHON" >&6; }
     8326else
     8327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8328$as_echo "no" >&6; }
     8329fi
     8330
     8331
     8332  fi
     8333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
     8334$as_echo_n "checking for Python version... " >&6; }
     8335  if test "x${PYTHON}" != "x"; then
     8336    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
     8337  fi
     8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
     8339$as_echo "$PYTHON_VERSION" >&6; }
     8340fi
     8341
     8342if test "x${PYTHON_VERSION}" != "x"; then
     8343  PYTHON_INCLUDES=$incdir
     8344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
     8345$as_echo_n "checking for Python distutils... " >&6; }
     8346  PYTHON_DISTUTILS=""
     8347  ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \
     8348        build build_ext 2>&1 > /dev/null
     8349  if test $? = 0 ; then
     8350    PYTHON_DISTUTILS="yes"
     8351  fi
     8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
     8353$as_echo "$PYTHON_DISTUTILS" >&6; }
     8354  if test "${PYTHON_DISTUTILS}" = "yes" ; then
     8355    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
     8356    #
     8357    # Check for Python include path
     8358    #
     8359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
     8360$as_echo_n "checking path to Python headers... " >&6; }
     8361    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
     8362     print distutils.sysconfig.get_python_inc();"`
     8363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
     8364$as_echo "$PYTHON_INCDIR" >&6; }
     8365    #
     8366    # Python distutils found, get settings from python directly
     8367    #
     8368    PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
     8369
     8370    PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`"
     8371    PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`"
     8372    PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
     8373    PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
     8374    save_CPPFLAGS=$CPPFLAGS
     8375    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
     8376    for ac_header in Python.h
     8377do :
     8378  ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
     8379if test "x$ac_cv_header_Python_h" = xyes; then :
     8380  cat >>confdefs.h <<_ACEOF
     8381#define HAVE_PYTHON_H 1
     8382_ACEOF
     8383 found=yes
     8384else
     8385  found=no
     8386fi
     8387
     8388done
     8389
     8390    CPPFLAGS=$save_CPPFLAGS
     8391    if test "$found" = "no" ; then
     8392      PYTHON_DISTUTILS=""
     8393    fi
     8394  fi
     8395fi
     8396
     8397
     8398
     8399# Check whether --with-java was given.
     8400if test "${with_java+set}" = set; then :
     8401  withval=$with_java;
     8402else
     8403  with_java=yes
     8404fi
     8405
     8406JAVA=""
     8407JAVAH=""
     8408JAVAC=""
     8409JAVA_DEV_PKG="no"
     8410
     8411if test "${with_java}" != "no" ; then
     8412  if test "${with_java}" = "yes" ; then
     8413    # Extract the first word of "java", so it can be a program name with args.
     8414set dummy java; ac_word=$2
     8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8416$as_echo_n "checking for $ac_word... " >&6; }
     8417if ${ac_cv_path_JAVA+:} false; then :
     8418  $as_echo_n "(cached) " >&6
     8419else
     8420  case $JAVA in
     8421  [\\/]* | ?:[\\/]*)
     8422  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
     8423  ;;
     8424  *)
     8425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8426for as_dir in $PATH
     8427do
     8428  IFS=$as_save_IFS
     8429  test -z "$as_dir" && as_dir=.
     8430    for ac_exec_ext in '' $ac_executable_extensions; do
     8431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8432    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
     8433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8434    break 2
     8435  fi
     8436done
     8437  done
     8438IFS=$as_save_IFS
     8439
     8440  ;;
     8441esac
     8442fi
     8443JAVA=$ac_cv_path_JAVA
     8444if test -n "$JAVA"; then
     8445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     8446$as_echo "$JAVA" >&6; }
     8447else
     8448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8449$as_echo "no" >&6; }
     8450fi
     8451
     8452
     8453    # Extract the first word of "javac", so it can be a program name with args.
     8454set dummy javac; ac_word=$2
     8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8456$as_echo_n "checking for $ac_word... " >&6; }
     8457if ${ac_cv_path_JAVAC+:} false; then :
     8458  $as_echo_n "(cached) " >&6
     8459else
     8460  case $JAVAC in
     8461  [\\/]* | ?:[\\/]*)
     8462  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
     8463  ;;
     8464  *)
     8465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8466for as_dir in $PATH
     8467do
     8468  IFS=$as_save_IFS
     8469  test -z "$as_dir" && as_dir=.
     8470    for ac_exec_ext in '' $ac_executable_extensions; do
     8471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8472    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
     8473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8474    break 2
     8475  fi
     8476done
     8477  done
     8478IFS=$as_save_IFS
     8479
     8480  ;;
     8481esac
     8482fi
     8483JAVAC=$ac_cv_path_JAVAC
     8484if test -n "$JAVAC"; then
     8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     8486$as_echo "$JAVAC" >&6; }
     8487else
     8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8489$as_echo "no" >&6; }
     8490fi
     8491
     8492
     8493    # Extract the first word of "javah", so it can be a program name with args.
     8494set dummy javah; ac_word=$2
     8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8496$as_echo_n "checking for $ac_word... " >&6; }
     8497if ${ac_cv_path_JAVAH+:} false; then :
     8498  $as_echo_n "(cached) " >&6
     8499else
     8500  case $JAVAH in
     8501  [\\/]* | ?:[\\/]*)
     8502  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
     8503  ;;
     8504  *)
     8505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8506for as_dir in $PATH
     8507do
     8508  IFS=$as_save_IFS
     8509  test -z "$as_dir" && as_dir=.
     8510    for ac_exec_ext in '' $ac_executable_extensions; do
     8511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8512    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
     8513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8514    break 2
     8515  fi
     8516done
     8517  done
     8518IFS=$as_save_IFS
     8519
     8520  ;;
     8521esac
     8522fi
     8523JAVAH=$ac_cv_path_JAVAH
     8524if test -n "$JAVAH"; then
     8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
     8526$as_echo "$JAVAH" >&6; }
     8527else
     8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8529$as_echo "no" >&6; }
     8530fi
     8531
     8532
     8533  else
     8534    # Extract the first word of "java", so it can be a program name with args.
     8535set dummy java; ac_word=$2
     8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8537$as_echo_n "checking for $ac_word... " >&6; }
     8538if ${ac_cv_path_JAVA+:} false; then :
     8539  $as_echo_n "(cached) " >&6
     8540else
     8541  case $JAVA in
     8542  [\\/]* | ?:[\\/]*)
     8543  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
     8544  ;;
     8545  *)
     8546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8547as_dummy="${with_java}/bin:${with_java}"
     8548for as_dir in $as_dummy
     8549do
     8550  IFS=$as_save_IFS
     8551  test -z "$as_dir" && as_dir=.
     8552    for ac_exec_ext in '' $ac_executable_extensions; do
     8553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8554    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
     8555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8556    break 2
     8557  fi
     8558done
     8559  done
     8560IFS=$as_save_IFS
     8561
     8562  ;;
     8563esac
     8564fi
     8565JAVA=$ac_cv_path_JAVA
     8566if test -n "$JAVA"; then
     8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
     8568$as_echo "$JAVA" >&6; }
     8569else
     8570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8571$as_echo "no" >&6; }
     8572fi
     8573
     8574
     8575    # Extract the first word of "javac", so it can be a program name with args.
     8576set dummy javac; ac_word=$2
     8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8578$as_echo_n "checking for $ac_word... " >&6; }
     8579if ${ac_cv_path_JAVAC+:} false; then :
     8580  $as_echo_n "(cached) " >&6
     8581else
     8582  case $JAVAC in
     8583  [\\/]* | ?:[\\/]*)
     8584  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
     8585  ;;
     8586  *)
     8587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8588as_dummy="${with_java}/bin:${with_java}"
     8589for as_dir in $as_dummy
     8590do
     8591  IFS=$as_save_IFS
     8592  test -z "$as_dir" && as_dir=.
     8593    for ac_exec_ext in '' $ac_executable_extensions; do
     8594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8595    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
     8596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8597    break 2
     8598  fi
     8599done
     8600  done
     8601IFS=$as_save_IFS
     8602
     8603  ;;
     8604esac
     8605fi
     8606JAVAC=$ac_cv_path_JAVAC
     8607if test -n "$JAVAC"; then
     8608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
     8609$as_echo "$JAVAC" >&6; }
     8610else
     8611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8612$as_echo "no" >&6; }
     8613fi
     8614
     8615
     8616    # Extract the first word of "javah", so it can be a program name with args.
     8617set dummy javah; ac_word=$2
     8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8619$as_echo_n "checking for $ac_word... " >&6; }
     8620if ${ac_cv_path_JAVAH+:} false; then :
     8621  $as_echo_n "(cached) " >&6
     8622else
     8623  case $JAVAH in
     8624  [\\/]* | ?:[\\/]*)
     8625  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
     8626  ;;
     8627  *)
     8628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8629as_dummy="${with_java}/bin:${with_java}"
     8630for as_dir in $as_dummy
     8631do
     8632  IFS=$as_save_IFS
     8633  test -z "$as_dir" && as_dir=.
     8634    for ac_exec_ext in '' $ac_executable_extensions; do
     8635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8636    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
     8637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8638    break 2
     8639  fi
     8640done
     8641  done
     8642IFS=$as_save_IFS
     8643
     8644  ;;
     8645esac
     8646fi
     8647JAVAH=$ac_cv_path_JAVAH
     8648if test -n "$JAVAH"; then
     8649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
     8650$as_echo "$JAVAH" >&6; }
     8651else
     8652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8653$as_echo "no" >&6; }
     8654fi
     8655
     8656
     8657  fi
     8658fi
     8659JDK=
     8660JAVA_INC_DIR=
     8661JAVA_INC_SPEC=
     8662
     8663# If java exists, let's look for the jni.h file.
     8664if test "x${JAVA}" != "x" ; then
     8665  for d in \
     8666   ${with_java} \
     8667   ${JAVA_HOME} \
     8668   /apps/java/jdk1.6* \
     8669   /opt/sun-jdk-1.6* \
     8670   /opt/icedtea6-* \
     8671   /opt/sun-jdk-1.5* \
     8672   /usr/lib/jvm/*sun* \
     8673   /usr/lib/jvm/*icedtea* \
     8674   /usr/lib/jvm/*openjdk*
     8675  do
     8676    if test -r "${d}/include/jni.h" ; then
     8677      JDK=${d}
     8678      JAVA_HOME=$JDK
     8679      JAVA_INC_DIR=${JDK}/include
     8680      JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"
     8681      break;
     8682    fi
     8683    if test -r "${d}/Headers/jni.h" ; then
     8684      JDK=${d}
     8685      JAVA_HOME=$JDK
     8686      JAVA_INC_DIR=${JDK}/Headers
     8687      JAVA_INC_SPEC="-I${JDK}/Headers -I${JDK}/Headers/macos"
     8688      break;
     8689    fi
     8690  done
     8691fi
     8692
     8693
     8694
     8695# Check whether --with-R was given.
     8696if test "${with_R+set}" = set; then :
     8697  withval=$with_R;
     8698else
     8699  with_R=yes
     8700fi
     8701
     8702
     8703R=""
     8704if test "$with_R" != "no" ; then
     8705  if test "$with_R" = "yes" ; then
     8706    # Extract the first word of "R", so it can be a program name with args.
     8707set dummy R; ac_word=$2
     8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8709$as_echo_n "checking for $ac_word... " >&6; }
     8710if ${ac_cv_path_R+:} false; then :
     8711  $as_echo_n "(cached) " >&6
     8712else
     8713  case $R in
     8714  [\\/]* | ?:[\\/]*)
     8715  ac_cv_path_R="$R" # Let the user override the test with a path.
     8716  ;;
     8717  *)
     8718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8719for as_dir in $PATH
     8720do
     8721  IFS=$as_save_IFS
     8722  test -z "$as_dir" && as_dir=.
     8723    for ac_exec_ext in '' $ac_executable_extensions; do
     8724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8725    ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
     8726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8727    break 2
     8728  fi
     8729done
     8730  done
     8731IFS=$as_save_IFS
     8732
     8733  ;;
     8734esac
     8735fi
     8736R=$ac_cv_path_R
     8737if test -n "$R"; then
     8738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
     8739$as_echo "$R" >&6; }
     8740else
     8741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8742$as_echo "no" >&6; }
     8743fi
     8744
     8745
     8746  else
     8747    # Extract the first word of "R", so it can be a program name with args.
     8748set dummy R; ac_word=$2
     8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8750$as_echo_n "checking for $ac_word... " >&6; }
     8751if ${ac_cv_path_R+:} false; then :
     8752  $as_echo_n "(cached) " >&6
     8753else
     8754  case $R in
     8755  [\\/]* | ?:[\\/]*)
     8756  ac_cv_path_R="$R" # Let the user override the test with a path.
     8757  ;;
     8758  *)
     8759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8760as_dummy="${with_R}/bin:${with_R}"
     8761for as_dir in $as_dummy
     8762do
     8763  IFS=$as_save_IFS
     8764  test -z "$as_dir" && as_dir=.
     8765    for ac_exec_ext in '' $ac_executable_extensions; do
     8766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8767    ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
     8768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     8769    break 2
     8770  fi
     8771done
     8772  done
     8773IFS=$as_save_IFS
     8774
     8775  ;;
     8776esac
     8777fi
     8778R=$ac_cv_path_R
     8779if test -n "$R"; then
     8780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
     8781$as_echo "$R" >&6; }
     8782else
     8783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8784$as_echo "no" >&6; }
     8785fi
     8786
     8787
     8788  fi
     8789fi
     8790
     8791
     8792# Make sure we can run config.sub.
     8793$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     8794  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     8795
     8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     8797$as_echo_n "checking build system type... " >&6; }
     8798if ${ac_cv_build+:} false; then :
     8799  $as_echo_n "(cached) " >&6
     8800else
     8801  ac_build_alias=$build_alias
     8802test "x$ac_build_alias" = x &&
     8803  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     8804test "x$ac_build_alias" = x &&
     8805  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     8806ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     8807  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     8808
     8809fi
     8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     8811$as_echo "$ac_cv_build" >&6; }
     8812case $ac_cv_build in
     8813*-*-*) ;;
     8814*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     8815esac
     8816build=$ac_cv_build
     8817ac_save_IFS=$IFS; IFS='-'
     8818set x $ac_cv_build
     8819shift
     8820build_cpu=$1
     8821build_vendor=$2
     8822shift; shift
     8823# Remember, the first character of IFS is used to create $*,
     8824# except with old shells:
     8825build_os=$*
     8826IFS=$ac_save_IFS
     8827case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     8828
     8829
     8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     8831$as_echo_n "checking host system type... " >&6; }
     8832if ${ac_cv_host+:} false; then :
     8833  $as_echo_n "(cached) " >&6
     8834else
     8835  if test "x$host_alias" = x; then
     8836  ac_cv_host=$ac_cv_build
     8837else
     8838  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     8839    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     8840fi
     8841
     8842fi
     8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     8844$as_echo "$ac_cv_host" >&6; }
     8845case $ac_cv_host in
     8846*-*-*) ;;
     8847*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     8848esac
     8849host=$ac_cv_host
     8850ac_save_IFS=$IFS; IFS='-'
     8851set x $ac_cv_host
     8852shift
     8853host_cpu=$1
     8854host_vendor=$2
     8855shift; shift
     8856# Remember, the first character of IFS is used to create $*,
     8857# except with old shells:
     8858host_os=$*
     8859IFS=$ac_save_IFS
     8860case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     8861
     8862
     8863
     8864
     8865
     8866# Check whether --with-ruby was given.
     8867if test "${with_ruby+set}" = set; then :
     8868  withval=$with_ruby;  RUBY=$withval
     8869else
     8870   RUBY=ruby
     8871fi
     8872
     8873
     8874# Check whether --with-ruby_sitelibdir was given.
     8875if test "${with_ruby_sitelibdir+set}" = set; then :
     8876  withval=$with_ruby_sitelibdir;  ruby_sitelibdir=$withval
     8877else
     8878   ruby_sitelibdir=NONE
     8879fi
     8880
     8881
     8882
     8883
     8884RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"`
     8885
     8886
     8887RUBY_CONFIG_SO_NAME=`
     8888          $RUBY -rrbconfig -e "puts(Config::CONFIG['RUBY_SO_NAME'] || '')"`
     8889RUBY_CONFIG_ARCHDIR=`
     8890          $RUBY -rrbconfig -e "puts(Config::CONFIG['archdir'] || '')"`
     8891RUBY_CONFIG_ARCH=`
     8892          $RUBY -rrbconfig -e "puts(Config::CONFIG['arch'] || '')"`
     8893RUBY_CONFIG_LIBDIR=`
     8894          $RUBY -rrbconfig -e "puts(Config::CONFIG['libdir'] || '')"`
     8895RUBY_CONFIG_BINDIR=`
     8896          $RUBY -rrbconfig -e "puts(Config::CONFIG['bindir'] || '')"`
     8897RUBY_CONFIG_RUBYHDRDIR=`
     8898          $RUBY -rrbconfig -e "puts(Config::CONFIG['rubyhdrdir'] || '')"`
     8899RUBY_CONFIG_CFLAGS=`
     8900          $RUBY -rrbconfig -e "puts(Config::CONFIG['CFLAGS'] || '')"`
     8901RUBY_CONFIG_LIBS=`
     8902          $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBS'] || '')"`
     8903RUBY_CONFIG_DLDLIBS=`
     8904          $RUBY -rrbconfig -e "puts(Config::CONFIG['DLDLIBS'] || '')"`
     8905RUBY_CONFIG_LDFLAGS=`
     8906          $RUBY -rrbconfig -e "puts(Config::CONFIG['LDFLAGS'] || '')"`
     8907RUBY_CONFIG_LIBRUBYARG=`
     8908          $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG'] || '')"`
     8909RUBY_CONFIG_LIBRUBYARG_STATIC=`
     8910          $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG_STATIC'] || '')"`
     8911RUBY_CONFIG_CCDLFLAGS=`
     8912          $RUBY -rrbconfig -e "puts(Config::CONFIG['CCDLFLAGS'] || '')"`
     8913
     8914if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then
     8915  # 1.9
     8916  RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"
     8917  RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"
     8918else
     8919  # 1.8
     8920  RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"
     8921fi
     8922
     8923
     8924RUBY_CFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
     8925
     8926
     8927RUBY_CXXFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
     8928
     8929
     8930RUBY_LDFLAGS="-L${RUBY_CONFIG_ARCHDIR} -L${RUBY_CONFIG_LIBDIR} ${RUBY_CONFIG_LDFLAGS}"
     8931
     8932
     8933RUBY_LIBS="${RUBY_CONFIG_LIBS} ${RUBY_CONFIG_DLDLIBS}"
     8934
     8935
     8936RUBY_LIBRUBYARG="${RUBY_CONFIG_LIBRUBYARG}"
     8937
     8938
     8939RUBY_LIBRUBYARG_STATIC="${RUBY_CONFIG_LIBRUBYARG_STATIC}"
     8940
     8941
     8942if test "x${ruby_sitelibdir}x" != "xNONEx"
     8943then
     8944  RUBY_SITELIBDIR="${ruby_sitelibdir}"
     8945else
     8946  if test "x${prefix}x" = "xNONEx"
     8947  then
     8948    RUBY_SITELIBDIR=`
     8949          $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`
     8950  else
     8951    sitelibdir_no_prefix=`$RUBY -rrbconfig \
     8952    -e "include Config; \
     8953    puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`
     8954    RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"
     8955  fi
     8956fi
     8957
     8958
     8959CPPFLAGS_save="${CPPFLAGS}"
     8960CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"
     8961CXXFLAGS="${CPPFLAGS}"
     8962for ac_header in ruby.h
     8963do :
     8964  ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
     8965if test "x$ac_cv_header_ruby_h" = xyes; then :
     8966  cat >>confdefs.h <<_ACEOF
     8967#define HAVE_RUBY_H 1
     8968_ACEOF
     8969
     8970fi
     8971
     8972done
     8973
     8974HAVE_RUBY_H=${ac_cv_header_ruby_h}
     8975
     8976
     8977for ac_header in node.h
     8978do :
     8979  ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "
     8980#include <ruby.h>
     8981
     8982"
     8983if test "x$ac_cv_header_node_h" = xyes; then :
     8984  cat >>confdefs.h <<_ACEOF
     8985#define HAVE_NODE_H 1
     8986_ACEOF
     8987
     8988fi
     8989
     8990done
     8991
     8992for ac_header in ruby/node.h
     8993do :
     8994  ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "
     8995                             #include <ruby.h>
     8996
     8997"
     8998if test "x$ac_cv_header_ruby_node_h" = xyes; then :
     8999  cat >>confdefs.h <<_ACEOF
     9000#define HAVE_RUBY_NODE_H 1
     9001_ACEOF
     9002
     9003$as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h
     9004
     9005fi
     9006
     9007done
     9008
     9009for ac_header in version.h
     9010do :
     9011  ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "
     9012#include <ruby.h>
     9013
     9014"
     9015if test "x$ac_cv_header_version_h" = xyes; then :
     9016  cat >>confdefs.h <<_ACEOF
     9017#define HAVE_VERSION_H 1
     9018_ACEOF
     9019
     9020fi
     9021
     9022done
     9023
     9024for ac_header in env.h
     9025do :
     9026  ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "
     9027#include <ruby.h>
     9028
     9029"
     9030if test "x$ac_cv_header_env_h" = xyes; then :
     9031  cat >>confdefs.h <<_ACEOF
     9032#define HAVE_ENV_H 1
     9033_ACEOF
     9034
     9035fi
     9036
     9037done
     9038
     9039
     9040CPPFLAGS="${CPPFLAGS_save}"
     9041
     9042
     9043case $host_os in
     9044  *mingw32* ) MINGW32=yes;;
     9045          * ) MINGW32=no;;
     9046esac
     9047
     9048
     9049if test x"${MINGW32}"x = xyesx; then
     9050
     9051RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%oldnames.lib%-lmoldname%"`
     9052RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%user32.lib%-luser32%"`
     9053RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%advapi32.lib%-ladvapi32%"`
     9054RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%ws2_32.lib%-lws2_32%"`
     9055RUBY_LIBRUBYARG=`echo ${RUBY_LIBRUBYARG} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_BINDIR}/\1.dll%"`
     9056RUBY_LIBRUBYARG_STATIC=`echo ${RUBY_LIBRUBYARG_STATIC} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_LIBDIR}/\1.lib%"`
     9057
     9058fi
     9059
     9060
     9061
    73279062RP_BASE=`pwd`
    73289063
     
    73579092    fi
    73589093
     9094
     9095#--------------------------------------------------------------------
     9096# This macro figures out what flags to use with the compiler/linker
     9097# when building shared/static debug/optimized objects.  This information
     9098# is all taken from the tclConfig.sh file.
     9099#--------------------------------------------------------------------
     9100
     9101if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
     9102  . ${exec_prefix}/lib/tclConfig.sh
     9103fi
     9104if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
     9105  . ${exec_prefix}/lib/tkConfig.sh
     9106fi
    73599107
    73609108# -----------------------------------------------------------------------
     
    77869534
    77879535
     9536#--------------------------------------------------------------------
     9537# search for ffmpeg libraries libavcodec, libavformat, libswscale
     9538#--------------------------------------------------------------------
     9539if test "${with_ffmpeg}" != "no" ; then
     9540  if test "${with_ffmpeg}" = "yes" ; then
     9541    # Extract the first word of "ffmpeg", so it can be a program name with args.
     9542set dummy ffmpeg; ac_word=$2
     9543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     9544$as_echo_n "checking for $ac_word... " >&6; }
     9545if ${ac_cv_path_FFMPEG+:} false; then :
     9546  $as_echo_n "(cached) " >&6
     9547else
     9548  case $FFMPEG in
     9549  [\\/]* | ?:[\\/]*)
     9550  ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
     9551  ;;
     9552  *)
     9553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9554for as_dir in $PATH
     9555do
     9556  IFS=$as_save_IFS
     9557  test -z "$as_dir" && as_dir=.
     9558    for ac_exec_ext in '' $ac_executable_extensions; do
     9559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     9560    ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
     9561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     9562    break 2
     9563  fi
     9564done
     9565  done
     9566IFS=$as_save_IFS
     9567
     9568  ;;
     9569esac
     9570fi
     9571FFMPEG=$ac_cv_path_FFMPEG
     9572if test -n "$FFMPEG"; then
     9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
     9574$as_echo "$FFMPEG" >&6; }
     9575else
     9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     9577$as_echo "no" >&6; }
     9578fi
     9579
     9580
     9581  else
     9582    # Extract the first word of "ffmpeg", so it can be a program name with args.
     9583set dummy ffmpeg; ac_word=$2
     9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     9585$as_echo_n "checking for $ac_word... " >&6; }
     9586if ${ac_cv_path_FFMPEG+:} false; then :
     9587  $as_echo_n "(cached) " >&6
     9588else
     9589  case $FFMPEG in
     9590  [\\/]* | ?:[\\/]*)
     9591  ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
     9592  ;;
     9593  *)
     9594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9595as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"
     9596for as_dir in $as_dummy
     9597do
     9598  IFS=$as_save_IFS
     9599  test -z "$as_dir" && as_dir=.
     9600    for ac_exec_ext in '' $ac_executable_extensions; do
     9601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     9602    ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
     9603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     9604    break 2
     9605  fi
     9606done
     9607  done
     9608IFS=$as_save_IFS
     9609
     9610  ;;
     9611esac
     9612fi
     9613FFMPEG=$ac_cv_path_FFMPEG
     9614if test -n "$FFMPEG"; then
     9615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
     9616$as_echo "$FFMPEG" >&6; }
     9617else
     9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     9619$as_echo "no" >&6; }
     9620fi
     9621
     9622
     9623  fi
     9624  if test "${FFMPEG}x" != "x" ; then
     9625
     9626$as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
     9627
     9628  fi
     9629fi
     9630
     9631for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h
     9632do :
     9633  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     9634ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
     9635#define __STDC_CONSTANT_MACROS 1
     9636
     9637"
     9638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     9639  cat >>confdefs.h <<_ACEOF
     9640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     9641_ACEOF
     9642
     9643fi
     9644
     9645done
     9646
     9647
     9648HAVE_FFMPEG_LIBS=""
     9649if test "${with_ffmpeg}" != "no"; then
     9650  if [ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \
     9651        "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \
     9652     \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \
     9653        "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \
     9654     \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \
     9655        "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \
     9656     \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \
     9657        "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ] ; then
     9658    HAVE_FFMPEG_LIBS="yes"
     9659
     9660$as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h
     9661
     9662  fi
     9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
     9664$as_echo_n "checking for main in -lavcodec... " >&6; }
     9665if ${ac_cv_lib_avcodec_main+:} false; then :
     9666  $as_echo_n "(cached) " >&6
     9667else
     9668  ac_check_lib_save_LIBS=$LIBS
     9669LIBS="-lavcodec  $LIBS"
     9670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9671/* end confdefs.h.  */
     9672
     9673
     9674int
     9675main ()
     9676{
     9677return main ();
     9678  ;
     9679  return 0;
     9680}
     9681_ACEOF
     9682if ac_fn_cxx_try_link "$LINENO"; then :
     9683  ac_cv_lib_avcodec_main=yes
     9684else
     9685  ac_cv_lib_avcodec_main=no
     9686fi
     9687rm -f core conftest.err conftest.$ac_objext \
     9688    conftest$ac_exeext conftest.$ac_ext
     9689LIBS=$ac_check_lib_save_LIBS
     9690fi
     9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
     9692$as_echo "$ac_cv_lib_avcodec_main" >&6; }
     9693if test "x$ac_cv_lib_avcodec_main" = xyes; then :
     9694  cat >>confdefs.h <<_ACEOF
     9695#define HAVE_LIBAVCODEC 1
     9696_ACEOF
     9697
     9698  LIBS="-lavcodec $LIBS"
     9699
     9700else
     9701  as_fn_error $? "librappture requires libavcodec" "$LINENO" 5
     9702fi
     9703
     9704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
     9705$as_echo_n "checking for main in -lavutil... " >&6; }
     9706if ${ac_cv_lib_avutil_main+:} false; then :
     9707  $as_echo_n "(cached) " >&6
     9708else
     9709  ac_check_lib_save_LIBS=$LIBS
     9710LIBS="-lavutil  $LIBS"
     9711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9712/* end confdefs.h.  */
     9713
     9714
     9715int
     9716main ()
     9717{
     9718return main ();
     9719  ;
     9720  return 0;
     9721}
     9722_ACEOF
     9723if ac_fn_cxx_try_link "$LINENO"; then :
     9724  ac_cv_lib_avutil_main=yes
     9725else
     9726  ac_cv_lib_avutil_main=no
     9727fi
     9728rm -f core conftest.err conftest.$ac_objext \
     9729    conftest$ac_exeext conftest.$ac_ext
     9730LIBS=$ac_check_lib_save_LIBS
     9731fi
     9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
     9733$as_echo "$ac_cv_lib_avutil_main" >&6; }
     9734if test "x$ac_cv_lib_avutil_main" = xyes; then :
     9735  cat >>confdefs.h <<_ACEOF
     9736#define HAVE_LIBAVUTIL 1
     9737_ACEOF
     9738
     9739  LIBS="-lavutil $LIBS"
     9740
     9741else
     9742  as_fn_error $? "librappture requires libavutil" "$LINENO" 5
     9743fi
     9744
     9745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
     9746$as_echo_n "checking for main in -lavformat... " >&6; }
     9747if ${ac_cv_lib_avformat_main+:} false; then :
     9748  $as_echo_n "(cached) " >&6
     9749else
     9750  ac_check_lib_save_LIBS=$LIBS
     9751LIBS="-lavformat  $LIBS"
     9752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9753/* end confdefs.h.  */
     9754
     9755
     9756int
     9757main ()
     9758{
     9759return main ();
     9760  ;
     9761  return 0;
     9762}
     9763_ACEOF
     9764if ac_fn_cxx_try_link "$LINENO"; then :
     9765  ac_cv_lib_avformat_main=yes
     9766else
     9767  ac_cv_lib_avformat_main=no
     9768fi
     9769rm -f core conftest.err conftest.$ac_objext \
     9770    conftest$ac_exeext conftest.$ac_ext
     9771LIBS=$ac_check_lib_save_LIBS
     9772fi
     9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
     9774$as_echo "$ac_cv_lib_avformat_main" >&6; }
     9775if test "x$ac_cv_lib_avformat_main" = xyes; then :
     9776  cat >>confdefs.h <<_ACEOF
     9777#define HAVE_LIBAVFORMAT 1
     9778_ACEOF
     9779
     9780  LIBS="-lavformat $LIBS"
     9781
     9782else
     9783  as_fn_error $? "librappture requires libavformat" "$LINENO" 5
     9784fi
     9785
     9786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
     9787$as_echo_n "checking for main in -lswscale... " >&6; }
     9788if ${ac_cv_lib_swscale_main+:} false; then :
     9789  $as_echo_n "(cached) " >&6
     9790else
     9791  ac_check_lib_save_LIBS=$LIBS
     9792LIBS="-lswscale  $LIBS"
     9793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9794/* end confdefs.h.  */
     9795
     9796
     9797int
     9798main ()
     9799{
     9800return main ();
     9801  ;
     9802  return 0;
     9803}
     9804_ACEOF
     9805if ac_fn_cxx_try_link "$LINENO"; then :
     9806  ac_cv_lib_swscale_main=yes
     9807else
     9808  ac_cv_lib_swscale_main=no
     9809fi
     9810rm -f core conftest.err conftest.$ac_objext \
     9811    conftest$ac_exeext conftest.$ac_ext
     9812LIBS=$ac_check_lib_save_LIBS
     9813fi
     9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
     9815$as_echo "$ac_cv_lib_swscale_main" >&6; }
     9816if test "x$ac_cv_lib_swscale_main" = xyes; then :
     9817  cat >>confdefs.h <<_ACEOF
     9818#define HAVE_LIBSWSCALE 1
     9819_ACEOF
     9820
     9821  LIBS="-lswscale $LIBS"
     9822
     9823fi
     9824
     9825  for ac_func in av_find_stream_info
     9826do :
     9827  ac_fn_cxx_check_func "$LINENO" "av_find_stream_info" "ac_cv_func_av_find_stream_info"
     9828if test "x$ac_cv_func_av_find_stream_info" = xyes; then :
     9829  cat >>confdefs.h <<_ACEOF
     9830#define HAVE_AV_FIND_STREAM_INFO 1
     9831_ACEOF
     9832
     9833fi
     9834done
     9835
     9836  for ac_func in av_open_input_file
     9837do :
     9838  ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
     9839if test "x$ac_cv_func_av_open_input_file" = xyes; then :
     9840  cat >>confdefs.h <<_ACEOF
     9841#define HAVE_AV_OPEN_INPUT_FILE 1
     9842_ACEOF
     9843
     9844fi
     9845done
     9846
     9847  for ac_func in avcodec_decode_video
     9848do :
     9849  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
     9850if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
     9851  cat >>confdefs.h <<_ACEOF
     9852#define HAVE_AVCODEC_DECODE_VIDEO 1
     9853_ACEOF
     9854
     9855fi
     9856done
     9857
     9858  for ac_func in avcodec_decode_video2
     9859do :
     9860  ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
     9861if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
     9862  cat >>confdefs.h <<_ACEOF
     9863#define HAVE_AVCODEC_DECODE_VIDEO2 1
     9864_ACEOF
     9865
     9866fi
     9867done
     9868
     9869  for ac_func in avcodec_open
     9870do :
     9871  ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open"
     9872if test "x$ac_cv_func_avcodec_open" = xyes; then :
     9873  cat >>confdefs.h <<_ACEOF
     9874#define HAVE_AVCODEC_OPEN 1
     9875_ACEOF
     9876
     9877fi
     9878done
     9879
     9880  for ac_func in avcodec_open2
     9881do :
     9882  ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2"
     9883if test "x$ac_cv_func_avcodec_open2" = xyes; then :
     9884  cat >>confdefs.h <<_ACEOF
     9885#define HAVE_AVCODEC_OPEN2 1
     9886_ACEOF
     9887
     9888fi
     9889done
     9890
     9891  for ac_func in avformat_find_stream_info
     9892do :
     9893  ac_fn_cxx_check_func "$LINENO" "avformat_find_stream_info" "ac_cv_func_avformat_find_stream_info"
     9894if test "x$ac_cv_func_avformat_find_stream_info" = xyes; then :
     9895  cat >>confdefs.h <<_ACEOF
     9896#define HAVE_AVFORMAT_FIND_STREAM_INFO 1
     9897_ACEOF
     9898
     9899fi
     9900done
     9901
     9902  for ac_func in avformat_open_input
     9903do :
     9904  ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
     9905if test "x$ac_cv_func_avformat_open_input" = xyes; then :
     9906  cat >>confdefs.h <<_ACEOF
     9907#define HAVE_AVFORMAT_OPEN_INPUT 1
     9908_ACEOF
     9909
     9910fi
     9911done
     9912
     9913  for ac_func in avio_close
     9914do :
     9915  ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
     9916if test "x$ac_cv_func_avio_close" = xyes; then :
     9917  cat >>confdefs.h <<_ACEOF
     9918#define HAVE_AVIO_CLOSE 1
     9919_ACEOF
     9920
     9921fi
     9922done
     9923
     9924  for ac_func in img_convert
     9925do :
     9926  ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
     9927if test "x$ac_cv_func_img_convert" = xyes; then :
     9928  cat >>confdefs.h <<_ACEOF
     9929#define HAVE_IMG_CONVERT 1
     9930_ACEOF
     9931
     9932fi
     9933done
     9934
     9935  for ac_func in sws_getCachedContext
     9936do :
     9937  ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
     9938if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
     9939  cat >>confdefs.h <<_ACEOF
     9940#define HAVE_SWS_GETCACHEDCONTEXT 1
     9941_ACEOF
     9942
     9943fi
     9944done
     9945
     9946  for ac_func in sws_scale
     9947do :
     9948  ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
     9949if test "x$ac_cv_func_sws_scale" = xyes; then :
     9950  cat >>confdefs.h <<_ACEOF
     9951#define HAVE_SWS_SCALE 1
     9952_ACEOF
     9953
     9954fi
     9955done
     9956
     9957  for ac_func in url_close
     9958do :
     9959  ac_fn_cxx_check_func "$LINENO" "url_close" "ac_cv_func_url_close"
     9960if test "x$ac_cv_func_url_close" = xyes; then :
     9961  cat >>confdefs.h <<_ACEOF
     9962#define HAVE_URL_CLOSE 1
     9963_ACEOF
     9964
     9965fi
     9966done
     9967
     9968  for ac_func in av_close_input_file
     9969do :
     9970  ac_fn_cxx_check_func "$LINENO" "av_close_input_file" "ac_cv_func_av_close_input_file"
     9971if test "x$ac_cv_func_av_close_input_file" = xyes; then :
     9972  cat >>confdefs.h <<_ACEOF
     9973#define HAVE_AV_CLOSE_INPUT_FILE 1
     9974_ACEOF
     9975
     9976fi
     9977done
     9978
     9979  for ac_func in avformat_close_input
     9980do :
     9981  ac_fn_cxx_check_func "$LINENO" "avformat_close_input" "ac_cv_func_avformat_close_input"
     9982if test "x$ac_cv_func_avformat_close_input" = xyes; then :
     9983  cat >>confdefs.h <<_ACEOF
     9984#define HAVE_AVFORMAT_CLOSE_INPUT 1
     9985_ACEOF
     9986
     9987fi
     9988done
     9989
     9990
     9991  ac_fn_cxx_check_func "$LINENO" "avcodec_find_decoder" "ac_cv_func_avcodec_find_decoder"
     9992if test "x$ac_cv_func_avcodec_find_decoder" = xyes; then :
     9993
     9994else
     9995  as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 5
     9996fi
     9997
     9998  ac_fn_cxx_check_func "$LINENO" "avcodec_alloc_frame" "ac_cv_func_avcodec_alloc_frame"
     9999if test "x$ac_cv_func_avcodec_alloc_frame" = xyes; then :
     10000
     10001else
     10002  as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 5
     10003fi
     10004
     10005  ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
     10006if test "x$ac_cv_func_av_rescale_q" = xyes; then :
     10007
     10008else
     10009  as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
     10010fi
     10011
     10012  ac_fn_cxx_check_func "$LINENO" "av_read_frame" "ac_cv_func_av_read_frame"
     10013if test "x$ac_cv_func_av_read_frame" = xyes; then :
     10014
     10015else
     10016  as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 5
     10017fi
     10018
     10019  ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
     10020if test "x$ac_cv_func_av_free" = xyes; then :
     10021
     10022else
     10023  as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 5
     10024fi
     10025
     10026  ac_fn_cxx_check_func "$LINENO" "avcodec_default_release_buffer" "ac_cv_func_avcodec_default_release_buffer"
     10027if test "x$ac_cv_func_avcodec_default_release_buffer" = xyes; then :
     10028
     10029else
     10030  as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 5
     10031fi
     10032
     10033  ac_fn_cxx_check_func "$LINENO" "avpicture_get_size" "ac_cv_func_avpicture_get_size"
     10034if test "x$ac_cv_func_avpicture_get_size" = xyes; then :
     10035
     10036else
     10037  as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 5
     10038fi
     10039
     10040  ac_fn_cxx_check_func "$LINENO" "avpicture_fill" "ac_cv_func_avpicture_fill"
     10041if test "x$ac_cv_func_avpicture_fill" = xyes; then :
     10042
     10043else
     10044  as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 5
     10045fi
     10046
     10047  for ac_func in sws_getCachedContext
     10048do :
     10049  ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
     10050if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
     10051  cat >>confdefs.h <<_ACEOF
     10052#define HAVE_SWS_GETCACHEDCONTEXT 1
     10053_ACEOF
     10054
     10055fi
     10056done
     10057
     10058  for ac_func in img_convert
     10059do :
     10060  ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
     10061if test "x$ac_cv_func_img_convert" = xyes; then :
     10062  cat >>confdefs.h <<_ACEOF
     10063#define HAVE_IMG_CONVERT 1
     10064_ACEOF
     10065
     10066fi
     10067done
     10068
     10069  for ac_func in sws_scale
     10070do :
     10071  ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
     10072if test "x$ac_cv_func_sws_scale" = xyes; then :
     10073  cat >>confdefs.h <<_ACEOF
     10074#define HAVE_SWS_SCALE 1
     10075_ACEOF
     10076
     10077fi
     10078done
     10079
     10080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10081/* end confdefs.h.  */
     10082
     10083#define __STDC_CONSTANT_MACROS 1
     10084#include <stdlib.h>
     10085#ifdef HAVE_FFMPEG_AVCODEC_H
     10086# include <ffmpeg/avcodec.h>
     10087#endif
     10088#ifdef HAVE_LIBAVCODEC_AVCODEC_H
     10089# include <libavcodec/avcodec.h>
     10090#endif
     10091int x = AVMEDIA_TYPE_VIDEO;
     10092
     10093int
     10094main ()
     10095{
     10096
     10097  ;
     10098  return 0;
     10099}
     10100_ACEOF
     10101if ac_fn_cxx_try_compile "$LINENO"; then :
     10102  ac_avmedia_type_video="yes"
     10103else
     10104  ac_avmedia_type_video="no"
     10105fi
     10106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10107  if test "$ac_avmedia_type_video" == "yes" ; then
     10108
     10109$as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
     10110
     10111  fi
     10112fi
     10113
     10114
     10115
     10116
    778810117
    778910118
     
    787210201
    787310202
     10203
    787410204ac_configure_args="--disable-threads --enable-shared"
    787510205
     
    787810208
    787910209
    7880 ac_config_files="$ac_config_files Makefile objects/Makefile system/Makefile builder/Makefile builder/scripts/Makefile builder/scripts/tclIndex builder/pkgIndex.tcl"
     10210ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/scripts/Makefile lang/tcl/src/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile"
    788110211
    788210212cat >confcache <<\_ACEOF
     
    797010300test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    797110301
    7972 # Transform confdefs.h into DEFS.
    7973 # Protect against shell expansion while executing Makefile rules.
    7974 # Protect against Makefile macro expansion.
    7975 #
    7976 # If the first sed substitution is executed (which looks for macros that
    7977 # take arguments), then branch to the quote section.  Otherwise,
    7978 # look for a macro that doesn't take arguments.
    7979 ac_script='
    7980 :mline
    7981 /\\$/{
    7982  N
    7983  s,\\\n,,
    7984  b mline
    7985 }
    7986 t clear
    7987 :clear
    7988 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
    7989 t quote
    7990 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
    7991 t quote
    7992 b any
    7993 :quote
    7994 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
    7995 s/\[/\\&/g
    7996 s/\]/\\&/g
    7997 s/\$/$$/g
    7998 H
    7999 :any
    8000 ${
    8001         g
    8002         s/^\n//
    8003         s/\n/ /g
    8004         p
    8005 }
    8006 '
    8007 DEFS=`sed -n "$ac_script" confdefs.h`
    8008 
     10302DEFS=-DHAVE_CONFIG_H
    800910303
    801010304ac_libobjs=
     
    844110735esac
    844210736
     10737case $ac_config_headers in *"
     10738"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     10739esac
    844310740
    844410741
     
    844610743# Files that config.status was made for.
    844710744config_files="$ac_config_files"
     10745config_headers="$ac_config_headers"
    844810746
    844910747_ACEOF
     
    846610764      --file=FILE[:TEMPLATE]
    846710765                   instantiate the configuration file FILE
     10766      --header=FILE[:TEMPLATE]
     10767                   instantiate the configuration header FILE
    846810768
    846910769Configuration files:
    847010770$config_files
     10771
     10772Configuration headers:
     10773$config_headers
    847110774
    847210775Report bugs to <rappture@nanohub.org>."
     
    853210835    as_fn_append CONFIG_FILES " '$ac_optarg'"
    853310836    ac_need_defaults=false;;
    8534   --he | --h |  --help | --hel | -h )
     10837  --header | --heade | --head | --hea )
     10838    $ac_shift
     10839    case $ac_optarg in
     10840    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     10841    esac
     10842    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     10843    ac_need_defaults=false;;
     10844  --he | --h)
     10845    # Conflict between --help and --header
     10846    as_fn_error $? "ambiguous option: \`$1'
     10847Try \`$0 --help' for more information.";;
     10848  --help | --hel | -h )
    853510849    $as_echo "$ac_cs_usage"; exit ;;
    853610850  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    858810902do
    858910903  case $ac_config_target in
     10904    "src/core/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/core/config.h" ;;
    859010905    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    8591     "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
    8592     "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;;
     10906    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
     10907    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
     10908    "src/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/core/Makefile" ;;
     10909    "src/core2/Makefile") CONFIG_FILES="$CONFIG_FILES src/core2/Makefile" ;;
     10910    "src/objects/Makefile") CONFIG_FILES="$CONFIG_FILES src/objects/Makefile" ;;
     10911    "src/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES src/objects/RpHash.h" ;;
     10912    "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
     10913    "gui/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gui/apps/Makefile" ;;
     10914    "gui/apps/about") CONFIG_FILES="$CONFIG_FILES gui/apps/about" ;;
     10915    "gui/apps/copy_rappture_examples") CONFIG_FILES="$CONFIG_FILES gui/apps/copy_rappture_examples" ;;
     10916    "gui/apps/encodedata") CONFIG_FILES="$CONFIG_FILES gui/apps/encodedata" ;;
     10917    "gui/apps/rappture") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;;
     10918    "gui/apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture-csh.env" ;;
     10919    "gui/apps/rappture.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;;
     10920    "gui/apps/rappture.use") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.use" ;;
     10921    "gui/apps/rerun") CONFIG_FILES="$CONFIG_FILES gui/apps/rerun" ;;
     10922    "gui/apps/simsim") CONFIG_FILES="$CONFIG_FILES gui/apps/simsim" ;;
     10923    "gui/apps/xmldiff") CONFIG_FILES="$CONFIG_FILES gui/apps/xmldiff" ;;
     10924    "gui/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES gui/pkgIndex.tcl" ;;
     10925    "gui/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES gui/scripts/Makefile" ;;
     10926    "gui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gui/src/Makefile" ;;
    859310927    "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
     10928    "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
    859410929    "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
    8595     "builder/scripts/tclIndex") CONFIG_FILES="$CONFIG_FILES builder/scripts/tclIndex" ;;
    8596     "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
     10930    "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
     10931    "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
     10932    "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;
     10933    "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
     10934    "lang/java/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/Makefile" ;;
     10935    "lang/java/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/rappture/Makefile" ;;
     10936    "lang/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile" ;;
     10937    "lang/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile.PL" ;;
     10938    "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
     10939    "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
     10940    "lang/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES lang/matlab/Makefile" ;;
     10941    "lang/octave/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/Makefile" ;;
     10942    "lang/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave2/Makefile" ;;
     10943    "lang/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave3/Makefile" ;;
     10944    "lang/R/Makefile") CONFIG_FILES="$CONFIG_FILES lang/R/Makefile" ;;
     10945    "lang/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES lang/ruby/Makefile" ;;
     10946    "lang/ruby/build.rb") CONFIG_FILES="$CONFIG_FILES lang/ruby/build.rb" ;;
     10947    "lang/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/Makefile" ;;
     10948    "lang/tcl/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES lang/tcl/pkgIndex.tcl" ;;
     10949    "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;
     10950    "lang/tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/src/Makefile" ;;
     10951    "lang/tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/tests/Makefile" ;;
     10952    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     10953    "examples/3D/Makefile") CONFIG_FILES="$CONFIG_FILES examples/3D/Makefile" ;;
     10954    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
     10955    "examples/app-fermi/2.0/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/2.0/Makefile" ;;
     10956    "examples/app-fermi/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/Makefile" ;;
     10957    "examples/app-fermi/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
     10958    "examples/app-fermi/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
     10959    "examples/app-fermi/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/java/Makefile" ;;
     10960    "examples/app-fermi/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/Makefile" ;;
     10961    "examples/app-fermi/matlab/compiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/compiled/Makefile" ;;
     10962    "examples/app-fermi/matlab/uncompiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/uncompiled/Makefile" ;;
     10963    "examples/app-fermi/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave2/Makefile" ;;
     10964    "examples/app-fermi/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave3/Makefile" ;;
     10965    "examples/app-fermi/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/Makefile" ;;
     10966    "examples/app-fermi/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/perl/Makefile" ;;
     10967    "examples/app-fermi/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/python/Makefile" ;;
     10968    "examples/app-fermi/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/ruby/Makefile" ;;
     10969    "examples/app-fermi/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/tcl/Makefile" ;;
     10970    "examples/app-fermi/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/Makefile" ;;
     10971    "examples/app-fermi/wrapper/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
     10972    "examples/app-fermi/wrapper/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/perl/Makefile" ;;
     10973    "examples/app-fermi/wrapper/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/python/Makefile" ;;
     10974    "examples/app-fermi/wrapper/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/tcl/Makefile" ;;
     10975    "examples/app-fermi/R/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/R/Makefile" ;;
     10976    "examples/c-example/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
     10977    "examples/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES examples/canvas/Makefile" ;;
     10978    "examples/demo.bash") CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
     10979    "examples/flow/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/Makefile" ;;
     10980    "examples/flow/demo1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo1/Makefile" ;;
     10981    "examples/flow/demo2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo2/Makefile" ;;
     10982    "examples/flow/demo3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo3/Makefile" ;;
     10983    "examples/graph/Makefile") CONFIG_FILES="$CONFIG_FILES examples/graph/Makefile" ;;
     10984    "examples/objects/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/Makefile" ;;
     10985    "examples/objects/axis/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/axis/Makefile" ;;
     10986    "examples/objects/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/curve/Makefile" ;;
     10987    "examples/objects/dxWriter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/dxWriter/Makefile" ;;
     10988    "examples/objects/floatBuffer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/floatBuffer/Makefile" ;;
     10989    "examples/objects/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/histogram/Makefile" ;;
     10990    "examples/objects/library/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/library/Makefile" ;;
     10991    "examples/objects/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/number/Makefile" ;;
     10992    "examples/objects/path/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/path/Makefile" ;;
     10993    "examples/objects/plot/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/plot/Makefile" ;;
     10994    "examples/objects/scatter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/scatter/Makefile" ;;
     10995    "examples/objects/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/string/Makefile" ;;
     10996    "examples/objects/tree/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/tree/Makefile" ;;
     10997    "examples/objects/xmlparser/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/xmlparser/Makefile" ;;
     10998    "examples/zoo/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/Makefile" ;;
     10999    "examples/zoo/binary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/binary/Makefile" ;;
     11000    "examples/zoo/boolean/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/boolean/Makefile" ;;
     11001    "examples/zoo/choice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/choice/Makefile" ;;
     11002    "examples/zoo/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/curve/Makefile" ;;
     11003    "examples/zoo/drawing/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/drawing/Makefile" ;;
     11004    "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;
     11005    "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;
     11006    "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;
     11007    "examples/zoo/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/histogram/Makefile" ;;
     11008    "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;
     11009    "examples/zoo/image/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/docs/Makefile" ;;
     11010    "examples/zoo/image/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/examples/Makefile" ;;
     11011    "examples/zoo/integer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer/Makefile" ;;
     11012    "examples/zoo/integer2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer2/Makefile" ;;
     11013    "examples/zoo/loader/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/Makefile" ;;
     11014    "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;;
     11015    "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;;
     11016    "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;;
     11017    "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;;
     11018    "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;;
     11019    "examples/zoo/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number/Makefile" ;;
     11020    "examples/zoo/number2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number2/Makefile" ;;
     11021    "examples/zoo/parallelepiped/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/parallelepiped/Makefile" ;;
     11022    "examples/zoo/periodicelement/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/periodicelement/Makefile" ;;
     11023    "examples/zoo/phase/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/phase/Makefile" ;;
     11024    "examples/zoo/sequence/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/Makefile" ;;
     11025    "examples/zoo/sequence/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/examples/Makefile" ;;
     11026    "examples/zoo/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/string/Makefile" ;;
     11027    "examples/zoo/structure/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/Makefile" ;;
     11028    "examples/zoo/structure/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/examples/Makefile" ;;
     11029    "examples/zoo/table/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/table/Makefile" ;;
     11030    "video/Makefile") CONFIG_FILES="$CONFIG_FILES video/Makefile" ;;
     11031    "video/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES video/pkgIndex.tcl" ;;
     11032    "oldtest/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/Makefile" ;;
     11033    "oldtest/src/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/src/Makefile" ;;
    859711034
    859811035  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     
    860711044if $ac_need_defaults; then
    860811045  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     11046  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    860911047fi
    861011048
     
    879411232fi # test -n "$CONFIG_FILES"
    879511233
    8796 
    8797 eval set X "  :F $CONFIG_FILES      "
     11234# Set up the scripts for CONFIG_HEADERS section.
     11235# No need to generate them if there are no CONFIG_HEADERS.
     11236# This happens for instance with `./config.status Makefile'.
     11237if test -n "$CONFIG_HEADERS"; then
     11238cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     11239BEGIN {
     11240_ACEOF
     11241
     11242# Transform confdefs.h into an awk script `defines.awk', embedded as
     11243# here-document in config.status, that substitutes the proper values into
     11244# config.h.in to produce config.h.
     11245
     11246# Create a delimiter string that does not exist in confdefs.h, to ease
     11247# handling of long lines.
     11248ac_delim='%!_!# '
     11249for ac_last_try in false false :; do
     11250  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     11251  if test -z "$ac_tt"; then
     11252    break
     11253  elif $ac_last_try; then
     11254    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     11255  else
     11256    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     11257  fi
     11258done
     11259
     11260# For the awk script, D is an array of macro values keyed by name,
     11261# likewise P contains macro parameters if any.  Preserve backslash
     11262# newline sequences.
     11263
     11264ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     11265sed -n '
     11266s/.\{148\}/&'"$ac_delim"'/g
     11267t rset
     11268:rset
     11269s/^[     ]*#[    ]*define[       ][      ]*/ /
     11270t def
     11271d
     11272:def
     11273s/\\$//
     11274t bsnl
     11275s/["\\]/\\&/g
     11276s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     11277D["\1"]=" \3"/p
     11278s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
     11279d
     11280:bsnl
     11281s/["\\]/\\&/g
     11282s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     11283D["\1"]=" \3\\\\\\n"\\/p
     11284t cont
     11285s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     11286t cont
     11287d
     11288:cont
     11289n
     11290s/.\{148\}/&'"$ac_delim"'/g
     11291t clear
     11292:clear
     11293s/\\$//
     11294t bsnlc
     11295s/["\\]/\\&/g; s/^/"/; s/$/"/p
     11296d
     11297:bsnlc
     11298s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     11299b cont
     11300' <confdefs.h | sed '
     11301s/'"$ac_delim"'/"\\\
     11302"/g' >>$CONFIG_STATUS || ac_write_fail=1
     11303
     11304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     11305  for (key in D) D_is_set[key] = 1
     11306  FS = ""
     11307}
     11308/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     11309  line = \$ 0
     11310  split(line, arg, " ")
     11311  if (arg[1] == "#") {
     11312    defundef = arg[2]
     11313    mac1 = arg[3]
     11314  } else {
     11315    defundef = substr(arg[1], 2)
     11316    mac1 = arg[2]
     11317  }
     11318  split(mac1, mac2, "(") #)
     11319  macro = mac2[1]
     11320  prefix = substr(line, 1, index(line, defundef) - 1)
     11321  if (D_is_set[macro]) {
     11322    # Preserve the white space surrounding the "#".
     11323    print prefix "define", macro P[macro] D[macro]
     11324    next
     11325  } else {
     11326    # Replace #undef with comments.  This is necessary, for example,
     11327    # in the case of _POSIX_SOURCE, which is predefined and required
     11328    # on some systems where configure will not decide to define it.
     11329    if (defundef == "undef") {
     11330      print "/*", prefix defundef, macro, "*/"
     11331      next
     11332    }
     11333  }
     11334}
     11335{ print }
     11336_ACAWK
     11337_ACEOF
     11338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     11339  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     11340fi # test -n "$CONFIG_HEADERS"
     11341
     11342
     11343eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
    879811344shift
    879911345for ac_tag
     
    901411560  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    901511561 ;;
    9016 
     11562  :H)
     11563  #
     11564  # CONFIG_HEADER
     11565  #
     11566  if test x"$ac_file" != x-; then
     11567    {
     11568      $as_echo "/* $configure_input  */" \
     11569      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     11570    } >"$ac_tmp/config.h" \
     11571      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     11572    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     11573      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     11574$as_echo "$as_me: $ac_file is unchanged" >&6;}
     11575    else
     11576      rm -f "$ac_file"
     11577      mv "$ac_tmp/config.h" "$ac_file" \
     11578        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     11579    fi
     11580  else
     11581    $as_echo "/* $configure_input  */" \
     11582      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     11583      || as_fn_error $? "could not create -" "$LINENO" 5
     11584  fi
     11585 ;;
    901711586
    901811587
Note: See TracChangeset for help on using the changeset viewer.