autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Hubert Chan] Bug#332713: autoconf: checking for fork does not work


From: Paul Eggert
Subject: Re: [Hubert Chan] Bug#332713: autoconf: checking for fork does not work for C++
Date: Sun, 23 Oct 2005 03:03:18 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

CVS autoconf does this instead.  I presume the AC_INCLUDES_DEFAULT
fixes the same problem in a different way?

AC_DEFUN([_AC_FUNC_FORK],
  [AC_CACHE_CHECK(for working fork, ac_cv_func_fork_works,
    [AC_RUN_IFELSE(
      [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
        [
          /* By Ruediger Kuhlmann. */
          if (fork() < 0)
            exit (1);
          exit (0);
        ])],
      [ac_cv_func_fork_works=yes],
      [ac_cv_func_fork_works=no],
      [ac_cv_func_fork_works=cross])])]
)# _AC_FUNC_FORK




reply via email to

[Prev in Thread] Current Thread [Next in Thread]