Skip to content
This repository
Browse code

Add a "make coverage" target for gcov/lcov output.

Thanks to Paul Bauman for figuring this all out.

Looks like we're only getting 30-40% coverage from "make check" at present.
  • Loading branch information...
commit 36284c2565f1ef1e862411318d9a8394eef2793b 1 parent b174c5c
roystgnr authored January 19, 2013

Showing 106 changed files with 26,130 additions and 399 deletions. Show diff stats Hide diff stats

  1. 30  Makefile.am
  2. 31  Makefile.in
  3. 1  aclocal.m4
  4. 2,130  configure
  5. 9  configure.ac
  6. 6  contrib/Makefile.in
  7. 6  contrib/boost/include/Makefile.in
  8. 6  contrib/exodusii/Lib/Makefile.in
  9. 6  contrib/fparser/Makefile.in
  10. 6  contrib/fparser/extrasrc/Makefile.in
  11. 6  contrib/gmv/Makefile.in
  12. 6  contrib/gzstream/Makefile.in
  13. 6  contrib/laspack/Makefile.in
  14. 491  contrib/lcov/lcov-1.10/CHANGES
  15. 339  contrib/lcov/lcov-1.10/COPYING
  16. 137  contrib/lcov/lcov-1.10/README
  17. 226  contrib/lcov/lcov-1.10/bin/gendesc
  18. 5,799  contrib/lcov/lcov-1.10/bin/genhtml
  19. 3,657  contrib/lcov/lcov-1.10/bin/geninfo
  20. 389  contrib/lcov/lcov-1.10/bin/genpng
  21. 71  contrib/lcov/lcov-1.10/bin/install.sh
  22. 4,303  contrib/lcov/lcov-1.10/bin/lcov
  23. 146  contrib/lcov/lcov-1.10/bin/updateversion.pl
  24. 1  contrib/lcov/lcov-1.10/contrib/galaxy/CHANGES
  25. 48  contrib/lcov/lcov-1.10/contrib/galaxy/README
  26. 195  contrib/lcov/lcov-1.10/contrib/galaxy/conglomerate_functions.pl
  27. 129  contrib/lcov/lcov-1.10/contrib/galaxy/gen_makefile.sh
  28. 1,238  contrib/lcov/lcov-1.10/contrib/galaxy/genflat.pl
  29. 312  contrib/lcov/lcov-1.10/contrib/galaxy/posterize.pl
  30. 2,990  contrib/lcov/lcov-1.10/descriptions.tests
  31. 6  contrib/lcov/lcov-1.10/example/README
  32. 10  contrib/lcov/lcov-1.10/example/descriptions.txt
  33. 60  contrib/lcov/lcov-1.10/example/example.c
  34. 6  contrib/lcov/lcov-1.10/example/gauss.h
  35. 6  contrib/lcov/lcov-1.10/example/iterate.h
  36. 48  contrib/lcov/lcov-1.10/example/methods/gauss.c
  37. 45  contrib/lcov/lcov-1.10/example/methods/iterate.c
  38. 157  contrib/lcov/lcov-1.10/lcovrc
  39. 78  contrib/lcov/lcov-1.10/man/gendesc.1
  40. 569  contrib/lcov/lcov-1.10/man/genhtml.1
  41. 512  contrib/lcov/lcov-1.10/man/geninfo.1
  42. 101  contrib/lcov/lcov-1.10/man/genpng.1
  43. 883  contrib/lcov/lcov-1.10/man/lcov.1
  44. 821  contrib/lcov/lcov-1.10/man/lcovrc.5
  45. 51  contrib/lcov/lcov-1.10/rpm/lcov.spec
  46. 6  contrib/libHilbert/Makefile.in
  47. 6  contrib/metis/Makefile.in
  48. 6  contrib/nanoflann/Makefile.in
  49. 6  contrib/nemesis/Lib/Makefile.in
  50. 6  contrib/netcdf/Lib/Makefile.in
  51. 6  contrib/parmetis/Makefile.in
  52. 6  contrib/sfcurves/Makefile.in
  53. 6  contrib/tecplot/tecio/Makefile.in
  54. 6  contrib/tetgen/Makefile.in
  55. 6  contrib/triangle/Makefile.in
  56. 6  examples/Makefile.in
  57. 6  examples/adaptivity/adaptivity_ex1/Makefile.in
  58. 6  examples/adaptivity/adaptivity_ex2/Makefile.in
  59. 6  examples/adaptivity/adaptivity_ex3/Makefile.in
  60. 6  examples/adaptivity/adaptivity_ex4/Makefile.in
  61. 6  examples/adaptivity/adaptivity_ex5/Makefile.in
  62. 6  examples/adjoints/adjoints_ex1/Makefile.in
  63. 6  examples/adjoints/adjoints_ex2/Makefile.in
  64. 6  examples/adjoints/adjoints_ex3/Makefile.in
  65. 6  examples/adjoints/adjoints_ex4/Makefile.in
  66. 6  examples/eigenproblems/eigenproblems_ex1/Makefile.in
  67. 6  examples/eigenproblems/eigenproblems_ex2/Makefile.in
  68. 6  examples/eigenproblems/eigenproblems_ex3/Makefile.in
  69. 6  examples/fem_system/fem_system_ex1/Makefile.in
  70. 6  examples/introduction/introduction_ex1/Makefile.in
  71. 6  examples/introduction/introduction_ex2/Makefile.in
  72. 6  examples/introduction/introduction_ex3/Makefile.in
  73. 6  examples/introduction/introduction_ex4/Makefile.in
  74. 6  examples/introduction/introduction_ex5/Makefile.in
  75. 6  examples/miscellaneous/miscellaneous_ex1/Makefile.in
  76. 6  examples/miscellaneous/miscellaneous_ex2/Makefile.in
  77. 6  examples/miscellaneous/miscellaneous_ex3/Makefile.in
  78. 6  examples/miscellaneous/miscellaneous_ex4/Makefile.in
  79. 6  examples/miscellaneous/miscellaneous_ex5/Makefile.in
  80. 6  examples/miscellaneous/miscellaneous_ex6/Makefile.in
  81. 6  examples/miscellaneous/miscellaneous_ex7/Makefile.in
  82. 6  examples/miscellaneous/miscellaneous_ex8/Makefile.in
  83. 6  examples/reduced_basis/reduced_basis_ex1/Makefile.in
  84. 6  examples/reduced_basis/reduced_basis_ex2/Makefile.in
  85. 6  examples/reduced_basis/reduced_basis_ex3/Makefile.in
  86. 6  examples/reduced_basis/reduced_basis_ex4/Makefile.in
  87. 6  examples/reduced_basis/reduced_basis_ex5/Makefile.in
  88. 6  examples/reduced_basis/reduced_basis_ex6/Makefile.in
  89. 6  examples/reduced_basis/reduced_basis_ex7/Makefile.in
  90. 6  examples/subdomains/subdomains_ex1/Makefile.in
  91. 6  examples/subdomains/subdomains_ex2/Makefile.in
  92. 6  examples/systems_of_equations/systems_of_equations_ex1/Makefile.in
  93. 6  examples/systems_of_equations/systems_of_equations_ex2/Makefile.in
  94. 6  examples/systems_of_equations/systems_of_equations_ex3/Makefile.in
  95. 6  examples/systems_of_equations/systems_of_equations_ex4/Makefile.in
  96. 6  examples/systems_of_equations/systems_of_equations_ex5/Makefile.in
  97. 6  examples/systems_of_equations/systems_of_equations_ex6/Makefile.in
  98. 6  examples/transient/transient_ex1/Makefile.in
  99. 6  examples/transient/transient_ex2/Makefile.in
  100. 6  examples/vector_fe/vector_fe_ex1/Makefile.in
  101. 6  examples/vector_fe/vector_fe_ex2/Makefile.in
  102. 6  examples/vector_fe/vector_fe_ex3/Makefile.in
  103. 6  include/Makefile.in
  104. 6  include/libmesh/Makefile.in
  105. 96  m4/coverage.m4
  106. 6  tests/Makefile.in
