[asterisk-commits] eventfd: Disable during cross compilation (asterisk[14])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 12 15:48:03 CDT 2017


George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/5775 )

Change subject: eventfd: Disable during cross compilation
......................................................................


eventfd: Disable during cross compilation

Reported by Lonnie Abelbeck <lonnie at abelbeck.com> via private e-mail.

Change-Id: Icc80f12b8d8d591e14a8e0ed9f1c02cbd193a89b
---
M configure
M configure.ac
2 files changed, 5 insertions(+), 6 deletions(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve; Approved for Submit
  Matthew Fredrickson: Looks good to me, approved
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/configure b/configure
index 0922809..ba551a8 100755
--- a/configure
+++ b/configure
@@ -17886,10 +17886,9 @@
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have usable eventfd support" >&5
 $as_echo_n "checking if we have usable eventfd support... " >&6; }
 if test "$cross_compiling" = yes; then :
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
+$as_echo "cross-compile" >&6; }
+
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
@@ -17911,7 +17910,6 @@
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-
 fi
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   conftest.$ac_objext conftest.beam conftest.$ac_ext
diff --git a/configure.ac b/configure.ac
index 2bab855..a9a2d26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1107,7 +1107,8 @@
       [return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;])],
   AC_MSG_RESULT(yes)
   AC_DEFINE([HAVE_EVENTFD], 1, [Define to 1 if your system supports eventfd and the EFD_NONBLOCK and EFD_SEMAPHORE flags.]),
-  AC_MSG_RESULT(no)
+  AC_MSG_RESULT(no),
+  AC_MSG_RESULT(cross-compile)
 )
 
 AST_GCC_ATTRIBUTE(pure)

-- 
To view, visit https://gerrit.asterisk.org/5775
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc80f12b8d8d591e14a8e0ed9f1c02cbd193a89b
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>



More information about the asterisk-commits mailing list