Remove leftover generated .h files after config.status changed.
authorBruno Haible <bruno@clisp.org>
Tue, 5 Apr 2011 23:55:16 +0000 (01:55 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 5 Apr 2011 23:55:16 +0000 (01:55 +0200)
* m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
GL_GENERATE_ALLOCA_H.
* modules/alloca-opt (Makefile.am): Remove alloca.h if
GL_GENERATE_ALLOCA_H evaluates to false.

* m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
GL_GENERATE_ARGZ_H.
* modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
evaluates to false.

* m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
GL_GENERATE_BYTESWAP_H.
* modules/byteswap (Makefile.am): Remove byteswap.h if
GL_GENERATE_BYTESWAP_H evaluates to false.

* m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
GL_GENERATE_ERRNO_H.
* modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
evaluates to false.

* m4/float_h.m4 (gl_FLOAT_H): New automake conditional
GL_GENERATE_FLOAT_H.
* modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
evaluates to false.

* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
GL_GENERATE_FNMATCH_H.
* modules/fnmatch (Makefile.am): Remove fnmatch.h if
GL_GENERATE_FNMATCH_H evaluates to false.

* m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
GL_GENERATE_GLOB_H.
* modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
evaluates to false.

* m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
automake conditional GL_GENERATE_ICONV_H.
* modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
evaluates to false.

* m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
GL_GENERATE_NETINET_IN_H.
* modules/netinet_in (Makefile.am): Remove netinet/in.h if
GL_GENERATE_NETINET_IN_H evaluates to false.

* m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
conditional GL_GENERATE_PTHREAD_H.
(gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
* modules/pthread (Makefile.am): Remove pthread.h if
GL_GENERATE_PTHREAD_H evaluates to false.

* m4/sched_h.m4 (gl_SCHED_H): New automake conditional
GL_GENERATE_SCHED_H.
* modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
evaluates to false.

* m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
conditional GL_GENERATE_SELINUX_CONTEXT_H.
* modules/selinux-h (Makefile.am): Remove selinux/context.h if
GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.

* m4/stdarg.m4 (gl_STDARG_H): New automake conditional
GL_GENERATE_STDARG_H.
* modules/stdarg (Makefile.am): Remove stdarg.h if
GL_GENERATE_STDARG_H evaluates to false.

* m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
GL_GENERATE_STDBOOL_H.
* modules/stdbool (Makefile.am): Remove stdbool.h if
GL_GENERATE_STDBOOL_H evaluates to false.

* m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
conditional GL_GENERATE_STDDEF_H.
(gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
* modules/stddef (Makefile.am): Remove stddef.h if
GL_GENERATE_STDDEF_H evaluates to false.

* m4/stdint.m4 (gl_STDINT_H): New automake conditional
GL_GENERATE_STDINT_H.
* modules/stdint (Makefile.am): Remove stdint.h if
GL_GENERATE_STDINT_H evaluates to false.

* m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
GL_GENERATE_SYSEXITS_H.
* modules/sysexits (Makefile.am): Remove sysexits.h if
GL_GENERATE_SYSEXITS_H evaluates to false.

Reported by Karl Berry and Ralf Wildenhues.

35 files changed:
ChangeLog
m4/alloca.m4
m4/argz.m4
m4/byteswap.m4
m4/errno_h.m4
m4/float_h.m4
m4/fnmatch.m4
m4/glob.m4
m4/iconv_h.m4
m4/netinet_in_h.m4
m4/pthread.m4
m4/sched_h.m4
m4/selinux-context-h.m4
m4/stdarg.m4
m4/stdbool.m4
m4/stddef_h.m4
m4/stdint.m4
m4/sysexits.m4
modules/alloca-opt
modules/argz
modules/byteswap
modules/errno
modules/float
modules/fnmatch
modules/glob
modules/iconv-h
modules/netinet_in
modules/pthread
modules/sched
modules/selinux-h
modules/stdarg
modules/stdbool
modules/stddef
modules/stdint
modules/sysexits

index 3dc209bdbb58569a8634ceb7da8127cd1b3cd15c..7ac5798026cf9bc7b9f40ac7e67a6d3d6b0032ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,96 @@
+2011-04-05  Bruno Haible  <bruno@clisp.org>
+
+       Remove leftover generated .h files after config.status changed.
+
+       * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
+       GL_GENERATE_ALLOCA_H.
+       * modules/alloca-opt (Makefile.am): Remove alloca.h if
+       GL_GENERATE_ALLOCA_H evaluates to false.
+
+       * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
+       GL_GENERATE_ARGZ_H.
+       * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
+       evaluates to false.
+
+       * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
+       GL_GENERATE_BYTESWAP_H.
+       * modules/byteswap (Makefile.am): Remove byteswap.h if
+       GL_GENERATE_BYTESWAP_H evaluates to false.
+
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
+       GL_GENERATE_ERRNO_H.
+       * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
+       evaluates to false.
+
+       * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
+       GL_GENERATE_FLOAT_H.
+       * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
+       evaluates to false.
+
+       * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
+       GL_GENERATE_FNMATCH_H.
+       * modules/fnmatch (Makefile.am): Remove fnmatch.h if
+       GL_GENERATE_FNMATCH_H evaluates to false.
+
+       * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
+       GL_GENERATE_GLOB_H.
+       * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
+       evaluates to false.
+
+       * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
+       automake conditional GL_GENERATE_ICONV_H.
+       * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
+       evaluates to false.
+
+       * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
+       GL_GENERATE_NETINET_IN_H.
+       * modules/netinet_in (Makefile.am): Remove netinet/in.h if
+       GL_GENERATE_NETINET_IN_H evaluates to false.
+
+       * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
+       conditional GL_GENERATE_PTHREAD_H.
+       (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
+       * modules/pthread (Makefile.am): Remove pthread.h if
+       GL_GENERATE_PTHREAD_H evaluates to false.
+
+       * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
+       GL_GENERATE_SCHED_H.
+       * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
+       evaluates to false.
+
+       * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
+       conditional GL_GENERATE_SELINUX_CONTEXT_H.
+       * modules/selinux-h (Makefile.am): Remove selinux/context.h if
+       GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
+
+       * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
+       GL_GENERATE_STDARG_H.
+       * modules/stdarg (Makefile.am): Remove stdarg.h if
+       GL_GENERATE_STDARG_H evaluates to false.
+
+       * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
+       GL_GENERATE_STDBOOL_H.
+       * modules/stdbool (Makefile.am): Remove stdbool.h if
+       GL_GENERATE_STDBOOL_H evaluates to false.
+
+       * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
+       conditional GL_GENERATE_STDDEF_H.
+       (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
+       * modules/stddef (Makefile.am): Remove stddef.h if
+       GL_GENERATE_STDDEF_H evaluates to false.
+
+       * m4/stdint.m4 (gl_STDINT_H): New automake conditional
+       GL_GENERATE_STDINT_H.
+       * modules/stdint (Makefile.am): Remove stdint.h if
+       GL_GENERATE_STDINT_H evaluates to false.
+
+       * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
+       GL_GENERATE_SYSEXITS_H.
+       * modules/sysexits (Makefile.am): Remove sysexits.h if
+       GL_GENERATE_SYSEXITS_H evaluates to false.
+
+       Reported by Karl Berry and Ralf Wildenhues.
+
 2011-04-05  Bruno Haible  <bruno@clisp.org>
 
        Ensure to rebuild generated .h files when config.status has changed.
index e2e8a05a6eaa7a7bd06e698d74dd8b7fa76995ef..689da75a2aca0a309cd9cf6d7186743f91fe95b1 100644 (file)
@@ -1,4 +1,4 @@
-# alloca.m4 serial 10
+# alloca.m4 serial 11
 dnl Copyright (C) 2002-2004, 2006-2007, 2009-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -36,6 +36,7 @@ AC_DEFUN([gl_FUNC_ALLOCA],
     ALLOCA_H=alloca.h
   fi
   AC_SUBST([ALLOCA_H])
+  AM_CONDITIONAL([GL_GENERATE_ALLOCA_H], [test -n "$ALLOCA_H"])
 ])
 
 # Prerequisites of lib/alloca.c.
index f4fa3a0da05ac40beb08539764465e082e8aed51..0248a453da7d5c1d62854f5b7e929cfdce65109b 100644 (file)
@@ -7,7 +7,7 @@
 # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.
 
-# serial 8 argz.m4
+# serial 9 argz.m4
 
 AC_DEFUN([gl_FUNC_ARGZ],
 [gl_PREREQ_ARGZ
@@ -74,6 +74,7 @@ AS_IF([test -z "$ARGZ_H"],
         AC_LIBOBJ([argz])])])
 
 AC_SUBST([ARGZ_H])
+AM_CONDITIONAL([GL_GENERATE_ARGZ_H], [test -n "$ARGZ_H"])
 ])
 
 # Prerequisites of lib/argz.c.
index a033acd8da877d35e3d6ae446ed704aa133c0551..2d4de4659f0a0f670fcbe3ea555f02c89ffcc8d4 100644 (file)
@@ -1,4 +1,4 @@
-# byteswap.m4 serial 3
+# byteswap.m4 serial 4
 dnl Copyright (C) 2005, 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,4 +15,5 @@ AC_DEFUN([gl_BYTESWAP],
     BYTESWAP_H='byteswap.h'
   ])
   AC_SUBST([BYTESWAP_H])