30  Makefile.am
@@ -436,3 +436,33 @@ run_examples:
436 436
 test_headers:
437 437
 	@$(MAKE) -C $(top_builddir)/include/libmesh
438 438
 	@cd $(top_builddir)/include && $(MAKE) test_headers
  439
+
  440
+# -------------------------------------------
  441
+# Optional support for code coverage analysis
  442
+# -------------------------------------------
  443
+
  444
+if CODE_COVERAGE_ENABLED
  445
+
  446
+lcov_dir=$(top_builddir)/doc/lcov/html
  447
+lcov_bin=$(top_srcdir)/contrib/lcov/lcov-1.10/bin
  448
+
  449
+# General philosophy is to maintain code coverage for the
  450
+# base library as generated by "make check" tests. 
  451
+
  452
+lcov-report:
  453
+	@mkdir -p $(lcov_dir)
  454
+	$(lcov_bin)/lcov --compat-libtool --directory . --capture --output-file $(lcov_dir)/lcov.info
  455
+	$(lcov_bin)/lcov --list-full-path -l $(lcov_dir)/lcov.info | grep -v "`cd -P $(top_srcdir)/src && pwd`" | cut -d\| -f1 > $(lcov_dir)/remove
  456
+	$(lcov_bin)/lcov -q -r $(lcov_dir)/lcov.info `cat $(lcov_dir)/remove` > $(lcov_dir)/lcov.cleaned.info
  457
+	@rm $(lcov_dir)/remove
  458
+	@mv $(lcov_dir)/lcov.cleaned.info $(lcov_dir)/lcov.info
  459
+	$(lcov_bin)/genhtml -t "libMesh" -o $(lcov_dir) $(lcov_dir)/lcov.info
  460
+
  461
+lcov-reset:
  462
+	@rm -rf $(lcov_dir)
  463
+	@find . -name "*.gcda" -exec rm {} \;
  464
+	$(lcov_bin)/lcov --directory . --zerocounters
  465
+
  466
+coverage: lcov-reset check lcov-report
  467
+
  468
+endif
31  Makefile.in
@@ -103,7 +103,8 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_cxx_rtti.m4 \
103 103
 	$(top_srcdir)/m4/ax_tls.m4 $(top_srcdir)/m4/backtrace.m4 \
104 104
 	$(top_srcdir)/m4/boost.m4 $(top_srcdir)/m4/compiler.m4 \
105 105
 	$(top_srcdir)/m4/config_environment.m4 \
106  
-	$(top_srcdir)/m4/config_summary.m4 $(top_srcdir)/m4/cppunit.m4 \
  106
+	$(top_srcdir)/m4/config_summary.m4 \
  107
+	$(top_srcdir)/m4/coverage.m4 $(top_srcdir)/m4/cppunit.m4 \
107 108
 	$(top_srcdir)/m4/demangle.m4 $(top_srcdir)/m4/eigen.m4 \
108 109
 	$(top_srcdir)/m4/exodus.m4 $(top_srcdir)/m4/feexcept.m4 \
109 110
 	$(top_srcdir)/m4/fparser.m4 $(top_srcdir)/m4/glpk.m4 \
@@ -3837,6 +3838,7 @@ FGREP = @FGREP@
3837 3838
 FLIBS = @FLIBS@
3838 3839
 FPARSER_INCLUDE = @FPARSER_INCLUDE@
3839 3840
 FPARSER_LIBRARY = @FPARSER_LIBRARY@
  3841
+GCOV_FLAGS = @GCOV_FLAGS@
3840 3842
 GIT_REVISION = @GIT_REVISION@
3841 3843
 GLPK_INCLUDE = @GLPK_INCLUDE@
3842 3844
 GLPK_LIBRARY = @GLPK_LIBRARY@
@@ -3847,6 +3849,7 @@ GXX_VERSION = @GXX_VERSION@
3847 3849
 GZSTREAM_INCLUDE = @GZSTREAM_INCLUDE@
3848 3850
 GZSTREAM_LIB = @GZSTREAM_LIB@
3849 3851
 HAVE_DOT = @HAVE_DOT@
  3852
+HAVE_GCOV_TOOLS = @HAVE_GCOV_TOOLS@
3850 3853
 INSTALL = @INSTALL@
3851 3854
 INSTALL_DATA = @INSTALL_DATA@
3852 3855
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -3984,6 +3987,7 @@ dvidir = @dvidir@
3984 3987
 enablelegacyincludepaths = @enablelegacyincludepaths@
3985 3988
 exec_prefix = @exec_prefix@
3986 3989
 gitquery = @gitquery@
  3990
+have_gcov = @have_gcov@
3987 3991
 host = @host@
3988 3992
 host_alias = @host_alias@
3989 3993
 host_cpu = @host_cpu@
@@ -4685,6 +4689,12 @@ solution_components_dbg_LDADD = libmesh_dbg.la
4685 4689
 # Support for libmesh-config in $(exec_prefix)/bin
4686 4690
 libmesh_configdir = $(exec_prefix)/bin
