From a33d473535cf480124e76cd19b67816c684a4dd2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 18 Oct 2010 20:02:27 +0000 Subject: CONFIGURE: Added va_copy detection for Last Express engine svn-id: r53583 --- configure | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 5053884c51..3936ca48b9 100755 --- a/configure +++ b/configure @@ -2634,6 +2634,43 @@ fi define_in_config_if_yes $_nasm 'USE_NASM' +# +# Check for va_copy variant +# + +echocheck va_copy availability + +_have_va_copy=no +_have___va_copy=no + +cat > $TMPC < +va_list ap1,ap2; +int main(void) { va_copy(ap1,ap2); } +EOF +cc_check && _have_va_copy=yes + +if test "$_have_va_copy" = yes ; then + echo "... yes... va_copy()" +else + +cat > $TMPC < +va_list ap1,ap2; +int main(void) { __va_copy(ap1,ap2); } +EOF +cc_check && _have___va_copy=yes + +if test "$_have___va_copy" = yes ; then + echo "... yes... __va_copy()" +else + echo "... no" +fi +fi + +define_in_config_h_if_yes $_have_va_copy 'HAVE_VA_COPY' +define_in_config_h_if_yes $_have___va_copy 'HAVE___VA_COPY' + # # Enable vkeybd / keymapper # -- cgit v1.2.3