From e429182c013128ecc1cc2ccc6fd457d311003947 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 16 Apr 2010 05:14:21 +0000 Subject: [PATCH] Add a check for posix_spawn. Regenerate configure and other autoconf files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101444 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 2 +- configure | 3 ++- include/llvm/Config/config.h.in | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index ff5804b27dc..76083d27485 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1290,7 +1290,7 @@ AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ]) AC_CHECK_FUNCS([powf fmodf strtof round ]) AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ]) AC_CHECK_FUNCS([isatty mkdtemp mkstemp ]) -AC_CHECK_FUNCS([mktemp realpath sbrk setrlimit strdup ]) +AC_CHECK_FUNCS([mktemp posix_spawn realpath sbrk setrlimit strdup ]) AC_CHECK_FUNCS([strerror strerror_r strerror_s setenv ]) AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ]) AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp]) diff --git a/configure b/configure index 82aaccdb04d..75f1c2b04b2 100755 --- a/configure +++ b/configure @@ -17756,7 +17756,8 @@ done -for ac_func in mktemp realpath sbrk setrlimit strdup + +for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in index 5caf778a2d7..c2ab23e3e32 100644 --- a/include/llvm/Config/config.h.in +++ b/include/llvm/Config/config.h.in @@ -264,6 +264,9 @@ /* Define to 1 if you have the `opendir' function. */ #undef HAVE_OPENDIR +/* Define to 1 if you have the `posix_spawn' function. */ +#undef HAVE_POSIX_SPAWN + /* Define to 1 if you have the `powf' function. */ #undef HAVE_POWF -- 2.34.1