4687 4691
 libmesh_config_SCRIPTS = contrib/bin/libmesh-config
  4692
+
  4693
+# -------------------------------------------
  4694
+# Optional support for code coverage analysis
  4695
+# -------------------------------------------
  4696
+@CODE_COVERAGE_ENABLED_TRUE@lcov_dir = $(top_builddir)/doc/lcov/html
  4697
+@CODE_COVERAGE_ENABLED_TRUE@lcov_bin = $(top_srcdir)/contrib/lcov/lcov-1.10/bin
4688 4698
 all: all-recursive
4689 4699
 
4690 4700
 .SUFFIXES:
@@ -26293,6 +26303,25 @@ test_headers:
26293 26303
 	@$(MAKE) -C $(top_builddir)/include/libmesh
26294 26304
 	@cd $(top_builddir)/include && $(MAKE) test_headers
26295 26305
 
  26306
+# General philosophy is to maintain code coverage for the
  26307
+# base library as generated by "make check" tests. 
  26308
+
  26309
+@CODE_COVERAGE_ENABLED_TRUE@lcov-report:
  26310
+@CODE_COVERAGE_ENABLED_TRUE@	@mkdir -p $(lcov_dir)
  26311
+@CODE_COVERAGE_ENABLED_TRUE@	$(lcov_bin)/lcov --compat-libtool --directory . --capture --output-file $(lcov_dir)/lcov.info
  26312
+@CODE_COVERAGE_ENABLED_TRUE@	$(lcov_bin)/lcov --list-full-path -l $(lcov_dir)/lcov.info | grep -v "`cd -P $(top_srcdir)/src && pwd`" | cut -d\| -f1 > $(lcov_dir)/remove
  26313
+@CODE_COVERAGE_ENABLED_TRUE@	$(lcov_bin)/lcov -q -r $(lcov_dir)/lcov.info `cat $(lcov_dir)/remove` > $(lcov_dir)/lcov.cleaned.info
  26314
+@CODE_COVERAGE_ENABLED_TRUE@	@rm $(lcov_dir)/remove
  26315
+@CODE_COVERAGE_ENABLED_TRUE@	@mv $(lcov_dir)/lcov.cleaned.info $(lcov_dir)/lcov.info
  26316
+@CODE_COVERAGE_ENABLED_TRUE@	$(lcov_bin)/genhtml -t "libMesh" -o $(lcov_dir) $(lcov_dir)/lcov.info
  26317
+
  26318
+@CODE_COVERAGE_ENABLED_TRUE@lcov-reset:
  26319
+@CODE_COVERAGE_ENABLED_TRUE@	@rm -rf $(lcov_dir)
  26320
+@CODE_COVERAGE_ENABLED_TRUE@	@find . -name "*.gcda" -exec rm {} \;
  26321
+@CODE_COVERAGE_ENABLED_TRUE@	$(lcov_bin)/lcov --directory . --zerocounters
  26322
+
  26323
+@CODE_COVERAGE_ENABLED_TRUE@coverage: lcov-reset check lcov-report
  26324
+
26296 26325
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
26297 26326
 # Otherwise a system limit (for SysV at least) may be exceeded.
26298 26327
 .NOEXPORT:
1  aclocal.m4
@@ -1067,6 +1067,7 @@ m4_include([m4/boost.m4])
1067 1067
 m4_include([m4/compiler.m4])
1068 1068
 m4_include([m4/config_environment.m4])
1069 1069
 m4_include([m4/config_summary.m4])
  1070
+m4_include([m4/coverage.m4])
1070 1071
 m4_include([m4/cppunit.m4])
1071 1072
 m4_include([m4/demangle.m4])
1072 1073
 m4_include([m4/eigen.m4])
2,130  configure
@@ -871,18 +871,22 @@ LIBMESH_ENABLE_GLIBCXX_DEBUGGING_TRUE
871 871
 ac_ct_F77
872 872
 FFLAGS
873 873
 F77
  874
+CODE_COVERAGE_ENABLED_FALSE
  875
+CODE_COVERAGE_ENABLED_TRUE
  876
+HAVE_GCOV_TOOLS
  877
+GCOV_FLAGS
874 878
 ac_ct_FC
875 879
 FCFLAGS
876 880
 FC
877  
-am__fastdepCC_FALSE
878  
-am__fastdepCC_TRUE
879  
-CCDEPMODE
880  
-ac_ct_CC
881  
-CFLAGS
882  
-CC
883 881
 am__fastdepCXX_FALSE
884 882
 am__fastdepCXX_TRUE
885 883
 CXXDEPMODE
  884
+ac_ct_CXX
  885
+CXXFLAGS
  886
+CXX
  887
+am__fastdepCC_FALSE
  888
+am__fastdepCC_TRUE
  889
+CCDEPMODE
886 890
 am__nodep
887 891
 AMDEPBACKSLASH
888 892
 AMDEP_FALSE
@@ -892,11 +896,12 @@ am__include
892 896
 DEPDIR
893 897
 OBJEXT
894 898
 EXEEXT
895  
-ac_ct_CXX
  899
+ac_ct_CC
896 900
 CPPFLAGS
897 901
 LDFLAGS
898  
-CXXFLAGS
899  
-CXX
  902
+CFLAGS
  903
+CC
  904
+have_gcov
900 905
 LIBMESH_VPATH_BUILD_FALSE
901 906
 LIBMESH_VPATH_BUILD_TRUE
902 907
 MAINT
@@ -984,9 +989,10 @@ ac_user_opts='
984 989
 enable_option_checking
985 990
 enable_silent_rules
986 991
 enable_maintainer_mode
  992
+enable_coverage
  993
+enable_dependency_tracking
987 994
 enable_mpi
988 995
 with_cxx
989  
-enable_dependency_tracking
990 996
 with_cc
991 997
 enable_fortran
992 998
 with_fc
@@ -1082,14 +1088,14 @@ enable_nanoflann
1082 1088
       ac_precious_vars='build_alias
1083 1089
 host_alias
1084 1090
 target_alias
1085  
-CXX
1086  
-CXXFLAGS
  1091
+CC
  1092
+CFLAGS
1087 1093
 LDFLAGS
1088 1094
 LIBS
1089 1095
 CPPFLAGS
  1096
+CXX
  1097
+CXXFLAGS
1090 1098
 CCC
1091  
-CC
1092  
-CFLAGS
1093 1099
 FC
1094 1100
 FCFLAGS
1095 1101
 F77
@@ -1732,11 +1738,12 @@ Optional Features:
1732 1738
   --disable-maintainer-mode
