]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
Check that ./configure finds "sigaction"
authorAntti Kantee <pooka@iki.fi>
Wed, 29 Apr 2015 12:28:56 +0000 (12:28 +0000)
committerAntti Kantee <pooka@iki.fi>
Wed, 29 Apr 2015 12:28:56 +0000 (12:28 +0000)
tests/configure/config.h.in
tests/configure/configure
tests/configure/configure.ac
tests/configure/test.c

index 04498c02aaae6f0056b6cc9d66a2d8b67f10966b..ee47a97a0fbbaaf8fe08c3e91807c77666022253 100644 (file)
@@ -12,6 +12,9 @@
 /* Define to 1 if you have the `select' function. */
 #undef HAVE_SELECT
 
+/* Define to 1 if you have the `sigaction' function. */
+#undef HAVE_SIGACTION
+
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
index 6c4d4ff93ccdaaf95fbd1fb54f154f2f54597ee6..a41e59e3ba6e5550fdddf78e93a9c59aee16157c 100755 (executable)
 
 done
 
-for ac_func in select
+for ac_func in select sigaction
 do :
-  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
-if test "x$ac_cv_func_select" = xyes; then :
+  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_SELECT 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 _ACEOF
 
 fi
index 8f828a58744171d88bce25339eb840bab9136b14..b71c3a77a5264b6e36d1cfbd2c0b0360c3aff061 100644 (file)
@@ -17,7 +17,7 @@ AC_PROG_CC_C_O
 AC_PROG_LIBTOOL
 
 AC_CHECK_HEADERS([sys/epoll.h])
-AC_CHECK_FUNCS([select])
+AC_CHECK_FUNCS([select sigaction])
 
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 73681ee177fcdaa6defbf2ff683a419c7a2b74ed..2e0fa9ca9bc5f01a4920ea27f286476ab19e9a31 100644 (file)
 #error Could not find select.  Was ist los?
 #endif
 
+/* make sure we offer compat symbols that can be found by autoconf */
+#ifndef HAVE_SIGACTION
+#error sigaction not found.  libc problem.
+#endif
+
 int
 main()
 {