diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-23 08:25:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-23 08:25:12 +0000 |
commit | 42850db14b21b4fa9e85f575fe3a2bce0ba1867e (patch) | |
tree | 2047bf87fca0beed9bb677bfe54ae373771ec90e /configure.in | |
parent | 7912fdf599869eb279f750266eadddc275207274 (diff) | |
download | ruby-42850db14b21b4fa9e85f575fe3a2bce0ba1867e.tar.gz |
* configure.in (group_member): check if presents.
* configure.in (XCFLAGS): add _GNU_SOURCE on linux.
* file.c (group_member): use system routine if available.
* process.c: moved _GNU_SOURCE macro to Makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 79916af4b6..6b533c900c 100644 --- a/configure.in +++ b/configure.in @@ -594,7 +594,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd setitimer setruid seteuid setreuid setresuid setproctitle socketpair\ setrgid setegid setregid setresgid issetugid pause lchown lchmod\ getpgrp setpgrp getpgid setpgid initgroups getgroups setgroups\ - getpriority getrlimit setrlimit sysconf\ + getpriority getrlimit setrlimit sysconf group_member\ dlopen sigprocmask sigaction _setjmp vsnprintf snprintf\ setsid telldir seekdir fchmod mktime timegm cosh sinh tanh log2\ setuid setgid daemon select_large_fdset setenv unsetenv) @@ -1423,6 +1423,9 @@ if test "$rb_with_pthread" = "yes"; then THREAD_MODEL=pthread fi case "$target_os" in + linux*) + XCFLAGS="$XCFLAGS -D_GNU_SOURCE=1" + ;; netbsd*) CFLAGS="$CFLAGS -pipe" ;; |