summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basename.c11
-rw-r--r--src/date.c11
-rw-r--r--src/dirname.c11
-rw-r--r--src/echo.c11
-rw-r--r--src/env.c11
-rw-r--r--src/expr.c11
-rw-r--r--src/id.c11
-rw-r--r--src/logname.c11
-rw-r--r--src/nice.c11
-rw-r--r--src/pathchk.c11
-rw-r--r--src/printf.c11
-rw-r--r--src/sleep.c11
-rw-r--r--src/stty.c11
-rw-r--r--src/su.c11
-rw-r--r--src/tee.c11
-rw-r--r--src/test.c11
-rw-r--r--src/tty.c11
-rw-r--r--src/uname.c11
-rw-r--r--src/who.c11
19 files changed, 209 insertions, 0 deletions
diff --git a/src/basename.c b/src/basename.c
index ec8cd5a4e..75518e830 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -25,6 +25,17 @@
basename functions.lisp p
=> functions.lis */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/date.c b/src/date.c
index b80c47fe3..c31c344ec 100644
--- a/src/date.c
+++ b/src/date.c
@@ -39,6 +39,17 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/dirname.c b/src/dirname.c
index a4209c89a..b6b46d738 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -17,6 +17,17 @@
/* Written by David MacKenzie and Jim Meyering. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/echo.c b/src/echo.c
index 2e27abe63..ab0779eae 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -17,6 +17,17 @@ You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include "system.h"
diff --git a/src/env.c b/src/env.c
index b08d48311..0871ba0c4 100644
--- a/src/env.c
+++ b/src/env.c
@@ -77,6 +77,17 @@
{ LOGNAME=foo PATH=/energy }
*/
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/expr.c b/src/expr.c
index 97f7b39d8..221f5dd72 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -28,6 +28,17 @@
Define EVAL_TRACE to print an evaluation trace. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
diff --git a/src/id.c b/src/id.c
index bd18ed855..daa65c86c 100644
--- a/src/id.c
+++ b/src/id.c
@@ -18,6 +18,17 @@
/* Written by Arnold Robbins, arnold@audiofax.com.
Major rewrite by David MacKenzie, djm@gnu.ai.mit.edu. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/logname.c b/src/logname.c
index 82c49feef..9a95bceee 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -15,6 +15,17 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/nice.c b/src/nice.c
index 28e68d9f5..3cdc073f0 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -17,6 +17,17 @@
/* David MacKenzie <djm@gnu.ai.mit.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/pathchk.c b/src/pathchk.c
index e6da04ea2..ee14ffc4e 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -38,6 +38,17 @@
David MacKenzie <djm@gnu.ai.mit.edu>
and Jim Meyering <meyering@cs.utexas.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/printf.c b/src/printf.c
index e1bd4d3ab..3781eff44 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -43,6 +43,17 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
diff --git a/src/sleep.c b/src/sleep.c
index 2858ff42f..f599a13c0 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -15,6 +15,17 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
diff --git a/src/stty.c b/src/stty.c
index ea764ac33..4f97981ae 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -27,6 +27,17 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <termios.h>
diff --git a/src/su.c b/src/su.c
index 7252a07e1..6f6a146f3 100644
--- a/src/su.c
+++ b/src/su.c
@@ -69,6 +69,17 @@
Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/tee.c b/src/tee.c
index b107ee053..0099d5c70 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -17,6 +17,17 @@
/* Mike Parker, Richard M. Stallman, and David MacKenzie */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
diff --git a/src/test.c b/src/test.c
index d905c63e6..658a30f29 100644
--- a/src/test.c
+++ b/src/test.c
@@ -24,6 +24,17 @@
the shell builtin version. */
/* #define TEST_STANDALONE */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
diff --git a/src/tty.c b/src/tty.c
index 1839ae1b0..6706afc01 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -22,6 +22,17 @@
Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
diff --git a/src/uname.c b/src/uname.c
index 366e1e34a..236e0d557 100644
--- a/src/uname.c
+++ b/src/uname.c
@@ -28,6 +28,17 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/utsname.h>
diff --git a/src/who.c b/src/who.c
index 15305a363..5f2e0d850 100644
--- a/src/who.c
+++ b/src/who.c
@@ -32,6 +32,17 @@
-H Print column headings at top.
-w, -T -s plus mesg (+ or -, or ? if bad line). */
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <utmp.h>