+  AM_CONDITIONAL([GL_GENERATE_BYTESWAP_H], [test -n "$BYTESWAP_H"])
 ])
index 687bafff2d09fbb074c8274a2d1758233c1e1fc7..a6d37f3b32885ba24cee03a7594ddc8a6db82f23 100644 (file)
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 8
+# errno_h.m4 serial 9
 dnl Copyright (C) 2004, 2006, 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,7 @@ booboo
     ERRNO_H='errno.h'
   fi
   AC_SUBST([ERRNO_H])
+  AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"])
   gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
   gl_REPLACE_ERRNO_VALUE([ENOLINK])
   gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
index 265a4c1a6e0243bb4e947474b0f74edd4819a7e9..21a7529fe0a8927081b2524d1b8938ca8a1334cd 100644 (file)
@@ -1,4 +1,4 @@
-# float_h.m4 serial 5
+# float_h.m4 serial 6
 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,4 +16,5 @@ AC_DEFUN([gl_FLOAT_H],
       ;;
   esac
   AC_SUBST([FLOAT_H])
+  AM_CONDITIONAL([GL_GENERATE_FLOAT_H], [test -n "$FLOAT_H"])
 ])
index 9b537a7e0ccd851e7c968ae9800e4936c97e6549..c8ed9e74e776b2ba96ca2716456f331c3dbaee43 100644 (file)
@@ -1,4 +1,4 @@
-# Check for fnmatch - serial 5.
+# Check for fnmatch - serial 6.
 
 # Copyright (C) 2000-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -139,6 +139,7 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
     AC_CHECK_HEADERS_ONCE([wctype.h])
   fi
   AC_SUBST([FNMATCH_H])
