Add GLIB_ASSERT_SET() as a helper for adding "must be set when

Wed Dec 11 17:00:20 2002  Owen Taylor  <otaylor@redhat.com>

        * acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
        a helper for adding "must be set when cross-compiling"
        errors.

        * configure.in: For all cached variables without defaults,
        error out if they aren't set.
This commit is contained in:
Owen Taylor 2002-12-11 22:21:32 +00:00 committed by Owen Taylor
parent bf2ae7b7e5
commit 299b90ed7b
8 changed files with 69 additions and 0 deletions

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -1,3 +1,12 @@
Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
* acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
a helper for adding "must be set when cross-compiling"
errors.
* configure.in: For all cached variables without defaults,
error out if they aren't set.
Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com> Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Also assume AC_LINK_IFELSE() is * configure.in: Also assume AC_LINK_IFELSE() is

View File

@ -741,6 +741,8 @@ if test "$ac_cv_func_memmove" != "yes"; then
} }
return(0); return(0);
}],glib_cv_working_bcopy=yes,glib_cv_working_bcopy=no)]) }],glib_cv_working_bcopy=yes,glib_cv_working_bcopy=no)])
GLIB_ASSERT_SET(glib_cv_working_bcopy)
if test "$glib_cv_working_bcopy" = "yes"; then if test "$glib_cv_working_bcopy" = "yes"; then
AC_DEFINE(HAVE_WORKING_BCOPY,1,[Have a working bcopy]) AC_DEFINE(HAVE_WORKING_BCOPY,1,[Have a working bcopy])
fi fi
@ -1031,6 +1033,7 @@ dnl *** check whether we need preceeding underscores
[]) [])
rm -f plugin.c plugin.$ac_objext plugin.lo rm -f plugin.c plugin.$ac_objext plugin.lo
]) ])
GLIB_ASSERT_SET(glib_cv_uscore)
if test "x$glib_cv_uscore" = "xyes"; then if test "x$glib_cv_uscore" = "xyes"; then
G_MODULE_NEED_USCORE=1 G_MODULE_NEED_USCORE=1
else else
@ -1557,6 +1560,7 @@ int main () {
} ], } ],
[ac_cv_func_posix_getpwuid_r=yes], [ac_cv_func_posix_getpwuid_r=yes],
[ac_cv_func_posix_getpwuid_r=no])]) [ac_cv_func_posix_getpwuid_r=no])])
GLIB_ASSERT_SET(ac_cv_func_posix_getpwuid_r)
if test "$ac_cv_func_posix_getpwuid_r" = yes; then if test "$ac_cv_func_posix_getpwuid_r" = yes; then
AC_DEFINE(HAVE_POSIX_GETPWUID_R,1, AC_DEFINE(HAVE_POSIX_GETPWUID_R,1,
[Have POSIX function getpwuid_r]) [Have POSIX function getpwuid_r])
@ -1570,6 +1574,7 @@ int main () {
sizeof (buffer));], sizeof (buffer));],
[ac_cv_func_nonposix_getpwuid_r=yes], [ac_cv_func_nonposix_getpwuid_r=yes],
[ac_cv_func_nonposix_getpwuid_r=no])]) [ac_cv_func_nonposix_getpwuid_r=no])])
GLIB_ASSERT_SET(ac_cv_func_nonposix_getpwuid_r)
if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
AC_DEFINE(HAVE_NONPOSIX_GETPWUID_R,1, AC_DEFINE(HAVE_NONPOSIX_GETPWUID_R,1,
[Have non-POSIX function getpwuid_r]) [Have non-POSIX function getpwuid_r])
@ -1661,6 +1666,7 @@ main()
[glib_cv_use_pid_surrogate=yes], [glib_cv_use_pid_surrogate=yes],
[glib_cv_use_pid_surrogate=no], [glib_cv_use_pid_surrogate=no],
[])]) [])])
GLIB_ASSERT_SET(glib_cv_use_pid_surrogate)
if test "$glib_cv_use_pid_surrogate" = "yes" ; then if test "$glib_cv_use_pid_surrogate" = "yes" ; then
AC_DEFINE(G_THREAD_USE_PID_SURROGATE, 1, AC_DEFINE(G_THREAD_USE_PID_SURROGATE, 1,
[whether to use the PID niceness surrogate for thread priorities]) [whether to use the PID niceness surrogate for thread priorities])