summaryrefslogtreecommitdiff
path: root/libmudflap/configure.ac
diff options
context:
space:
mode:
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-07 21:52:52 +0000
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-07 21:52:52 +0000
commit9aab2b4bdaa601e2bf92d5f6c779c7757d481aa5 (patch)
tree60266192b1071f716dc829f1db1f87f97112b81a /libmudflap/configure.ac
parent8e5b5d072d2cca4c1a72ee192e46605c33641341 (diff)
downloadgcc-9aab2b4bdaa601e2bf92d5f6c779c7757d481aa5.tar.gz
2004-09-07 Frank Ch. Eigler <fche@redhat.com>
* configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions. * mf-hooks2.c (strerror): Unregister previous string returned by previous strerror. (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers. (getservent,getservbyname,getservbyport,gai_strerror): Ditto. * mf-runtime.h.in: Add redefine_extname pragmas for them all. * mf-runtime.c (__mf_describe_object): Clarify object life status. * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c: New tests. * configure, config.h.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87160 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/configure.ac')
-rw-r--r--libmudflap/configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/libmudflap/configure.ac b/libmudflap/configure.ac
index e53a7ac8a9d..7c7b8c76a55 100644
--- a/libmudflap/configure.ac
+++ b/libmudflap/configure.ac
@@ -59,7 +59,7 @@ AC_TRY_COMPILE([
[AC_MSG_RESULT(no)
enable_shared=no])
-AC_CHECK_HEADERS(stdint.h execinfo.h signal.h dlfcn.h dirent.h \
+AC_CHECK_HEADERS(stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h sys/socket.h ctype.h)
AC_CHECK_FUNCS(backtrace backtrace_symbols gettimeofday signal)
@@ -72,6 +72,11 @@ AC_CHECK_FUNCS(strnlen memrchr strncpy memmem sethostname)
dnl Check for glibc ctype functions
AC_CHECK_FUNCS(__ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc)
+dnl Check for pwd.h / grp.h family of functions
+AC_CHECK_FUNCS(getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent)
+AC_CHECK_FUNCS(getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r)
+AC_CHECK_FUNCS(getservent getservbyname getservbyport getaddrinfo gai_strerror)
+
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>],[union semun foo;], [mf_have_semun=1], [mf_have_semun=0])