+  AM_CONDITIONAL([GL_GENERATE_FNMATCH_H], [test -n "$FNMATCH_H"])
 ])
 
 # Request a POSIX compliant fnmatch function with GNU extensions.
index 759c6f84f719eabf31b3ebc2aace24c7d84f5dd5..4b79148d3261188c7f4d254a958dc4fa9f4d961e 100644 (file)
@@ -1,4 +1,4 @@
-# glob.m4 serial 11
+# glob.m4 serial 12
 dnl Copyright (C) 2005-2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,11 +10,12 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_GLOB_SUBSTITUTE],
 [
+  AC_LIBOBJ([glob])
   gl_PREREQ_GLOB
 
   GLOB_H=glob.h
-  AC_LIBOBJ([glob])
   AC_SUBST([GLOB_H])
+  AM_CONDITIONAL([GL_GENERATE_GLOB_H], [test -n "$GLOB_H"])
 ])
 
 AC_DEFUN([gl_GLOB],
@@ -65,8 +66,11 @@ if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;]])],
   rm -f conf$$-globtest
 
   if test -n "$GLOB_H"; then
-    gl_GLOB_SUBSTITUTE
+    AC_LIBOBJ([glob])
+    gl_PREREQ_GLOB
   fi
+  AC_SUBST([GLOB_H])
+  AM_CONDITIONAL([GL_GENERATE_GLOB_H], [test -n "$GLOB_H"])
 ])
 
 # Prerequisites of lib/glob.*.
