From: Ken Raeburn Date: Thu, 18 Mar 2004 02:59:17 +0000 (+0000) Subject: * aclocal.m4: Include acx_pthread.m4. X-Git-Tag: krb5-1.4-beta1~535 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e805b6cdbdfeda56e4a44f21ba0f15b68f8f88f6;p=krb5.git * aclocal.m4: Include acx_pthread.m4. (KRB5_AC_ENABLE_THREADS): New macro. (CONFIG_RULES): Invoke it. Use AC_REQUIRE to get topdir set early. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16182 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index d52f85599..af8910fa8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2004-03-17 Ken Raeburn + + * aclocal.m4: Include acx_pthread.m4. + (KRB5_AC_ENABLE_THREADS): New macro. + (CONFIG_RULES): Invoke it. Use AC_REQUIRE to get topdir set + early. + 2004-03-14 Ken Raeburn * Makefile.in (update-autoconf-h): New target. Checks that diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 128457ab7..66599d179 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -46,7 +46,7 @@ dnl dnl drop in standard rules for all configure files -- CONFIG_RULES dnl AC_DEFUN(CONFIG_RULES,[dnl -V5_SET_TOPDIR dnl +AC_REQUIRE([V5_SET_TOPDIR]) dnl WITH_CC dnl AC_REQUIRE_CPP if test -z "$LD" ; then LD=$CC; fi @@ -99,6 +99,8 @@ lib_frag=$srcdir/$ac_config_fragdir/lib.in AC_SUBST_FILE(lib_frag) libobj_frag=$srcdir/$ac_config_fragdir/libobj.in AC_SUBST_FILE(libobj_frag) +dnl +KRB5_AC_ENABLE_THREADS dnl ])dnl dnl Maintainer mode, akin to what automake provides, 'cept we don't @@ -123,6 +125,21 @@ AC_SUBST(MAINTAINER_MODE_FALSE) AC_SUBST(MAINT) ]) +dnl Hack for now. +AC_DEFUN([KRB5_AC_ENABLE_THREADS],[ +AC_ARG_ENABLE([thread-support], +AC_HELP_STRING([--enable-thread-support],use PRELIMINARY EXPERIMENTAL UNFINISHED POSIX-only thread support), +[ if test "$withval" = yes ; then + AC_MSG_NOTICE(enabling PRELIMINARY EXPERIMENTAL UNFINISHED POSIX-only thread support) + AC_DEFINE(ENABLE_THREADS,1,[Define if thread support enabled]) + fi +]) +dnl Maybe this should be inside the conditional above? Doesn't cache.... +ACX_PTHREAD +dnl Not really needed -- if pthread.h isn't found, ACX_PTHREAD will fail. +AC_CHECK_HEADERS(pthread.h) +]) + dnl This is somewhat gross and should go away when the build system dnl is revamped. -- tlyu dnl DECLARE_SYS_ERRLIST - check for sys_errlist in libc @@ -1507,3 +1524,6 @@ AC_DEFUN([KRB5_AC_PRIOCNTL_HACK], ;; esac AC_SUBST(PRIOCNTL_HACK)]) +dnl +dnl +m4_include(config/ac-archive/acx_pthread.m4)