diff options
| author | Alexander Barton <alex@barton.de> | 2013-11-12 00:25:28 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-11-12 00:25:28 +0100 |
| commit | 34824abe0dbf86477ec77385ed97c25f0a2375d8 (patch) | |
| tree | a2d6c06af0da3ea4c75a6f5f8b6d434b6f85816f | |
| parent | ae00c100acdb4d2d3f99524d30258d07eefcfb6d (diff) | |
| download | ngircd-34824abe0dbf86477ec77385ed97c25f0a2375d8.tar.gz ngircd-34824abe0dbf86477ec77385ed97c25f0a2375d8.zip | |
configure: clean up function definitions
| -rw-r--r-- | configure.ng | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/configure.ng b/configure.ng index b9e92704..9a4cc992 100644 --- a/configure.ng +++ b/configure.ng @@ -75,23 +75,26 @@ AC_C_CONST AC_C_INLINE __ng_PROTOTYPES__ -# -- Hard coded system and compiler dependencies/features/options ... -- +# -- Function Definitions -- AC_DEFUN([GCC_STACK_PROTECT_CC],[ - ssp_cc=yes - # we use -fstack-protector-all for the test to enfoce the use of the guard variable - AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector]) - ssp_old_cflags="$CFLAGS" - CFLAGS="$CFLAGS -fstack-protector-all" - AC_TRY_LINK(,,, ssp_cc=no) - echo $ssp_cc - CFLAGS="$ssp_old_cflags" - if test "X$ssp_cc" = "Xyes"; then - CFLAGS="$CFLAGS -fstack-protector" - AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) - fi + ssp_cc=yes + # Use -fstack-protector-all for the test to enfoce the use of the + # guard variable + AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector]) + ssp_old_cflags="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector-all" + AC_TRY_LINK(,,, ssp_cc=no) + echo $ssp_cc + CFLAGS="$ssp_old_cflags" + if test "X$ssp_cc" = "Xyes"; then + CFLAGS="$CFLAGS -fstack-protector" + AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) + fi ]) +# -- Hard coded system and compiler dependencies/features/options ... -- + if test "$GCC" = "yes"; then # We are using the GNU C compiler. Good! CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes" |