[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Tue Nov 30 08:54:50 CET 2004


CVS commit by staikos: 

reworked configure check again to work on gcc2, gcc3, and error out on others.
Would be nice to see something along these lines in admin/


  M +15 -10    configure.in.in   1.39


--- kdeextragear-2/kst/configure.in.in  #1.38:1.39
@@ -235,14 +235,19 @@
 AM_CONDITIONAL(include_linux, test $have_linux = yes)
 
-ac_coverage_compiler=""
-ac_coverage_linker=""
-AC_ARG_WITH(gcc3-coverage,
-    AC_HELP_STRING([--with-gcc3-coverage]),
-    [  ac_coverage_compiler="-fprofile-arcs -ftest-coverage -O0 -fno-inline"
-       ac_coverage_linker="-lgcc"
+AC_ARG_WITH(coverage,
+    AC_HELP_STRING([--with-coverage],[use gcc coverage testing]),
+    [
+       if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
+           ac_coverage_compiler="-g3 -fprofile-arcs -ftest-coverage -O0 -fno-inline"
+           ac_coverage_linker="-lgcc"
+       elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
+           ac_coverage_compiler="-g3 -fprofile-arcs -ftest-coverage -O0 -fno-inline"
+           ac_coverage_linker=""
+       else
+           AC_MSG_ERROR([coverage with your compiler is not supported])
+       fi
+       CFLAGS="$CFLAGS $ac_coverage_compiler"
+       CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
+       LDFLAGS="$LDFLAGS $ac_coverage_linker"
     ])
 
-CFLAGS="$CFLAGS $ac_coverage_compiler"
-CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
-LDFLAGS="$LDFLAGS $ac_coverage_linker"
-





More information about the Kst mailing list