1733 1739
                           disable make rules and dependencies not useful (and
1734 1740
                           sometimes confusing) to the casual installer
1735  
-  --enable-mpi            build with MPI message passing support
  1741
+  --enable-coverage       configure code coverage analysis tools
1736 1742
   --enable-dependency-tracking
1737 1743
                           do not reject slow dependency extractors
1738 1744
   --disable-dependency-tracking
1739 1745
                           speeds up one-time build
  1746
+  --enable-mpi            build with MPI message passing support
1740 1747
   --enable-fortran        build with Fortran language support
1741 1748
   --enable-glibcxx-debugging
1742 1749
                           add -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC to
@@ -1872,15 +1879,15 @@ Optional Packages:
1872 1879
   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1873 1880
 
1874 1881
 Some influential environment variables:
1875  
-  CXX         C++ compiler command
1876  
-  CXXFLAGS    C++ compiler flags
  1882
+  CC          C compiler command
  1883
+  CFLAGS      C compiler flags
1877 1884
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1878 1885
               nonstandard directory <lib dir>
1879 1886
   LIBS        libraries to pass to the linker, e.g. -l<library>
1880 1887
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1881 1888
               you have headers in a nonstandard directory <include dir>
1882  
-  CC          C compiler command
1883  
-  CFLAGS      C compiler flags
  1889
+  CXX         C++ compiler command
  1890
+  CXXFLAGS    C++ compiler flags
1884 1891
   FC          Fortran compiler command
1885 1892
   FCFLAGS     Fortran compiler flags
1886 1893
   F77         Fortran 77 compiler command
@@ -1990,10 +1997,10 @@ fi
1990 1997
 ## Autoconf initialization. ##
1991 1998
 ## ------------------------ ##
1992 1999
 
1993  
-# ac_fn_cxx_try_compile LINENO
1994  
-# ----------------------------
  2000
+# ac_fn_c_try_compile LINENO
  2001
+# --------------------------
1995 2002
 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1996  
-ac_fn_cxx_try_compile ()
  2003
+ac_fn_c_try_compile ()
1997 2004
 {
1998 2005
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 2006
   rm -f conftest.$ac_objext
@@ -2013,7 +2020,7 @@ $as_echo "$ac_try_echo"; } >&5
2013 2020
   fi
2014 2021
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 2022
   test $ac_status = 0; } && {
2016  
-	 test -z "$ac_cxx_werror_flag" ||
  2023
+	 test -z "$ac_c_werror_flag" ||
2017 2024
 	 test ! -s conftest.err
2018 2025
        } && test -s conftest.$ac_objext; then :
2019 2026
   ac_retval=0
@@ -2026,12 +2033,12 @@ fi
2026 2033
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 2034
   as_fn_set_status $ac_retval
2028 2035
 
2029  
-} # ac_fn_cxx_try_compile
  2036
+} # ac_fn_c_try_compile
2030 2037
 
2031  
-# ac_fn_c_try_compile LINENO
2032  
-# --------------------------
  2038
+# ac_fn_cxx_try_compile LINENO
  2039
+# ----------------------------
2033 2040
 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2034  
-ac_fn_c_try_compile ()
  2041
+ac_fn_cxx_try_compile ()
2035 2042
 {
2036 2043
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 2044
   rm -f conftest.$ac_objext
@@ -2051,7 +2058,7 @@ $as_echo "$ac_try_echo"; } >&5
2051 2058
   fi
2052 2059
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 2060
   test $ac_status = 0; } && {
2054  
-	 test -z "$ac_c_werror_flag" ||
  2061
+	 test -z "$ac_cxx_werror_flag" ||
2055 2062
 	 test ! -s conftest.err
2056 2063
        } && test -s conftest.$ac_objext; then :
2057 2064
   ac_retval=0
@@ -2064,7 +2071,7 @@ fi
2064 2071
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 2072
   as_fn_set_status $ac_retval
2066 2073
 
2067  
-} # ac_fn_c_try_compile
  2074
+} # ac_fn_cxx_try_compile
2068 2075
 
2069 2076
 # ac_fn_fc_try_compile LINENO
2070 2077
 # ---------------------------
@@ -4258,9 +4265,9 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4258 4265
 
4259 4266
 
4260 4267
 
4261  
-# --------------------------------------------------------------
4262  
-# Set our preferred compilers
4263  
-# --------------------------------------------------------------
  4268
+#--------------------------
  4269
+# Checks for code coverage
  4270
+#-------------------------
4264 4271
 DEPDIR="${am__leading_dot}deps"
4265 4272
 
4266 4273
 ac_config_commands="$ac_config_commands depfiles"
@@ -4324,66 +4331,21 @@ else
4324 4331
 fi
4325 4332
 
4326 4333
 
4327  
-
4328  
-  # --------------------------------------------------------------
4329  
-  # look for a decent C++ compiler or honor --with-cxx=...
4330  
-  CXX_TRY_LIST="g++ icpc icc pgCC c++"
4331  
-
4332  
-     # -------------------------------------------------------------------
4333  
-     # MPI -- enabled by default.  Check for it now so we can be somewhat
4334  
-     #                             smart about which compilers to look for
4335  
-     # -------------------------------------------------------------------
4336  
-     # Check whether --enable-mpi was given.
4337  
-if test "${enable_mpi+set}" = set; then :
4338  
-  enableval=$enable_mpi; case "${enableval}" in
4339  
-   		     yes)  enablempi=yes ;;
4340  
-   		      no)  enablempi=no ;;
4341  
-    		       *)  as_fn_error $? "bad value ${enableval} for --enable-mpi" "$LINENO" 5 ;;
4342  
-   		    esac
4343  
-else
4344  
-  enablempi=yes
4345  
-fi
4346  
-
4347  
-
4348  
-  if  (test "$enablempi" != no) ; then
4349  
-    CXX_TRY_LIST="mpicxx mpiCC mpicc $CXX_TRY_LIST"
4350  
-  else
4351  
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Disabling MPI per user request <<<" >&5
4352  
-$as_echo ">>> Disabling MPI per user request <<<" >&6; }
4353  
-  fi
4354  
-
4355  
-
4356  
-# Check whether --with-cxx was given.
4357  
-if test "${with_cxx+set}" = set; then :
4358  
-  withval=$with_cxx; CXX="$withval"
4359  
-fi
4360  
-
4361  
-
4362  
-  # --------------------------------------------------------------
4363  
-  # Determines a C++ compiler to use.  First checks if the variable CXX is
4364  
-  # already set.  If not, then searches under g++, c++, and other names.
4365  
-  # --------------------------------------------------------------
4366  
-  ac_ext=cpp
4367  
-ac_cpp='$CXXCPP $CPPFLAGS'
4368  
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369  
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370  
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4371  
-if test -z "$CXX"; then
4372  
-  if test -n "$CCC"; then
4373  
-    CXX=$CCC
4374  
-  else
4375  
-    if test -n "$ac_tool_prefix"; then
4376  
-  for ac_prog in $CXX_TRY_LIST
4377  
-  do
4378  
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4379  
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4334
+ac_ext=c
  4335
