diff options
| -rw-r--r-- | autogen/Makefile.in | 4 | ||||
| -rw-r--r-- | autogen/config.in | 64 | ||||
| -rwxr-xr-x | autogen/configure | 63 | 
3 files changed, 93 insertions, 38 deletions
| diff --git a/autogen/Makefile.in b/autogen/Makefile.in index b1bd33e6b44..f4bc918fa49 100644 --- a/autogen/Makefile.in +++ b/autogen/Makefile.in @@ -333,6 +333,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@  GNULIB_RPMATCH = @GNULIB_RPMATCH@  GNULIB_SCANDIR = @GNULIB_SCANDIR@  GNULIB_SCANF = @GNULIB_SCANF@ +GNULIB_SECURE_GETENV = @GNULIB_SECURE_GETENV@  GNULIB_SELECT = @GNULIB_SELECT@  GNULIB_SETENV = @GNULIB_SETENV@  GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ @@ -498,6 +499,7 @@ HAVE_RENAMEAT = @HAVE_RENAMEAT@  HAVE_REWINDDIR = @HAVE_REWINDDIR@  HAVE_RPMATCH = @HAVE_RPMATCH@  HAVE_SCANDIR = @HAVE_SCANDIR@ +HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@  HAVE_SETENV = @HAVE_SETENV@  HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@  HAVE_SIGACTION = @HAVE_SIGACTION@ @@ -1737,6 +1739,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \  	      -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \  	      -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \  	      -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \ +	      -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \  	      -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \  	      -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \  	      -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \ @@ -1765,6 +1768,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \  	      -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \  	      -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \  	      -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ +	      -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \  	      -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \  	      -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \  	      -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ diff --git a/autogen/config.in b/autogen/config.in index 40eaf0e7221..be52b323fcb 100644 --- a/autogen/config.in +++ b/autogen/config.in @@ -1398,6 +1398,38 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */  /* Define to 1 if using the Motif X toolkit. */  #undef USE_MOTIF +/* Enable extensions on AIX 3, Interix.  */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable general extensions on OS X.  */ +#ifndef _DARWIN_C_SOURCE +# undef _DARWIN_C_SOURCE +#endif +/* Enable GNU extensions on systems that have them.  */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris.  */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop.  */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable X/Open extensions if necessary.  HP-UX 11.11 defines +   mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of +   whether compiling with -Ae or -D_HPUX_SOURCE=1.  */ +#ifndef _XOPEN_SOURCE +# undef _XOPEN_SOURCE +#endif +/* Enable general extensions on Solaris.  */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + +  /* Define to 1 if we should use toolkit scroll bars. */  #undef USE_TOOLKIT_SCROLL_BARS @@ -1484,6 +1516,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */  /* Define if GNUstep uses ObjC exceptions. */  #undef _NATIVE_OBJC_EXCEPTIONS +/* Define to 1 to make NetBSD features available. MINIX 3 needs this. */ +#undef _NETBSD_SOURCE +  /* The _Noreturn keyword of C11.  */  #if ! (defined _Noreturn \         || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) @@ -1508,35 +1543,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */  /* Needed for system_process_attributes on Solaris. */  #undef _STRUCTURED_PROC -/* Define to 500 only on HP-UX. */ -#undef _XOPEN_SOURCE - -/* Enable extensions on AIX 3, Interix.  */ -#ifndef _ALL_SOURCE -# undef _ALL_SOURCE -#endif -/* Enable general extensions on Mac OS X.  */ -#ifndef _DARWIN_C_SOURCE -# undef _DARWIN_C_SOURCE -#endif -/* Enable GNU extensions on systems that have them.  */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* Enable threading extensions on Solaris.  */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -/* Enable extensions on HP NonStop.  */ -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif -/* Enable general extensions on Solaris.  */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif - -  /* Define to rpl_ if the getopt replacement functions and variables should be     used. */  #undef __GETOPT_PREFIX diff --git a/autogen/configure b/autogen/configure index aa026222767..4b27e99acf1 100755 --- a/autogen/configure +++ b/autogen/configure @@ -902,6 +902,7 @@ HAVE_STRTOLL  HAVE_STRTOD  HAVE_DECL_SETENV  HAVE_SETENV +HAVE_SECURE_GETENV  HAVE_RPMATCH  HAVE_REALPATH  HAVE_RANDOM_R @@ -929,6 +930,7 @@ GNULIB_STRTOULL  GNULIB_STRTOLL  GNULIB_STRTOD  GNULIB_SETENV +GNULIB_SECURE_GETENV  GNULIB_RPMATCH  GNULIB_REALPATH  GNULIB_REALLOC_POSIX @@ -6469,8 +6471,6 @@ done - -    ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"  if test "x$ac_cv_header_minix_config_h" = x""yes; then :    MINIX=yes @@ -6489,15 +6489,10 @@ $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h  $as_echo "#define _MINIX 1" >>confdefs.h -  fi - -        case "$host_os" in -    hpux*) -$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h +$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h -      ;; -  esac +  fi    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 @@ -6540,6 +6535,54 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }    $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 +$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } +if test "${ac_cv_should_define__xopen_source+set}" = set; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_should_define__xopen_source=no +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +          #include <wchar.h> +          mbstate_t x; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +             #define _XOPEN_SOURCE 500 +             #include <wchar.h> +             mbstate_t x; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_should_define__xopen_source=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 +$as_echo "$ac_cv_should_define__xopen_source" >&6; } +  test $ac_cv_should_define__xopen_source = yes && +    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h + @@ -17367,6 +17410,7 @@ _ACEOF    GNULIB_REALLOC_POSIX=0;    GNULIB_REALPATH=0;    GNULIB_RPMATCH=0; +  GNULIB_SECURE_GETENV=0;    GNULIB_SETENV=0;    GNULIB_STRTOD=0;    GNULIB_STRTOLL=0; @@ -17394,6 +17438,7 @@ _ACEOF    HAVE_RANDOM_R=1;    HAVE_REALPATH=1;    HAVE_RPMATCH=1; +  HAVE_SECURE_GETENV=1;    HAVE_SETENV=1;    HAVE_DECL_SETENV=1;    HAVE_STRTOD=1; | 
