From: Dirk Mueller Date: Wed, 16 Oct 2002 12:41:06 +0000 (+0000) Subject: don't use acconfig.h anymore because its deprecated with newer autoconf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fsvn%2FVALGRIND_1_0_BRANCH;p=thirdparty%2Fvalgrind.git don't use acconfig.h anymore because its deprecated with newer autoconf versions. it will work with old autoconf as well. git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1234 --- diff --git a/.cvsignore b/.cvsignore index 6e4e554bcd..4f0d3efc87 100644 --- a/.cvsignore +++ b/.cvsignore @@ -11,3 +11,4 @@ cachegrind vg_annotate vg_cachegen default.supp +autom4te.cache diff --git a/acconfig.h b/acconfig.h deleted file mode 100644 index 5e9821355d..0000000000 --- a/acconfig.h +++ /dev/null @@ -1,12 +0,0 @@ -#undef KERNEL_2_2 -#undef KERNEL_2_4 - -#undef HAVE_SCHED_PRIORITY -#undef HAVE_NFDS_T - -#undef GLIBC_2_1 -#undef GLIBC_2_2 -#undef GLIBC_2_3 - -#undef XFREE_3 -#undef XFREE_4 diff --git a/configure.in b/configure.in index 8536845e5e..9ab05d79c5 100644 --- a/configure.in +++ b/configure.in @@ -89,12 +89,12 @@ kernel=`uname -r` case "${kernel}" in 2.4.*) AC_MSG_RESULT([2.4 family (${kernel})]) - AC_DEFINE(KERNEL_2_4) + AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x]) ;; 2.2.*) AC_MSG_RESULT([2.2 family (${kernel})]) - AC_DEFINE(KERNEL_2_2) + AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x]) ;; *) @@ -144,19 +144,19 @@ glibc="2.3") case "${glibc}" in 2.1) AC_MSG_RESULT(2.1 family) - AC_DEFINE(GLIBC_2_1) + AC_DEFINE([GLIBC_2_1], 1, [Define to 1 if you're using glibc 2.1.x]) DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.1.supp" ;; 2.2) AC_MSG_RESULT(2.2 family) - AC_DEFINE(GLIBC_2_2) + AC_DEFINE([GLIBC_2_2], 1, [Define to 1 if you're using glibc 2.2.x]) DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp" ;; 2.3) AC_MSG_RESULT(2.3 family) - AC_DEFINE(GLIBC_2_3) + AC_DEFINE([GLIBC_2_3], 1, [Define to 1 if you're using glibc 2.3.x]) ## Use the same suppression for as for 2.2. ## This is a horrible hack that should be gotten ## rid of. JRS, 20021007. @@ -181,7 +181,7 @@ vg_have_sched_priority=no) ]) AC_MSG_RESULT($vg_have_sched_priority) if test "$vg_have_sched_priority" = yes; then -AC_DEFINE(HAVE_SCHED_PRIORITY) +AC_DEFINE([HAVE_SCHED_PRIORITY], 1, [pthread / sched_priority exists]) fi AC_MSG_CHECKING([whether nfds_t is defined]) @@ -194,7 +194,7 @@ vg_have_nfds_t=no) ]) AC_MSG_RESULT($vg_have_nfds_t) if test "$vg_have_nfds_t" = yes; then -AC_DEFINE(HAVE_NFDS_T) +AC_DEFINE([HAVE_NFDS_T], 1, [nfds_t exists]) fi # try to detect the XFree version @@ -244,7 +244,7 @@ EOF *version=4*) AC_MSG_RESULT([XFree 4.x family]) - AC_DEFINE(XFREE_4) + AC_DEFINE([XFREE_4], 1, [Define to 1 if you're using XFree 4.x]) DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" # haaaaaaack! DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" @@ -252,7 +252,7 @@ EOF *version=3*) AC_MSG_RESULT([XFree 3.x family]) - AC_DEFINE(XFREE_3) + AC_DEFINE([XFREE_3], 1, [Define to 1 if you're using XFree86 3.x]) DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" # haaaaaaack! DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp"