diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kio/misc/kpac/configure.in.in | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/misc/kpac/configure.in.in')
-rw-r--r-- | kio/misc/kpac/configure.in.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/kio/misc/kpac/configure.in.in b/kio/misc/kpac/configure.in.in new file mode 100644 index 000000000..a65b9a1c8 --- /dev/null +++ b/kio/misc/kpac/configure.in.in @@ -0,0 +1,26 @@ +dnl some setgroups() implementations seem to have short* instead of gid_t* +dnl and use some flags in the fiels that follows the gids +AC_MSG_CHECKING([for setgroups with short argument]) +AC_CACHE_VAL([kde_cv_shortsetgroups],[ + AC_TRY_RUN([ + int main() + { + short x[4]; + x[0] = x[1] = 1; + if (getgroups(1, x) == 0) if (setgroups(1, x) == -1) exit(1); + + if (getgroups(1, x) == -1) exit(1); + if (x[1] != 1) exit(1); + x[1] = 2; + if (getgroups(1, x) == -1) exit(1); + if (x[1] != 2) exit(1); + exit(0); + } + ],[kde_cv_shortsetgroups="yes"],[kde_cv_shortsetgroups="no"]) +]) +AC_MSG_RESULT($kde_cv_shortsetgroups) +if test "$kde_cv_shortsetgroups" = "yes"; then + AC_DEFINE(HAVE_SHORTSETGROUPS,1,[if setgroups() takes short *as second arg]) +fi + +AC_CHECK_HEADERS(arpa/nameser8_compat.h sys/param.h) |