+ac_cpp='$CPP $CPPFLAGS'
  4336
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4337
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4338
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4339
+if test -n "$ac_tool_prefix"; then
  4340
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4341
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
4380 4342
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 4343
 $as_echo_n "checking for $ac_word... " >&6; }
4382  
-if ${ac_cv_prog_CXX+:} false; then :
  4344
+if ${ac_cv_prog_CC+:} false; then :
4383 4345
   $as_echo_n "(cached) " >&6
4384 4346
 else
4385  
-  if test -n "$CXX"; then
4386  
-  ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4347
+  if test -n "$CC"; then
  4348
+  ac_cv_prog_CC="$CC" # Let the user override the test.
4387 4349
 else
4388 4350
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 4351
 for as_dir in $PATH
@@ -4392,7 +4354,7 @@ do
4392 4354
   test -z "$as_dir" && as_dir=.
4393 4355
     for ac_exec_ext in '' $ac_executable_extensions; do
4394 4356
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395  
-    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4357
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4396 4358
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 4359
     break 2
4398 4360
   fi
@@ -4402,32 +4364,28 @@ IFS=$as_save_IFS
4402 4364
 
4403 4365
 fi
4404 4366
 fi
4405  
-CXX=$ac_cv_prog_CXX
4406  
-if test -n "$CXX"; then
4407  
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4408  
-$as_echo "$CXX" >&6; }
  4367
+CC=$ac_cv_prog_CC
  4368
+if test -n "$CC"; then
  4369
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4370
+$as_echo "$CC" >&6; }
4409 4371
 else
4410 4372
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 4373
 $as_echo "no" >&6; }
4412 4374
 fi
4413 4375
 
4414 4376
 
4415  
-    test -n "$CXX" && break
4416  
-  done
4417 4377
 fi
4418  
-if test -z "$CXX"; then
4419  
-  ac_ct_CXX=$CXX
4420  
-  for ac_prog in $CXX_TRY_LIST
4421  
-do
4422  
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
4423  
-set dummy $ac_prog; ac_word=$2
  4378
+if test -z "$ac_cv_prog_CC"; then
  4379
+  ac_ct_CC=$CC
  4380
+  # Extract the first word of "gcc", so it can be a program name with args.
  4381
+set dummy gcc; ac_word=$2
4424 4382
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 4383
 $as_echo_n "checking for $ac_word... " >&6; }
4426  
-if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4384
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
4427 4385
   $as_echo_n "(cached) " >&6
4428 4386
 else
4429  
-  if test -n "$ac_ct_CXX"; then
4430  
-  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4387
+  if test -n "$ac_ct_CC"; then
  4388
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4431 4389
 else
4432 4390
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 4391
 for as_dir in $PATH
@@ -4436,7 +4394,7 @@ do
4436 4394
   test -z "$as_dir" && as_dir=.
4437 4395
     for ac_exec_ext in '' $ac_executable_extensions; do
4438 4396
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439  
-    ac_cv_prog_ac_ct_CXX="$ac_prog"
  4397
+    ac_cv_prog_ac_ct_CC="gcc"
4440 4398
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 4399
     break 2
4442 4400
   fi
@@ -4446,21 +4404,17 @@ IFS=$as_save_IFS
4446 4404
 
4447 4405
 fi
4448 4406
 fi
4449  
-ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4450  
-if test -n "$ac_ct_CXX"; then
4451  
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4452  
-$as_echo "$ac_ct_CXX" >&6; }
  4407
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4408
+if test -n "$ac_ct_CC"; then
  4409
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4410
+$as_echo "$ac_ct_CC" >&6; }
4453 4411
 else
4454 4412
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 4413
 $as_echo "no" >&6; }
4456 4414
 fi
4457 4415
 
4458  
-
4459  
-  test -n "$ac_ct_CXX" && break
4460  
-done
4461  
-
4462  
-  if test "x$ac_ct_CXX" = x; then
4463  
-    CXX="g++"
  4416
+  if test "x$ac_ct_CC" = x; then
  4417
+    CC=""
4464 4418
   else
4465 4419
     case $cross_compiling:$ac_tool_warned in
4466 4420
 yes:)
@@ -4468,73 +4422,279 @@ yes:)
4468 4422
 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 4423
 ac_tool_warned=yes ;;
4470 4424
 esac
4471  
-    CXX=$ac_ct_CXX
  4425
+    CC=$ac_ct_CC
4472 4426
   fi
  4427
+else
  4428
+  CC="$ac_cv_prog_CC"
4473 4429
 fi
4474 4430
 
  4431
+if test -z "$CC"; then
  4432
+          if test -n "$ac_tool_prefix"; then
  4433
+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4434
+set dummy ${ac_tool_prefix}cc; ac_word=$2
  4435
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4436
+$as_echo_n "checking for $ac_word... " >&6; }
  4437
+if ${ac_cv_prog_CC+:} false; then :
  4438
+  $as_echo_n "(cached) " >&6
  4439
+else
  4440
+  if test -n "$CC"; then
  4441
+  ac_cv_prog_CC="$CC" # Let the user override the test.
  4442
+else
  4443
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4444
+for as_dir in $PATH
  4445
+do
  4446
+  IFS=$as_save_IFS
  4447
+  test -z "$as_dir" && as_dir=.
  4448
+    for ac_exec_ext in '' $ac_executable_extensions; do
  4449
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4450
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
  4451
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4452
+    break 2
4475 4453
   fi
4476  
-fi
4477  
-# Provide some information about the compiler.
4478  
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4479  
-set X $ac_compile
4480  
-ac_compiler=$2
4481  
-for ac_option in --version -v -V -qversion; do
4482  
-  { { ac_try="$ac_compiler $ac_option >&5"
4483  
-case "(($ac_try" in
4484  
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485  
-  *) ac_try_echo=$ac_try;;
4486  
-esac
4487  
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488  
-$as_echo "$ac_try_echo"; } >&5
4489  
-  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4490  
-  ac_status=$?
4491  
-  if test -s conftest.err; then
4492  
-    sed '10a\
4493  
-... rest of stderr output deleted ...
4494  
-         10q' conftest.err >conftest.er1
4495  
-    cat conftest.er1 >&5
4496  
-  fi
4497  
-  rm -f conftest.er1 conftest.err
4498  
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499  
-  test $ac_status = 0; }
4500 4454
 done
  4455