index abfacffb49c459b43bef4a284784fe2b371f9250..8cca7fd802d7d9044f014f355e947481019401e0 100644 (file)
@@ -1,4 +1,4 @@
-# iconv_h.m4 serial 7
+# iconv_h.m4 serial 8
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,6 +18,7 @@ AC_DEFUN([gl_REPLACE_ICONV_H],
 [
   AC_REQUIRE([gl_ICONV_H_DEFAULTS])
   ICONV_H='iconv.h'
+  AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"])
 ])
 
 AC_DEFUN([gl_ICONV_MODULE_INDICATOR],
@@ -36,4 +37,5 @@ AC_DEFUN([gl_ICONV_H_DEFAULTS],
   REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN])
   REPLACE_ICONV_UTF=0;  AC_SUBST([REPLACE_ICONV_UTF])
   ICONV_H='';           AC_SUBST([ICONV_H])
+  AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"])
 ])
index e2d022df7a6b85ecd5c1cb91b99f543385c23906..87235b73bc8522755e2f881efd4fbd6c0c202671 100644 (file)
@@ -1,4 +1,4 @@
-# netinet_in_h.m4 serial 4
+# netinet_in_h.m4 serial 5
 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -27,4 +27,5 @@ AC_DEFUN([gl_HEADER_NETINET_IN],
     AC_SUBST([HAVE_NETINET_IN_H])
   fi
   AC_SUBST([NETINET_IN_H])
+  AM_CONDITIONAL([GL_GENERATE_NETINET_IN_H], [test -n "$NETINET_IN_H"])
 ])
index 9f77cde093c7c85f68cd927fe57d89949be4aab1..6111185fb0baad8b916c00eabddc8165bb19380d 100644 (file)
@@ -30,7 +30,11 @@ AC_DEFUN([gl_PTHREAD_CHECK],
       test $ac_cv_type_pthread_t != yes ||
       test $ac_cv_type_pthread_spinlock_t != yes; then
      PTHREAD_H='pthread.h'
+   else
+     PTHREAD_H=
    fi
+   AC_SUBST([PTHREAD_H])
+   AM_CONDITIONAL([GL_GENERATE_PTHREAD_H], [test -n "$PTHREAD_H"])
 
    LIB_PTHREAD=
    if test $ac_cv_header_pthread_h = yes; then
@@ -53,5 +57,4 @@ AC_DEFUN([gl_PTHREAD_DEFAULTS],
   HAVE_PTHREAD_H=1;              AC_SUBST([HAVE_PTHREAD_H])
   HAVE_PTHREAD_T=1;              AC_SUBST([HAVE_PTHREAD_T])
   HAVE_PTHREAD_SPINLOCK_T=1;     AC_SUBST([HAVE_PTHREAD_SPINLOCK_T])
-  PTHREAD_H='';                  AC_SUBST([PTHREAD_H])
 ])
