X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=1d539f753c77746cbfbb503aa02123a370db1929;hb=63626449f805051e26e35961b7eb18d3a833162b;hp=87cf3062aaebf15851efe3200cb8ba070349bb8f;hpb=02b0a5151719d04081af2db01e8266a1eafb8537;p=ngircd-alex.git diff --git a/configure.in b/configure.in index 87cf3062..1d539f75 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: configure.in,v 1.114 2005/07/08 16:18:38 alex Exp $ +# $Id: configure.in,v 1.118 2006/05/17 16:44:14 alex Exp $ # # -- Initialisation -- @@ -61,6 +61,25 @@ if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes" fi + +AC_DEFUN([GCC_STACK_PROTECT_CC],[ + ssp_cc=yes + if test "X$CC" != "X"; then + AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector]) + ssp_old_cflags="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector" + AC_TRY_COMPILE(,,, ssp_cc=no) + echo $ssp_cc + if test "X$ssp_cc" = "Xno"; then + CFLAGS="$ssp_old_cflags" + else + AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) + fi + fi +]) + +GCC_STACK_PROTECT_CC + case "$target_os" in hpux*) # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED @@ -105,6 +124,7 @@ AC_TRY_COMPILE([ AC_TYPE_SIGNAL AC_TYPE_SIZE_T + # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) @@ -273,7 +293,8 @@ if test "$x_zeroconf_on" = "osx"; then fi if test "$x_zeroconf_on" = "howl"; then for dir in /usr/local/include /usr/local/include/howl* \ - /usr/include /usr/include/howl*; do + /usr/include /usr/include/howl* \ + /usr/local/include/avahi* /usr/include/avahi*; do test -d "$dir" || continue AC_MSG_CHECKING([for Howl headers in $dir]) if test -f "$dir/rendezvous/rendezvous.h"; then @@ -365,6 +386,7 @@ test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END" AC_OUTPUT([ \ Makefile \ doc/Makefile \ + doc/src/Makefile \ src/Makefile \ src/portab/Makefile \ src/tool/Makefile \ @@ -460,7 +482,7 @@ test "$x_identauth_on" = "yes" \ && echo $ECHO_N "yes $ECHO_C" \ || echo $ECHO_N "no $ECHO_C" echo $ECHO_N " I/O backend: $ECHO_C" - echo "$x_io_backend" + echo "\"$x_io_backend()\"" echo