+  done
  4456
+IFS=$as_save_IFS
4501 4457
 
4502  
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503  
-/* end confdefs.h.  */
4504  
-
4505  
-int
4506  
-main ()
4507  
-{
4508  
-
4509  
-  ;
4510  
-  return 0;
4511  
-}
4512  
-_ACEOF
4513  
-ac_clean_files_save=$ac_clean_files
4514  
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4515  
-# Try to create an executable without -o first, disregard a.out.
4516  
-# It will help us diagnose broken compilers, and finding out an intuition
4517  
-# of exeext.
4518  
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4519  
-$as_echo_n "checking whether the C++ compiler works... " >&6; }
4520  
-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4521  
-
4522  
-# The possible output files:
4523  
-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4458
+fi
  4459
+fi
  4460
+CC=$ac_cv_prog_CC
  4461
+if test -n "$CC"; then
  4462
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4463
+$as_echo "$CC" >&6; }
  4464
+else
  4465
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466
+$as_echo "no" >&6; }
  4467
+fi
4524 4468
 
4525  
-ac_rmfiles=
4526  
-for ac_file in $ac_files
4527  
-do
4528  
-  case $ac_file in
4529  
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4530  
-    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4531  
-  esac
4532  
-done
4533  
-rm -f $ac_rmfiles
4534 4469
 
4535  
-if { { ac_try="$ac_link_default"
4536  
-case "(($ac_try" in
4537  
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4470
+  fi
  4471
+fi
  4472
+if test -z "$CC"; then
  4473
+  # Extract the first word of "cc", so it can be a program name with args.
  4474
+set dummy cc; ac_word=$2
  4475
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4476
+$as_echo_n "checking for $ac_word... " >&6; }
  4477
+if ${ac_cv_prog_CC+:} false; then :
  4478
+  $as_echo_n "(cached) " >&6
  4479
+else
  4480
+  if test -n "$CC"; then
  4481
+  ac_cv_prog_CC="$CC" # Let the user override the test.
  4482
+else
  4483
+  ac_prog_rejected=no
  4484
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485
+for as_dir in $PATH
  4486
+do
  4487
+  IFS=$as_save_IFS
  4488
+  test -z "$as_dir" && as_dir=.
  4489
+    for ac_exec_ext in '' $ac_executable_extensions; do
  4490
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4491
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4492
+       ac_prog_rejected=yes
  4493
+       continue
  4494
+     fi
  4495
+    ac_cv_prog_CC="cc"
  4496
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497
+    break 2
  4498
+  fi
  4499
+done
  4500
+  done
  4501
+IFS=$as_save_IFS
  4502
+
  4503
+if test $ac_prog_rejected = yes; then
  4504
+  # We found a bogon in the path, so make sure we never use it.
  4505
+  set dummy $ac_cv_prog_CC
  4506
+  shift
  4507
+  if test $# != 0; then
  4508
+    # We chose a different compiler from the bogus one.
  4509
+    # However, it has the same basename, so the bogon will be chosen
  4510
+    # first if we set CC to just the basename; use the full file name.
  4511
+    shift
  4512
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4513
+  fi
  4514
+fi
  4515
+fi
  4516
+fi
  4517
+CC=$ac_cv_prog_CC
  4518
+if test -n "$CC"; then
  4519
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4520
+$as_echo "$CC" >&6; }
  4521
+else
  4522
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4523
+$as_echo "no" >&6; }
  4524
+fi
  4525
+
  4526
+
  4527
+fi
  4528
+if test -z "$CC"; then
  4529
+  if test -n "$ac_tool_prefix"; then
  4530
+  for ac_prog in cl.exe
  4531
+  do
  4532
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4533
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4534
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535
+$as_echo_n "checking for $ac_word... " >&6; }
  4536
+if ${ac_cv_prog_CC+:} false; then :
  4537
+  $as_echo_n "(cached) " >&6
  4538
+else
  4539
+  if test -n "$CC"; then
  4540
+  ac_cv_prog_CC="$CC" # Let the user override the test.
  4541
+else
  4542
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543
+for as_dir in $PATH
  4544
+do
  4545
+  IFS=$as_save_IFS
  4546
+  test -z "$as_dir" && as_dir=.
  4547
+    for ac_exec_ext in '' $ac_executable_extensions; do
  4548
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4549
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4550
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551
+    break 2
  4552
+  fi
  4553
+done
  4554
+  done
  4555
+IFS=$as_save_IFS
  4556
+
  4557
+fi
  4558
+fi
  4559
+CC=$ac_cv_prog_CC
  4560
+if test -n "$CC"; then
  4561
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4562
+$as_echo "$CC" >&6; }
  4563
+else
  4564
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4565
+$as_echo "no" >&6; }
  4566
+fi
  4567
+
  4568
+
  4569
+    test -n "$CC" && break
  4570
+  done
  4571
+fi
  4572
+if test -z "$CC"; then
  4573
+  ac_ct_CC=$CC
  4574
+  for ac_prog in cl.exe
  4575
+do
  4576
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
  4577
+set dummy $ac_prog; ac_word=$2
  4578
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4579
+$as_echo_n "checking for $ac_word... " >&6; }
  4580
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4581
+  $as_echo_n "(cached) " >&6
  4582
+else
  4583
+  if test -n "$ac_ct_CC"; then
  4584
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4585
+else
  4586
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587
+for as_dir in $PATH
  4588
+do
  4589
+  IFS=$as_save_IFS
  4590
+  test -z "$as_dir" && as_dir=.
  4591
+    for ac_exec_ext in '' $ac_executable_extensions; do
  4592
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4593
+    ac_cv_prog_ac_ct_CC="$ac_prog"
  4594
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595
+    break 2
  4596
+  fi
  4597
+done
  4598
+  done
  4599
+IFS=$as_save_IFS
  4600
+
  4601
+fi
  4602
+fi
  4603
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4604
+if test -n "$ac_ct_CC"; then
  4605
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4606
+$as_echo "$ac_ct_CC" >&6; }
  4607
+else
  4608
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4609
+$as_echo "no" >&6; }
  4610
+fi
  4611
+
  4612
+
  4613
+  test -n "$ac_ct_CC" && break
  4614
