diff options
author | Felix Lee <flee@cygnus> | 1998-10-14 01:15:01 +0000 |
---|---|---|
committer | Felix Lee <flee@cygnus> | 1998-10-14 01:15:01 +0000 |
commit | 37f58dce035aab53cedc36c2bd250b3432848265 (patch) | |
tree | 22bcf1afbf2a735b601e89167a1bb405877d4c28 /gdb/configure.in | |
parent | ad3b8c4a1a37dc966ddbcc687dcf78ec1f80022f (diff) | |
download | gdb-37f58dce035aab53cedc36c2bd250b3432848265.zip gdb-37f58dce035aab53cedc36c2bd250b3432848265.tar.gz gdb-37f58dce035aab53cedc36c2bd250b3432848265.tar.bz2 |
* sol-thread.c (ps_pstop, etc): simple test for proc_service.h
version didn't work for sol2.6; pushed it to autoconf.
* configure.in (gdb_cv_proc_service_is_old): new test.
* acconfig.h (PROC_SERVICE_IS_OLD): new define.
* configure, config.in: regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 0ccc4bc..4c5272d 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -248,6 +248,21 @@ if test ${build} = ${host} -a ${host} = ${target} ; then CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" fi fi + # Sun randomly tweaked the prototypes in <proc_service.h> + # at one point. + AC_MSG_CHECKING(if <proc_service.h> is old) + AC_CACHE_VAL(gdb_cv_proc_service_is_old,[ + AC_TRY_COMPILE([ + #include <proc_service.h> + ps_err_e ps_pdwrite + (struct ps_prochandle*, psaddr_t, const void*, size_t); + ],, gdb_cv_proc_service_is_old=no, + gdb_cv_proc_service_is_old=yes) + ]) + AC_MSG_RESULT($gdb_cv_proc_service_is_old) + if test $gdb_cv_proc_service_is_old = yes; then + AC_DEFINE(PROC_SERVICE_IS_OLD) + fi else AC_MSG_RESULT(no) fi |