Permalink
Browse files

Added support for -DCVD_DISABLE_* for all detected CVD_HAVE_* features.

  • Loading branch information...
1 parent 4e72851 commit 04055b57c99ac05e20012d75b478a2fb71bd738c edrosten committed Nov 24, 2005
Showing with 6 additions and 6 deletions.
  1. +3 −3 configure
  2. +3 −3 configure.in
View
6 configure
@@ -7841,12 +7841,12 @@ fi
cat << FOO > cvd/config.h
#ifndef CVD_CONFIG_H
#define CVD_CONFIG_H
-`cat confdefs.h | grep CVD_`
-#define CVD_HAVE_CPU_$host_cpu 1
+`echo '#define CVD_HAVE_CPU_'$host_cpu 1 | cat - confdefs.h | grep CVD_ | sort | sed -e's/#define CVD_.*HAVE_\(.*\) .*/#ifndef CVD_DISABLE_\1\\
+ &\\
+#endif/'`
#endif
FOO
-
debug_options=$options
all_opts="$all_options $os_options"
View
6 configure.in
@@ -826,12 +826,12 @@ AC_OUTPUT(Makefile)
cat << FOO > cvd/config.h
#ifndef CVD_CONFIG_H
#define CVD_CONFIG_H
-`cat confdefs.h | grep CVD_`
-#define CVD_HAVE_CPU_$host_cpu 1
+`echo '#define CVD_HAVE_CPU_'$host_cpu 1 | cat - confdefs.h | grep CVD_ | sort | sed -e's/#define CVD_.*HAVE_\(.*\) .*/#ifndef CVD_DISABLE_\1\\
+ &\\
+#endif/'`
#endif
FOO
-
AC_SUBST(debug_options,$options)
all_opts="$all_options $os_options"
AC_SUBST(debug_all_options,"$all_opts")

0 comments on commit 04055b5

Please sign in to comment.