+done
  4615
+
  4616
+  if test "x$ac_ct_CC" = x; then
  4617
+    CC=""
  4618
+  else
  4619
+    case $cross_compiling:$ac_tool_warned in
  4620
+yes:)
  4621
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4622
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4623
+ac_tool_warned=yes ;;
  4624
+esac
  4625
+    CC=$ac_ct_CC
  4626
+  fi
  4627
+fi
  4628
+
  4629
+fi
  4630
+
  4631
+
  4632
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4633
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4634
+as_fn_error $? "no acceptable C compiler found in \$PATH
  4635
+See \`config.log' for more details" "$LINENO" 5; }
  4636
+
  4637
+# Provide some information about the compiler.
  4638
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4639
+set X $ac_compile
  4640
+ac_compiler=$2
  4641
+for ac_option in --version -v -V -qversion; do
  4642
+  { { ac_try="$ac_compiler $ac_option >&5"
  4643
+case "(($ac_try" in
  4644
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4645
+  *) ac_try_echo=$ac_try;;
  4646
+esac
  4647
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4648
+$as_echo "$ac_try_echo"; } >&5
  4649
+  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4650
+  ac_status=$?
  4651
+  if test -s conftest.err; then
  4652
+    sed '10a\
  4653
+... rest of stderr output deleted ...
  4654
+         10q' conftest.err >conftest.er1
  4655
+    cat conftest.er1 >&5
  4656
+  fi
  4657
+  rm -f conftest.er1 conftest.err
  4658
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4659
+  test $ac_status = 0; }
  4660
+done
  4661
+
  4662
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4663
+/* end confdefs.h.  */
  4664
+
  4665
+int
  4666
+main ()
  4667
+{
  4668
+
  4669
+  ;
  4670
+  return 0;
  4671
+}
  4672
+_ACEOF
  4673
+ac_clean_files_save=$ac_clean_files
  4674
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4675
+# Try to create an executable without -o first, disregard a.out.
  4676
+# It will help us diagnose broken compilers, and finding out an intuition
  4677
+# of exeext.
  4678
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4679
+$as_echo_n "checking whether the C compiler works... " >&6; }
  4680
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4681
+
  4682
+# The possible output files:
  4683
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4684
+
  4685
+ac_rmfiles=
  4686
+for ac_file in $ac_files
  4687
+do
  4688
+  case $ac_file in
  4689
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4690
+    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4691
+  esac
  4692
+done
  4693
+rm -f $ac_rmfiles
  4694
+
  4695
+if { { ac_try="$ac_link_default"
  4696
+case "(($ac_try" in
  4697
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 4698
   *) ac_try_echo=$ac_try;;
4539 4699
 esac
4540 4700
 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
@@ -4573,182 +4733,1486 @@ do
4573 4733
 	break;;
4574 4734
   esac
4575 4735
 done
4576  
-test "$ac_cv_exeext" = no && ac_cv_exeext=
  4736
+test "$ac_cv_exeext" = no && ac_cv_exeext=
  4737
+
  4738
+else
  4739
+  ac_file=''
  4740
+fi
  4741
+if test -z "$ac_file"; then :
  4742
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743
+$as_echo "no" >&6; }
  4744
+$as_echo "$as_me: failed program was:" >&5
  4745
+sed 's/^/| /' conftest.$ac_ext >&5
  4746
+
  4747
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4748
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4749
+as_fn_error 77 "C compiler cannot create executables
  4750
+See \`config.log' for more details" "$LINENO" 5; }
  4751
+else
  4752
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4753
+$as_echo "yes" >&6; }
  4754
+fi
  4755
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4756
+$as_echo_n "checking for C compiler default output file name... " >&6; }
  4757
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4758
+$as_echo "$ac_file" >&6; }
  4759
+ac_exeext=$ac_cv_exeext
  4760
+
  4761
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4762
+ac_clean_files=$ac_clean_files_save
  4763
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4764
+$as_echo_n "checking for suffix of executables... " >&6; }
  4765
+if { { ac_try="$ac_link"
  4766
+case "(($ac_try" in
  4767
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4768
+  *) ac_try_echo=$ac_try;;
  4769
+esac
  4770
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4771
+$as_echo "$ac_try_echo"; } >&5
  4772
+  (eval "$ac_link") 2>&5
  4773
+  ac_status=$?
  4774
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4775
+  test $ac_status = 0; }; then :
  4776
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4777
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  4778
+# work properly (i.e., refer to `conftest.exe'), while it won't with
  4779
+# `rm'.
  4780
+for ac_file in conftest.exe conftest conftest.*; do
  4781
+  test -f "$ac_file" || continue
  4782
+  case $ac_file in
  4783
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4784
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4785
+	  break;;
  4786
+    * ) break;;
  4787
+  esac
  4788
+done
  4789
+else
  4790