index 6a46e4745f23f42efc7dbd96dd206ca953e55648..9cff891950df8b122c211fda0b01c853716ac542 100644 (file)
@@ -1,4 +1,4 @@
-# sched_h.m4 serial 3
+# sched_h.m4 serial 4
 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,4 +32,5 @@ AC_DEFUN([gl_SCHED_H],
      AC_SUBST([HAVE_STRUCT_SCHED_PARAM])
     ])
   AC_SUBST([SCHED_H])
+  AM_CONDITIONAL([GL_GENERATE_SCHED_H], [test -n "$SCHED_H"])
 ])
index 227ab6bfc711c8974947b0ebb23c1adbbf73db70..54a388db75e604a8cc2314b372df5454f0c89c7b 100644 (file)
@@ -1,4 +1,4 @@
-# serial 2   -*- Autoconf -*-
+# serial 3   -*- Autoconf -*-
 # Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -18,4 +18,5 @@ AC_DEFUN([gl_HEADERS_SELINUX_CONTEXT_H],
     SELINUX_CONTEXT_H=selinux/context.h
   fi
   AC_SUBST([SELINUX_CONTEXT_H])
+  AM_CONDITIONAL([GL_GENERATE_SELINUX_CONTEXT_H], [test -n "$SELINUX_CONTEXT_H"])
 ])
