From: Thomas Roessler Date: Wed, 9 Aug 2000 09:49:32 +0000 (+0000) Subject: Minor portability and compilation fixes. X-Git-Tag: mutt-1-3-8-rel~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffc7c56382a157f03f4a551c683c28743000c43c;p=mutt Minor portability and compilation fixes. --- diff --git a/Makefile.am b/Makefile.am index f8392925..d05ab3a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,12 +47,12 @@ checktypes_LDADD = checktypes_DEPENDENCIES = -$(makedoc_OBJECTS): $(makedoc_SOURCES) - $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $< +# $(makedoc_OBJECTS): $(makedoc_SOURCES) +# $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $< -makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES) - @rm -rf makedoc - $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc +# makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES) +# @rm -rf makedoc +# $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc CPP=@CPP@ diff --git a/configure.in b/configure.in index 83f160ee..8c8a897e 100644 --- a/configure.in +++ b/configure.in @@ -204,7 +204,7 @@ AC_CHECK_HEADERS(stdarg.h sys/ioctl.h ioctl.h sysexits.h) AC_CHECK_HEADERS(sys/time.h sys/resource.h) AC_CHECK_HEADERS(unix.h) -AC_CHECK_FUNCS(setrlimit) +AC_CHECK_FUNCS(setrlimit getsid) AC_TYPE_SIGNAL diff --git a/init.c b/init.c index 7d26ea6c..fefaaa61 100644 --- a/init.c +++ b/init.c @@ -1836,10 +1836,12 @@ void mutt_init (int skip_sys_rc, LIST *commands) set_option (OPTLOCALES); #endif +#ifdef HAVE_GETSID /* Unset suspend by default if we're the session leader */ if (getsid(0) == getpid()) unset_option (OPTSUSPEND); - +#endif + mutt_init_history (); diff --git a/main.c b/main.c index 64c6ce32..219f6163 100644 --- a/main.c +++ b/main.c @@ -371,6 +371,12 @@ static void show_version (void) "-ICONV_NONTRANS " #endif +#if HAVE_GETSID + "+HAVE_GETSID" +#else + "-HAVE_GETSID" +#endif + ); #ifdef ISPELL