+  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4791
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4792
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4793
+See \`config.log' for more details" "$LINENO" 5; }
  4794
+fi
  4795
+rm -f conftest conftest$ac_cv_exeext
  4796
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4797
+$as_echo "$ac_cv_exeext" >&6; }
  4798
+
  4799
+rm -f conftest.$ac_ext
  4800
+EXEEXT=$ac_cv_exeext
  4801
+ac_exeext=$EXEEXT
  4802
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4803
+/* end confdefs.h.  */
  4804
+#include <stdio.h>
  4805
+int
  4806
+main ()
  4807
+{
  4808
+FILE *f = fopen ("conftest.out", "w");
  4809
+ return ferror (f) || fclose (f) != 0;
  4810
+
  4811
+  ;
  4812
+  return 0;
  4813
+}
  4814
+_ACEOF
  4815
+ac_clean_files="$ac_clean_files conftest.out"
  4816
+# Check that the compiler produces executables we can run.  If not, either
  4817
+# the compiler is broken, or we cross compile.
  4818
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4819
+$as_echo_n "checking whether we are cross compiling... " >&6; }
  4820
+if test "$cross_compiling" != yes; then
  4821
+  { { ac_try="$ac_link"
  4822
+case "(($ac_try" in
  4823
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4824
+  *) ac_try_echo=$ac_try;;
  4825
+esac
  4826
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4827
+$as_echo "$ac_try_echo"; } >&5
  4828
+  (eval "$ac_link") 2>&5
  4829
+  ac_status=$?
  4830
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4831
+  test $ac_status = 0; }
  4832
+  if { ac_try='./conftest$ac_cv_exeext'
  4833
+  { { case "(($ac_try" in
  4834
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4835
+  *) ac_try_echo=$ac_try;;
  4836
+esac
  4837
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4838
+$as_echo "$ac_try_echo"; } >&5
  4839
+  (eval "$ac_try") 2>&5
  4840
+  ac_status=$?
  4841
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4842
+  test $ac_status = 0; }; }; then
  4843
+    cross_compiling=no
  4844
+  else
  4845
+    if test "$cross_compiling" = maybe; then
  4846
+	cross_compiling=yes
  4847
+    else
  4848
+	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4849
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4850
+as_fn_error $? "cannot run C compiled programs.
  4851
+If you meant to cross compile, use \`--host'.
  4852
+See \`config.log' for more details" "$LINENO" 5; }
  4853
+    fi
  4854
+  fi
  4855
+fi
  4856
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4857
+$as_echo "$cross_compiling" >&6; }
  4858
+
  4859
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4860
+ac_clean_files=$ac_clean_files_save
  4861
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4862
+$as_echo_n "checking for suffix of object files... " >&6; }
  4863
+if ${ac_cv_objext+:} false; then :
  4864
+  $as_echo_n "(cached) " >&6
  4865
+else
  4866
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867
+/* end confdefs.h.  */
  4868
+
  4869
+int
  4870
+main ()
  4871
+{
  4872
+
  4873
+  ;
  4874
+  return 0;
  4875
+}
  4876
+_ACEOF
  4877
+rm -f conftest.o conftest.obj
  4878
+if { { ac_try="$ac_compile"
  4879
+case "(($ac_try" in
  4880
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4881
+  *) ac_try_echo=$ac_try;;
  4882
+esac
  4883
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4884
+$as_echo "$ac_try_echo"; } >&5
  4885
+  (eval "$ac_compile") 2>&5
  4886
+  ac_status=$?
  4887
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4888
+  test $ac_status = 0; }; then :
  4889
+  for ac_file in conftest.o conftest.obj conftest.*; do
  4890
+  test -f "$ac_file" || continue;
  4891
+  case $ac_file in
  4892
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4893
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4894
+       break;;
  4895
+  esac
  4896
+done
  4897
+else
  4898
+  $as_echo "$as_me: failed program was:" >&5
  4899
+sed 's/^/| /' conftest.$ac_ext >&5
  4900
+
  4901
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4902
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4903
+as_fn_error $? "cannot compute suffix of object files: cannot compile
  4904
+See \`config.log' for more details" "$LINENO" 5; }
  4905
+fi
  4906
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4907
+fi
  4908
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4909
+$as_echo "$ac_cv_objext" >&6; }
  4910
+OBJEXT=$ac_cv_objext
  4911
+ac_objext=$OBJEXT
  4912
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4913
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4914
+if ${ac_cv_c_compiler_gnu+:} false; then :
  4915
+  $as_echo_n "(cached) " >&6
  4916
+else
  4917
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4918
+/* end confdefs.h.  */
  4919
+
  4920
+int
  4921
+main ()
  4922
+{
  4923
+#ifndef __GNUC__
  4924
+       choke me
  4925
+#endif
  4926
+
  4927
+  ;
  4928
+  return 0;
  4929
+}
  4930
+_ACEOF
  4931
+if ac_fn_c_try_compile "$LINENO"; then :
  4932
+  ac_compiler_gnu=yes
  4933
+else
  4934
+  ac_compiler_gnu=no
  4935
+fi
  4936
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4937
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4938
+
  4939
+fi
  4940
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4941
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4942
+if test $ac_compiler_gnu = yes; then
  4943
+  GCC=yes
  4944
+else
  4945
+  GCC=
  4946
+fi
  4947
+ac_test_CFLAGS=${CFLAGS+set}
  4948
+ac_save_CFLAGS=$CFLAGS
  4949
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4950
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
  4951
+if ${ac_cv_prog_cc_g+:} false; then :
  4952
+  $as_echo_n "(cached) " >&6
  4953
+else
  4954
+  ac_save_c_werror_flag=$ac_c_werror_flag
  4955
+   ac_c_werror_flag=yes
  4956
+   ac_cv_prog_cc_g=no
  4957
+   CFLAGS="-g"
  4958
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959
+/* end confdefs.h.  */
  4960
+
  4961
+int
  4962
+main ()
  4963
+{
  4964
+
  4965
+  ;
  4966
+  return 0;
  4967
+}
  4968
+_ACEOF
  4969
+if ac_fn_c_try_compile "$LINENO"; then :
  4970
+  ac_cv_prog_cc_g=yes
  4971
+else
  4972
+  CFLAGS=""
  4973
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974
+/* end confdefs.h.  */
  4975
+
  4976
+int
  4977
+main ()
  4978
+{
  4979
+
  4980
+  ;
  4981
+  return 0;
  4982
+}
  4983
+_ACEOF
  4984
+if ac_fn_c_try_compile "$LINENO"; then :
  4985
+
  4986
+else
  4987
+  ac_c_werror_flag=$ac_save_c_werror_flag
  4988
+	 CFLAGS="-g"
  4989
+	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4990
+/* end confdefs.h.  */
  4991
+
  4992
+int
  4993
+main ()
  4994
+{
  4995
+
  4996
+  ;
  4997
+  return 0;
  4998
+}
  4999
+_ACEOF
  5000
+if ac_fn_c_try_compile "$LINENO"; then :
  5001
+  ac_cv_prog_cc_g=yes
  5002
+fi
  5003
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5004
+fi
  5005
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5006
+fi
  5007
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5008
+   ac_c_werror_flag=$ac_save_c_werror_flag
  5009
+fi
  5010
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5011
+$as_echo "$ac_cv_prog_cc_g" >&6; }
  5012
+if test "$ac_test_CFLAGS" = set; then
  5013
+  CFLAGS=$ac_save_CFLAGS
  5014
+elif test $ac_cv_prog_cc_g = yes; then
  5015
+  if test "$GCC" = yes; then
  5016
+    CFLAGS="-g -O2"
  5017
+  else
  5018
+    CFLAGS="-g"
  5019
+  fi
  5020
+else
  5021
+  if test "$GCC" = yes; then
  5022
+    CFLAGS="-O2"
  5023
+  else
  5024
+    CFLAGS=
  5025
+  fi
  5026
+fi
  5027
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5028
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5029
+if ${ac_cv_prog_cc_c89+:} false; then :
  5030
+  $as_echo_n "(cached) " >&6
  5031
+else
  5032
+  ac_cv_prog_cc_c89=no
  5033
+ac_save_CC=$CC
  5034
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5035
+/* end confdefs.h.  */