index a1ef178c55faded595035623efc3f6af0619fd24..5705de9ecaa9624d31dde5993659c2bffc5d3a2f 100644 (file)
@@ -1,4 +1,4 @@
-# stdarg.m4 serial 5
+# stdarg.m4 serial 6
 dnl Copyright (C) 2006, 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,8 +9,8 @@ dnl Provide a working va_copy in combination with <stdarg.h>.
 
 AC_DEFUN([gl_STDARG_H],
 [
-  STDARG_H='';                AC_SUBST([STDARG_H])
-  NEXT_STDARG_H='<stdarg.h>'; AC_SUBST([NEXT_STDARG_H])
+  STDARG_H=''
+  NEXT_STDARG_H='<stdarg.h>'
   AC_MSG_CHECKING([for va_copy])
   AC_CACHE_VAL([gl_cv_func_va_copy], [
     AC_COMPILE_IFELSE(
@@ -72,4 +72,7 @@ error, bail out
       fi
     fi
   fi
+  AC_SUBST([STDARG_H])
+  AM_CONDITIONAL([GL_GENERATE_STDARG_H], [test -n "$STDARG_H"])
+  AC_SUBST([NEXT_STDARG_H])
 ])
index 838cf0f4679a2a9a4dca119c1760d2040caf3cf0..1ebf3e6808c51e09a7aeea687c1671bb091c9d91 100644 (file)
@@ -5,7 +5,7 @@ dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
-#serial 4
+#serial 5
 
 # Prepare for substituting <stdbool.h> if it is not supported.
 
@@ -21,6 +21,7 @@ AC_DEFUN([AM_STDBOOL_H],
     STDBOOL_H='stdbool.h'
   fi
   AC_SUBST([STDBOOL_H])
+  AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"])
 
   if test "$ac_cv_type__Bool" = yes; then
     HAVE__BOOL=1
index 1942b6aa0df534dbd08a25f81773a576167b7aea..1ae2344318e3f3db73ae4806ceb734a66b6d7e5c 100644 (file)
@@ -1,5 +1,5 @@
 dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues.
-# stddef_h.m4 serial 3
+# stddef_h.m4 serial 4
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,6 +9,7 @@ AC_DEFUN([gl_STDDEF_H],
 [
   AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
   AC_REQUIRE([gt_TYPE_WCHAR_T])
+  STDDEF_H=
   if test $gt_cv_c_wchar_t = no; then
     HAVE_WCHAR_T=0
     STDDEF_H=stddef.h
@@ -24,6 +25,8 @@ AC_DEFUN([gl_STDDEF_H],
     REPLACE_NULL=1
     STDDEF_H=stddef.h
   fi
+  AC_SUBST([STDDEF_H])
+  AM_CONDITIONAL([GL_GENERATE_STDDEF_H], [test -n "$STDDEF_H"])
   if test -n "$STDDEF_H"; then
     gl_NEXT_HEADERS([stddef.h])
   fi
@@ -41,5 +44,4 @@ AC_DEFUN([gl_STDDEF_H_DEFAULTS],
   dnl Assume proper GNU behavior unless another module says otherwise.
   REPLACE_NULL=0;                AC_SUBST([REPLACE_NULL])
   HAVE_WCHAR_T=1;                AC_SUBST([HAVE_WCHAR_T])
-  STDDEF_H='';                   AC_SUBST([STDDEF_H])
 ])
index e7d0d0765a2b3cf28cfc4b339e70609ef9414538..dff37fe1bf9fdee7ff36c67d0e82c5489223e625 100644 (file)
@@ -1,4 +1,4 @@
-# stdint.m4 serial 39
+# stdint.m4 serial 40
 dnl Copyright (C) 2001-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -305,6 +305,7 @@ static const char *macro_values[] =
     STDINT_H=stdint.h
   fi
   AC_SUBST([STDINT_H])
+  AM_CONDITIONAL([GL_GENERATE_STDINT_H], [test -n "$STDINT_H"])
 ])
 
 dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES)
index 4d145722780cc1883dc3955ef9344a8cb0a75c3c..cff6606c6e14635b9e78286c1c837aee1c1b823e 100644 (file)
@@ -1,4 +1,4 @@
-# sysexits.m4 serial 5
+# sysexits.m4 serial 6
 dnl Copyright (C) 2003, 2005, 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -40,4 +40,5 @@ AC_DEFUN([gl_SYSEXITS],
   fi
   AC_SUBST([HAVE_SYSEXITS_H])
   AC_SUBST([SYSEXITS_H])
+  AM_CONDITIONAL([GL_GENERATE_SYSEXITS_H], [test -n "$SYSEXITS_H"])
 ])
index 9ced93b293aa8eab1c0dbe58aac57ee43facf948..d4468de5cf52bc0d3ecacd1ab9b490454181f8b4 100644 (file)
@@ -17,12 +17,17 @@ BUILT_SOURCES += $(ALLOCA_H)
 
 # We need the following in order to create <alloca.h> when the system
 # doesn't have one that works with the given compiler.
-alloca.h: alloca.in.h
+if GL_GENERATE_ALLOCA_H
+alloca.h: alloca.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/alloca.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+alloca.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += alloca.h alloca.h-t
 
 Include:
index 5f9c7499d1111d1460c03a8779b07f7f2563ef15..0c56ac7685429493fb215f82192d96e1290261ce 100644 (file)
@@ -22,12 +22,17 @@ BUILT_SOURCES += $(ARGZ_H)
 
 # We need the following in order to create <argz.h> when the system
 # doesn't have one that works with the given compiler.
-argz.h: argz.in.h
+if GL_GENERATE_ARGZ_H
+argz.h: argz.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/argz.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+argz.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += argz.h argz.h-t
 
 Include:
index 6a3ce1525c76fb93de66e232df6c2b6468374203..c1da40074c30f45fa0142b98941c63cc4753edeb 100644 (file)
@@ -15,12 +15,17 @@ BUILT_SOURCES += $(BYTESWAP_H)
 
 # We need the following in order to create <byteswap.h> when the system
 # doesn't have one.
-byteswap.h: byteswap.in.h
+if GL_GENERATE_BYTESWAP_H
+byteswap.h: byteswap.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/byteswap.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+byteswap.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += byteswap.h byteswap.h-t
 
 Include:
index cae6bbbdc8da08115ff03ca0a5d52998f7050bde..95169015533ab42556824b85fc09554c15a9eb1e 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(ERRNO_H)
 
 # We need the following in order to create <errno.h> when the system
 # doesn't have one that is POSIX compliant.
+if GL_GENERATE_ERRNO_H
 errno.h: errno.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -32,6 +33,10 @@ errno.h: errno.in.h $(top_builddir)/config.status
              < $(srcdir)/errno.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+errno.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += errno.h errno.h-t
 
 Include:
index 7f56d6c6b8e3713fcff31221f2c00110baa5cae4..4a1c16a538dc259dc9ea01402a77358a6d918a7c 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(FLOAT_H)
 
 # We need the following in order to create <float.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_FLOAT_H
 float.h: float.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -26,6 +27,10 @@ float.h: float.in.h $(top_builddir)/config.status
              < $(srcdir)/float.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+float.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += float.h float.h-t
 
 Include:
index bf7158fb9bc688ca4d94610625e7919606f53da0..fde25a17331b1f740b49f999279f1cef9ab37dc5 100644 (file)
@@ -28,13 +28,18 @@ BUILT_SOURCES += $(FNMATCH_H)
 
 # We need the following in order to create <fnmatch.h> when the system
 # doesn't have one that supports the required API.
-fnmatch.h: fnmatch.in.h $(ARG_NONNULL_H)
+if GL_GENERATE_FNMATCH_H
+fnmatch.h: fnmatch.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
              < $(srcdir)/fnmatch.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+fnmatch.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
 
 Include:
index 15f20220766fd2092b61fa45fe12106dfa1d1aaa..114cb6d121d54a8e0abe1e943577ee9bf38baffb 100644 (file)
@@ -34,6 +34,7 @@ BUILT_SOURCES += $(GLOB_H)
 
 # We need the following in order to create <glob.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_GLOB_H
 glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -44,6 +45,10 @@ glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
              < $(srcdir)/glob.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+glob.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += glob.h glob.h-t
 
 Include:
index 7cca5c5ccc5e831c786b32f875f22393dda1ef21..82330f6d0079b9914330f82e12ec7b77ba8b8212 100644 (file)
@@ -19,6 +19,7 @@ BUILT_SOURCES += $(ICONV_H)
 
 # We need the following in order to create <iconv.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_ICONV_H
 iconv.h: iconv.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -37,6 +38,10 @@ iconv.h: iconv.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
              < $(srcdir)/iconv.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+iconv.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += iconv.h iconv.h-t
 
 Include:
index b52aa4d9c1f3efe6e905b3e74e89e7b6c7df4325..da680810bc41e7c61a6d99908688aaafab87b543 100644 (file)
@@ -18,6 +18,7 @@ BUILT_SOURCES += $(NETINET_IN_H)
 
 # We need the following in order to create <netinet/in.h> when the system
 # doesn't have one.
+if GL_GENERATE_NETINET_IN_H
 netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
        $(AM_V_at)$(MKDIR_P) netinet
        $(AM_V_GEN)rm -f $@-t $@ && \
@@ -30,6 +31,10 @@ netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
              < $(srcdir)/netinet_in.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+netinet/in.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
 MOSTLYCLEANDIRS += netinet
 
index 2a729397aa828bf203147c2ebc4ecb91984640ff..3a00c772140225727c9d01832ac1678d3678f508 100644 (file)
@@ -17,6 +17,7 @@ BUILT_SOURCES += $(PTHREAD_H)
 
 # We need the following in order to create <pthread.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_PTHREAD_H
 pthread.h: pthread.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -30,6 +31,10 @@ pthread.h: pthread.in.h $(top_builddir)/config.status
              < $(srcdir)/pthread.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+pthread.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += pthread.h pthread.h-t
 
 Include:
index ac17479a0d26ba1b58200cd584ff4de8210acf56..e0a3936b2ec5b0c56014227bb3f3a889b729a9b1 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(SCHED_H)
 
 # We need the following in order to create a replacement for <sched.h> when
 # the system doesn't have one.
+if GL_GENERATE_SCHED_H
 sched.h: sched.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -28,6 +29,10 @@ sched.h: sched.in.h $(top_builddir)/config.status
              < $(srcdir)/sched.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+sched.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += sched.h sched.h-t
 
 Include:
index 7df7c5a0fcdc9a46a29b197bdc27f8c4f415fd1f..66429f7b50e34768d925c0caa1f319dac5d6f735 100644 (file)
@@ -37,6 +37,7 @@ selinux/selinux.h: se-selinux.in.h $(top_builddir)/config.status $(UNUSED_PARAME
 MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
 
 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
+if GL_GENERATE_SELINUX_CONTEXT_H
 selinux/context.h: se-context.in.h $(top_builddir)/config.status $(UNUSED_PARAMETER_H)
        $(AM_V_at)$(MKDIR_P) selinux
        $(AM_V_GEN)rm -f $@-t $@ && \
@@ -46,6 +47,10 @@ selinux/context.h: se-context.in.h $(top_builddir)/config.status $(UNUSED_PARAME
        } > $@-t && \
        chmod a-x $@-t && \
        mv $@-t $@
+else
+selinux/context.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
 MOSTLYCLEANDIRS += selinux
 
index 10ac474106b5d56691dc8ba29cda0f830e221d5d..6cb1db86446f5a4ceffaa2c611f717d6ea844558 100644 (file)
@@ -23,6 +23,7 @@ BUILT_SOURCES += $(STDARG_H)
 
 # We need the following in order to create <stdarg.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_STDARG_H
 stdarg.h: stdarg.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -33,6 +34,10 @@ stdarg.h: stdarg.in.h $(top_builddir)/config.status
              < $(srcdir)/stdarg.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+stdarg.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
 
 Include:
index 7df3cc521783de5acbdc904e5c45b03100355f45..cfb9aac84c681984d8452308a339d74f67a6e43e 100644 (file)
@@ -16,12 +16,17 @@ BUILT_SOURCES += $(STDBOOL_H)
 
 # We need the following in order to create <stdbool.h> when the system
 # doesn't have one that works.
+if GL_GENERATE_STDBOOL_H
 stdbool.h: stdbool.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+stdbool.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
 
 Include:
index 23a6fb56af2a355ed516556e7440d18a1c572f2d..94b57da9b0ba3bafaa1442a6ff2903c78261d12d 100644 (file)
@@ -17,6 +17,7 @@ BUILT_SOURCES += $(STDDEF_H)
 
 # We need the following in order to create <stddef.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_STDDEF_H
 stddef.h: stddef.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -29,6 +30,10 @@ stddef.h: stddef.in.h $(top_builddir)/config.status
              < $(srcdir)/stddef.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+stddef.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += stddef.h stddef.h-t
 
 Include:
index 2878da6d32e1830a823ba180fc294deab62a31d7..c11825a12e46103d0d7e23293330d939dfb0c8b1 100644 (file)
@@ -23,6 +23,7 @@ BUILT_SOURCES += $(STDINT_H)
 
 # We need the following in order to create <stdint.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_STDINT_H
 stdint.h: stdint.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -55,6 +56,10 @@ stdint.h: stdint.in.h $(top_builddir)/config.status
              < $(srcdir)/stdint.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+stdint.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += stdint.h stdint.h-t
 
 Include:
index 616ddb9daea3129aa1ddb8acc73158b56652c2a0..ed0d48866632339853b72cdae69c654022aa987a 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(SYSEXITS_H)
 
 # We need the following in order to create <sysexits.h> when the system
 # doesn't have one that works with the given compiler.
+if GL_GENERATE_SYSEXITS_H
 sysexits.h: sysexits.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -27,6 +28,10 @@ sysexits.h: sysexits.in.h $(top_builddir)/config.status
              < $(srcdir)/sysexits.in.h; \
        } > $@-t && \
        mv -f $@-t $@
+else
+sysexits.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += sysexits.h sysexits.h-t
 
 Include: