Skip to content
Snippets Groups Projects
Commit 96d79fa6 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Merge branch 'patches/bug10058' into 8.0

* patches/bug10058:
  Configure: Improved exit(3C) C99 check.
parents 9b9219ef 939120e5
No related branches found
No related tags found
No related merge requests found
......@@ -47,15 +47,11 @@ if_autoconf(2,60,,[
ORIG__AC_PROG_CC_STDC
# Some C99 compilers default to -Werror,-Wimplicit-function-declaration
# Attempt to find a suitable prototype for exit(3C).
_AC_PROG_CXX_EXIT_DECLARATION
if test -n "$ac_declaration"; then
if echo "$ac_declaration" | grep extern >/dev/null; then :; else
# Looks like valid C code.
echo '#ifndef __cplusplus' >>confdefs.h
echo $ac_declaration >>confdefs.h
echo '#endif' >>confdefs.h
fi
fi
_AC_COMPILE_IFELSE([@%:@ifdef __cplusplus
choke me
@%:@endif], [
patsubst(_AC_PROG_CXX_EXIT_DECLARATION, [ifdef], [ifndef])
])
])
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment