diff -Nur -X no.freeciv freeciv-cvs/acconfig.h freeciv-mod/acconfig.h --- freeciv-cvs/acconfig.h Sat Aug 7 09:05:53 1999 +++ freeciv-mod/acconfig.h Sun Aug 8 13:16:15 1999 @@ -34,6 +34,7 @@ #undef HAVE_LC_MESSAGES #undef HAVE_STPCPY #undef LOCALEDIR +#undef HAVE_SIGPIPE @BOTTOM@ diff -Nur -X no.freeciv freeciv-cvs/config.h.in freeciv-mod/config.h.in --- freeciv-cvs/config.h.in Sat Aug 7 09:05:53 1999 +++ freeciv-mod/config.h.in Sun Aug 8 13:21:00 1999 @@ -86,6 +86,7 @@ #undef HAVE_LC_MESSAGES #undef HAVE_STPCPY #undef LOCALEDIR +#undef HAVE_SIGPIPE /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT diff -Nur -X no.freeciv freeciv-cvs/configure.in freeciv-mod/configure.in --- freeciv-cvs/configure.in Sat Aug 7 09:06:01 1999 +++ freeciv-mod/configure.in Sun Aug 8 12:46:13 1999 @@ -273,6 +273,13 @@ dnl by the fact that the -lsocket is in X_EXTRA_LIBS and/or SERVER_LIBS, dnl and not in LIBS. +dnl Checks if SIGPIPE is usable +AC_MSG_CHECKING([for SIGPIPE]) +AC_TRY_COMPILE([#include ],[signal (SIGPIPE, SIG_IGN)], + [AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_SIGPIPE)], + [AC_MSG_RESULT([no])]) + dnl export where the datadir is going to be installed FC_EXPAND_DIR(FREECIV_DATADIR, "$datadir/freeciv") AC_DEFINE_UNQUOTED(FREECIV_DATADIR, "$FREECIV_DATADIR") diff -Nur -X no.freeciv freeciv-cvs/server/sernet.c freeciv-mod/server/sernet.c --- freeciv-cvs/server/sernet.c Sun Aug 8 10:15:31 1999 +++ freeciv-mod/server/sernet.c Sun Aug 8 13:58:11 1999 @@ -278,7 +278,7 @@ /* broken pipes are ignored. */ -#ifdef SIGPIPE +#ifdef HAVE_SIGPIPE signal (SIGPIPE, SIG_IGN); #endif